Navigation

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

    Topics created by TEStevens

    • TEStevens

      best way to sync relay node plus button node with light
      Domoticz • • TEStevens  

      2
      0
      Votes
      2
      Posts
      1211
      Views

      Dwalt

      @TEStevens This is two separate nodes, correct? As I understand what you described: you have a 4-relay node and you have a node with four buttons and four lights, are these LEDs on the node or switched lights? If this is a separate node from the relays, I would use S_SCENE_CONTROLLER for the buttons and S_LIGHT for the LEDs and use logic on your controller to send V_LIGHT commands to both the LEDs on the button node and to the relay node when a scene is switched 'on' or 'off' from any of your proposed "button controllers".
    • TEStevens

      Node to Node communication
      Development • • TEStevens  

      15
      0
      Votes
      15
      Posts
      9982
      Views

      krayola

      I figured that out from the other thread I added this little helper to my copy of MySensors.cpp: void MySensor::wait(unsigned long ms) { bool slept_enough = false; unsigned long start = millis(); unsigned long now; // Let serial prints finish (debug, log etc) Serial.flush(); while (!slept_enough) { MySensor::process(); now = millis(); if (now - start > ms) { slept_enough = true; } } } In theory it'll handle the millis() rollover, but I haven't verified yet. I'm now able to send messages between nodes with and without being in repeater mode. I have yet to test repeater mode, as i haven't convinced a sensor it can't see the gw yet
    • TEStevens

      Serial Gateway Display
      Development • • TEStevens  

      1
      0
      Votes
      1
      Posts
      794
      Views

      No one has replied