Navigation

    • Register
    • Login
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. Tmaster
    3. Topics
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Topics created by Tmaster

    • Tmaster

      CHATGPT My new best friend!
      General Discussion • • Tmaster  

      5
      3
      Votes
      5
      Posts
      22
      Views

      OldSurferDude

      @Tmaster I think it writes better code than a lot of code I've seen, and the documentation is a lot better. The latter, of course, is because most coders don't document. some key elements: good statement of work -- Purpose of the Code is key (did you write that? Good job!). This will guide the AI to write what you want. descriptive variables good documentation code is independent of reading sensors up-to-down/down-to-up I spent a couple hours analyzing, researching and writing and re-writing this and all I can say is that the AI didn't catch is, as far as I can see, if your sensors are too far apart or your magnet is too weak, you could get false readings. You, being the author of AI directive, are responsible for for the code. The AI is just a tool. I started my coding with assembly language, though at that time we still had to enter the binary on some machines (set 16 switches, then press commit). ForTran and COBOL were the first real high level languages and subsequent languages, pascal, c, java, etc. were improvements. AI is a quantum step. It's still coding, but you have to learn how to talk to the AI to get what you want. Good project! Let us know how it turns out and if you had to tweak the code. -OSD
    • Tmaster

      hlk-pm01 are to noisy for rfm69?
      Hardware • • Tmaster  

      5
      0
      Votes
      5
      Posts
      27
      Views

      zboblamont

      @Tmaster Never assume the original PCB was just a circuit of components, the PCB can incorporate RF shields and antenna radio ground planes...
    • Tmaster

      #define DEFAULT_RFM69_IRQ_PIN
      General Discussion • mysensors • • Tmaster  

      15
      0
      Votes
      15
      Posts
      43
      Views

      zboblamont

      @Tmaster What I meant by my previous comment was to tap on the Node name to see what sensors were connected - Had you clicked on TANQUE you would have seen a box pop up below giving you all the children to that particular Node with what value was last updated and when, so you could easily have found out all about your mysterious 13 children. At least you have it sorted now, but it pays to do a bit of housekeeping in the sketch setup and Domoticz - eg which of the 6 "Unknown" Nodes is the one you want to next have a look at ? All my Node IDs are set at the Node, and the sketch name labels the Node ID also, the Nodes are named in Domoticz for easy identification. In the sketch my sensors are numbered sequentially and commented on what they are, so naming them in Domoticz becomes very much easier.
    • Tmaster

      domoticz motion(type)sensors don't show battery level
      Domoticz • • Tmaster  

      5
      0
      Votes
      5
      Posts
      53
      Views

      Tmaster

      On a new card i updated OS to Raspian Buster and installed latest domoticz V 2.2020. BUT the problem still the same . no battery value present soon as this sensor report a new "data" AND it's as motion sensor and not as any other type of sensor. If it works to others i really don't understand what happens...
    • Tmaster

      RS-485 to an wireless Gateway
      Hardware • • Tmaster  

      7
      0
      Votes
      7
      Posts
      43
      Views

      Tmaster

      @mfalkvidd said in RS-485 to an wireless Gateway: Most controllers, including Domoticz, supports multiple gateways. I have 2 gateways on my Domoticz. That's what i wasn't sure. Right now i already have a zwave gw(module) hoked to raspberry pins,that controls all windows shutters and an Usb GW (mysensors serial gw) that controls 4 temperature sensors, irrigation valcs from my garden ,solar water panel relay , outdoor lights etc...all on rfm69W and C "transport" 868mhz, but i will consider if i build a second arduino usb GW or i keep the wireless to the gate. So if i see the zwave module like an GW i already have 2 as well The true it's that the gate is already "mysensor-rized" with wireless but i keep preferring wired connection for outdoor and once i'm burying the cables for power and doorbell ,maybe i add an Cat6 cable for RS-485 connection.
    • Tmaster

      WI-FI IOT modules
      General Discussion • • Tmaster  

      32
      0
      Votes
      32
      Posts
      849
      Views

      zboblamont

      @tmaster I think the phrase "that escalated quickly" comes to mind.. I can only speak personally in that I dismissed "Wifi" as a Node communication methodology due to limited structural penetration issues and the desire for complete separation between monitoring and reporting. Z-Wave operates in the 800-900MHz band so is less prone to structural blockage, externally it would take a dedicated geek parked in your back yard to break into that. My own issue with the blossoming of wifi incorporation in "a connected world" is that even your fridge can be used in a DoS attack, and it is pointless making comments about what CAN be done with a router, when the vast majority of consumers are only concerned they can check on their fridge 2,000m away without a ball's notion or concern who else may be affected. The comms protocol is less energy inefficient but it has a universal tag. I can see the advantage of "the cloud" but have a serious beef with dependency on that service, the other is living in a rural area where candles are common due to power cuts which also cut off the internet service externally. Yeah, burglar's paradise... except for the large dog and a Gatling Gun on heat sensors... Ok, one of them may be true I almost went for Honeywell's Evohome system a few years back, local operations on 868MHz, well secured, but then came the spanner in the works, internet dependency. All my home kit is self contained 433MHz, and happy it works away 24/7, with no local geeks acquainted with http protocols interested in researching or interfering, happy... In short, the cheap options are cheap for a reason, one of which is insecurity for a price hence Zigbee etc.....
    • Tmaster

      Simple irrigation controller
      My Project • • Tmaster  

      3
      1
      Votes
      3
      Posts
      283
      Views

      Tmaster

      @markjgabb said in Simple irrigation controller: hey @Tmaster are you still using this solution? have you made any improvements or come across any issues with using it over time? Hello.still working good exept on winter that was disabled. Last summer worked until october without any fail.
    • Tmaster

      Crazy timer on my sketch
      General Discussion • • Tmaster  

      7
      0
      Votes
      7
      Posts
      381
      Views

      mfalkvidd

      @tmaster great work!
    • Tmaster

      Roller shutter(s_cover) on Domoticz
      Domoticz • • Tmaster  

      8
      0
      Votes
      8
      Posts
      900
      Views

      kamilb85

      Someone know if it is problem with Domoticz or MySensors?
    • Tmaster

      Domoticz with DIY "razberry" card
      Domoticz • • Tmaster  

      1
      3
      Votes
      1
      Posts
      948
      Views

      No one has replied

    • Tmaster

      vera ,the green dead brick
      Vera • • Tmaster  

      5
      0
      Votes
      5
      Posts
      1693
      Views

      blacey

      @tmaster The OpenHab website has some info about zwave shield(s) and Fibraro device compatibility here https://docs.openhab.org/addons/bindings/zwave1/readme.html#fibaro-door-contact-fgk-101
    • Tmaster

      Egg incubator IOT v3.0
      My Project • • Tmaster  

      9
      5
      Votes
      9
      Posts
      5494
      Views

      Tmaster

      @rahokos download the file and change the extension from file to .fzz for any reason it happens when i upload this file.
    • Tmaster

      3.3 or 5v tranformer for mysensors projects
      Hardware • • Tmaster  

      26
      0
      Votes
      26
      Posts
      7477
      Views

      gohan

      @DavidZH said in 3.3 or 5v tranformer for mysensors projects: This is one area I'm quite envied with the US building methods. Well at least our houses don't fly away with a tornado (at least mine didn't) Anyway I think the best approach in retrofitting an "old" house to home automation stuff is to be flexible and also include, when needed, commercial product like zwave switches that are miniaturized to fit in the size of a light switch.
    • Tmaster

      receive message...
      General Discussion • • Tmaster  

      6
      0
      Votes
      6
      Posts
      3387
      Views

      mfalkvidd

      @Tmaster a node's receive function will only be called if the message is addressed to that node.
    • Tmaster

      timealerts and mysensors library conflict?
      Troubleshooting • • Tmaster  

      2
      0
      Votes
      2
      Posts
      740
      Views

      Tmaster

      pretty difficult question hum? lol i solve it by forgetting TimeAlarms.h and set just an hour that triggers the solenoid like this (HX and MH its the time,[hours] and [minutes] defined at beginning and its set manually) if (hour() == HX && minute() == MX ) { analogWrite(RELAY_PIN,255); delay(400); analogWrite(RELAY_PIN,90); //half voltage(+-5v to 6v) to not burn valve selenoid(hold voltage) digitalWrite(LEDR1,HIGH); //Serial.print("time up"); } else if (hour() == HXend && minute() == MXend ) { digitalWrite(RELAY_PIN,LOW); digitalWrite(LEDR1,LOW); //Serial.print("time down"); }
    • Tmaster

      I have Vera lite but i like OpenHab.what i do?! :s
      OpenHAB • • Tmaster  

      4
      0
      Votes
      4
      Posts
      1489
      Views

      Tmaster

      @gohan said in I have Vera lite but i like OpenHab.what i do?! :s: Learning to use Openhab is probably the most complex thing you will need to do Well that part im taking care right now. install ,configure, binding mios(or just abandon vera) ... I think that maybe it's not good idea abandon vera right now because its only 2 years old and once its not too old i don't need to buy a zwave usb stick. if binding works well and its reliably maybe i can use both devices because in 2 years vera lite never hangs not even one time with my 10 or 15 devices. How is openhab reliability? its binding work good (sync and updating devices?)
    • Tmaster

      vera as master ,domoticz as slave! work as remote?
      Domoticz • • Tmaster  

      2
      0
      Votes
      2
      Posts
      1385
      Views

      Tmaster

      so? nobody tryed it or its too stupid question?
    • Tmaster

      Send comands just once?
      Vera • • Tmaster  

      5
      0
      Votes
      5
      Posts
      1797
      Views

      Tmaster

      Its solved just by use an application called "day or night" from RichardTSchaefer( pleg guy) and the it only send values once(when night comes). If the sensor (mysensor) is made to send an value each 5minutes or so, vera random accept this value like if it's new, although its the same value as before. Ex:Like an notification when temperature is less than 35ºC, if i sensor sends 50 times and temp. keeps decreasing , during the night in 5minutes interval, 3 or 4 times i receive notifications saying : temp less than 35c... It how vera works, but i don't know why...
    • Tmaster

      My Shiny Gateway and Irrigation system sHiNyBoX! :P
      My Project • • Tmaster  

      2
      7
      Votes
      2
      Posts
      2037
      Views

      blacey

      Great works - looks awesome! That said, you shouldn't need the extra coupling capacitor on the NRF24L01+ regulator because the coupling capacitor(s) are built in.
    • Tmaster

      Buzzer on Gateway
      Development • • Tmaster  

      5
      0
      Votes
      5
      Posts
      3124
      Views

      TheoL

      @Tmaster I've created a Node containing a Piezo buzzer a while ago. I stripped all other things from my Sketch. It compiles, but I haven't tested it. Just try it and see if it works. /** * MySensors RoomSensor with piezo alarm for audio feedback, like weather alarm when there's a huricane alarm. * The alarm is just a standard alarm in your Home Automation controller. * * Version 1.0 * Created 25-10-2015 * release date 25-10-2015 * Author by Theo * * * Parts used: * - Arduino ProMini 3.3V * - 3V Piezo buzzer (is actually surprisingly loud for such a tiny PIEZO), You can greatly improve on the volume by wrapping a paper tube around the piezo */ /** * Include all needed libraries. */ #include <MySensor.h> // The core of this Sketch. Enables communication from the radio to the MySensors gateway #include <SPI.h> // Needed by the MySensors Radio, it communicates with the Arduino by SPI /** * Define the child ID's of the supported sensors. */ #define SIRENE_CHILD_ID 0 // The child ID of the sirene as presented to the Domotica Controller /** * Declare constants for the PIN's we use in this sketch. */ #define PIEZO_PIN 5 // The arduino pin to which the piezo buzzer is attached /** * Declare other constants used by the sketch */ #define PIEZO_ON_DURATION 600 // The period the piezo makes a sound when the alarm is on and snooze mode is off. #define PIEZO_OFF_DURATION 500 // The silent period when the alarm is on and snooze mode is off /** * Section for MySensors specific variables and declarations. */ #define SN "Sirene" // The name of the sketch as being presented to the MySensors gateway. B.t.w. current Domoticz version ignores it #define SV "1.0" // The version of the sketch as being presented to the MySensors gateway. B.t.w. current Domoticz version ignores it MySensor gw; // You'll need this object for communication from an to the Gateway. Contains all logic inl the Radio communication MyMessage sireneMsg( SIRENE_CHILD_ID, V_LIGHT ); // trying to figure out what type type to use to make it known as a siren..??? // Message for sending the alarm on/off state to the MySensors gateway /** * Declare variables used by the Sketch */ boolean alarmOn = false; // alarm state indicator. False meaning off, true meaning we're in business. unsigned long nextPiezoEvent = 0; // The next timestamp the piezo sound has to be turned on or off. We'll use the arduino's internal clock for this boolean piezoOn = false; // indicator whether the sound is on or off during the alarm /** * Initialize everything we need before we can start the Sketch: * - setup MySensors communication * - present the child id's to the MySensors gateway * - declare pin modes and initialize the debouncer */ void setup() { #ifdef DEBUG // turn on the Serial monitor if #define DEBUG is uncommented in MyConfig.h (MySensors library) Serial.begin( 115200 ); // only debug to serial monitor during development #endif // setup a connection to the MySensor's gateway and request an ID if we do not have one yet. gw.begin(incomingMessage); gw.sendSketchInfo(SN, SV); #ifdef DEBUG // Print some debug info Serial.println( "Radio is connect right." ); #endif // present the children to the gateway gw.present( SIRENE_CHILD_ID, S_LIGHT, "Sirene" ); // S_LIGHT is not correct gw.sendBatteryLevel( 100, false ); // Let the Domotica controller no that we're a 100% powered sensor. gw.request( SIRENE_CHILD_ID , V_LIGHT ); // request current state. An alarm might be active. // setup the pin's used by this Sketch pinMode( PIEZO_PIN, OUTPUT); } /** * Piezo event has been triggered, depending on the current sirence state we need to make some nois or turn it off. * We'll determine the timestamp of the next piezo event as well */ void handlePiezoEvent() { unsigned long curMS = millis(); if ( piezoOn == true ) { // Piezo is currently on, we need to switch it of digitalWrite( PIEZO_PIN, 0 ); nextPiezoEvent = curMS + PIEZO_OFF_DURATION; piezoOn = false; } else { // Piezo is off, time to make some noise ;-) analogWrite( PIEZO_PIN, 255 ); nextPiezoEvent = curMS + PIEZO_ON_DURATION; piezoOn = true; } } /** * Main loop of the sketch. */ void loop() { if ( alarmOn == true ) { // Alarm handling code if ( millis() >= nextPiezoEvent ) { // check if the piezo has to be turned on or off. handlePiezoEvent(); } } gw.wait( 5 ); // Just wait 50s not really necessary but give the arduino some rest. It's working really hard for us and we should be grateful for that. // besides it calls gw.process() which we need for incomming messages. } /** * Call back handler, for handling messages send by the MySensors gateway */ void incomingMessage(const MyMessage &message) { if ( message.type == V_LIGHT ) { // Check if the Gateway has reported an Alarm_type message (should be an V_ALARM as off the next Domoticz release. if ( message.sensor == SIRENE_CHILD_ID ) { // Is the message for our alarm child? alarmOn = message.getBool(); // get alarm value sent by Domotica controller #ifdef DEBUG // print some debug info Serial.println( "Sirene state changed to " + (String)alarmOn ); #endif if ( alarmOn == false ) { // turn off the alarm as asked by the Domotica controller analogWrite( PIEZO_PIN, 0 ); // turn off the noise } else { // Schedule the next piezo event nextPiezoEvent = 0; piezoOn = false; } } } } Edited: I'm not good with Fritzling, I just don't find it very user friendly. That's probably why I don't spend some time on how to use it. But i just realized that you might want to know how to hookup the piezo buzzer to the arduino Just connect the radio as described on the mysensors.org build site. I've used a 3.3V piezo, cause I mostly use ProMini's 3.3V for my MySensor nodes. But if you have another Arduino you'd probably need a 5V piezo buzzer. Connecting the piezo is really easy. Hook the ground of the buzzer to one of the GND pins of your Arduino. Hook the positive pin of the buzzer to Pin 5 of your Arduino and you're good to go.
    • Tmaster

      Battery status in all sensors?
      Vera • • Tmaster  

      5
      0
      Votes
      5
      Posts
      2453
      Views

      korttoma

      If your using PLEG you can add the BatteryLevel of the node as a device property input an use that to specify a condition for a notification.
    • Tmaster

      Battery sensor measure for li-ion cells?
      Development • • Tmaster  

      20
      0
      Votes
      20
      Posts
      9593
      Views

      m26872

      @Tmaster I'd like to add a few things about the settings a Vmin and Vmax. If you get a Vbat value outside of [Vmin Vmax] the calculation would give a negative result. Since it's then sent as an uint8_t, it'll not be easy read or meaningful. Due to this it's sometimes a good advice to make the interval wider, use a constraint or handle the exceptions. Vmin 4.3V is a conservative limit. The APM internal vreg (ldo?) is probably working a lot lower depending on the load. You have to find out yourself.