Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Controllers
  3. Domoticz
  4. best way to sync relay node plus button node with light

best way to sync relay node plus button node with light

Scheduled Pinned Locked Moved Domoticz
2 Posts 2 Posters 1.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    TEStevens
    wrote on last edited by
    #1

    Right now I have:
    1 working relay node with 4 buttons and
    1 working button controller node with 4 buttons and 4 lights

    I would like the buttons to control the relays and the button lights match the state of the relays even if the relays were toggled via the domoticz interface.

    Right now I have the relays nodes set up as V_LIGHTS and my buttons as separate V_LIGHTS. Then in Blocky I did a long if/else statement if one of them changed to change the state of the other device. I think it would sometimes confuse blocky and I would start an endless cycle of toggling the buttons. (this was my first attempt with blocky)

    In the future I would like to add more of my button controllers to control the same set of relays.

    Is there a more elegant way to make the state of two separate devices equal.

    Thanks in advance
    Troy

    DwaltD 1 Reply Last reply
    0
    • T TEStevens

      Right now I have:
      1 working relay node with 4 buttons and
      1 working button controller node with 4 buttons and 4 lights

      I would like the buttons to control the relays and the button lights match the state of the relays even if the relays were toggled via the domoticz interface.

      Right now I have the relays nodes set up as V_LIGHTS and my buttons as separate V_LIGHTS. Then in Blocky I did a long if/else statement if one of them changed to change the state of the other device. I think it would sometimes confuse blocky and I would start an endless cycle of toggling the buttons. (this was my first attempt with blocky)

      In the future I would like to add more of my button controllers to control the same set of relays.

      Is there a more elegant way to make the state of two separate devices equal.

      Thanks in advance
      Troy

      DwaltD Offline
      DwaltD Offline
      Dwalt
      wrote on last edited by
      #2

      @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".

      Veralite UI5 :: IBoard Ethernet GW :: MyS 1.5

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      12

      Online

      11.7k

      Users

      11.2k

      Topics

      113.1k

      Posts


      Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • MySensors
      • OpenHardware.io
      • Categories
      • Recent
      • Tags
      • Popular