Announcement

Collapse
No announcement yet.

Event trigger loop: syncing multiple lights

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Event trigger loop: syncing multiple lights

    I have 4 dimmable lights on smart switches (HS-WD100+) and 3 non-dimmable LED lights on smart plugs (Aeon Labs ZW096) which I want to be synced up.

    My attempted implementation is that I have a single virtual device that can be on or off, and when it turns on or off it does the same to all the listed devices. I have additional events on dimmable lights to change the status of the virtual device when they turn on or off.

    The problem is that this seems to cause a loop. When I activate the events, and trigger one of them the lights just start turning on and off forever. I don't think there's fundamentally a loop if everything happened instantly but it can take a couple seconds for everything to propagate through the network and then back again.

    Photo of configuration attached.

    Am I missing something here? Is there a canonical way to do this that I don't know about?

    Thank you!
    Attached Files

    #2
    Could you use "The device changes and becomes..." for the Off events and also for the On on the Virtual device? This will not stop the On for a triggering switch from running a second time but I would think it would stop the loop.
    Karl S
    HS4Pro on Windows 10
    1070 Devices
    56 Z-Wave Nodes
    104 Events
    HSTouch Clients: 3 Android, 1 iOS
    Google Home: 3 Mini units, 1 Pair Audios, 2 Displays

    Comment


      #3
      Yeah that's what I'm using actually. I figured that would make it loop proof but that doesn't seem to be the case...
      Attached Files

      Comment


        #4
        The large screen shot was a bit fuzzy so I couldn't read it. The second, with just two events, does not look like it would generate a loop. If you enable just those two do they generate a loop? Maybe your log entries during the looping will offer a clue.
        Mike____________________________________________________________ __________________
        HS3 Pro Edition 3.0.0.548, NUC i3

        HW: Stargate | NX8e | CAV6.6 | Squeezebox | PCS | WGL 800RF | RFXCOM | Vantage Pro | Green-Eye | Edgeport/8 | Way2Call | Ecobee3 | EtherRain | Ubiquiti

        Comment


          #5
          I think I got it! Thank you. Instead of triggering off the light status, I'm new triggering of the switch status. That way the result of the event wont' trigger other events. There are some downsides but none as bad as an infinite loop!

          Comment


            #6
            Why not use "Linked Device" feature? It's great!
            You need to create "circular" link, i.e. Device1 => Device2 => Device3 => Device1
            That way change to any device will set all other devices to the same value.
            https://www.youtube.com/watch?v=jajA...ature=youtu.be
            Click image for larger version

Name:	Linked.png
Views:	108
Size:	87.1 KB
ID:	1256490

            Comment


              #7
              One reason may be that he still wants to be able to control them individually. If they're linked can he still do that?

              Regards
              Michael
              Regards,
              Michael

              HS3, W10 Home, HSTouch, W800, Z-Stick+

              Comment


                #8
                Originally posted by mmn View Post
                One reason may be that he still wants to be able to control them individually. If they're linked can he still do that?
                Don't think so

                Comment

                Working...
                X