Announcement

Collapse
No announcement yet.

Trigger an event with a virtual device

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

    Trigger an event with a virtual device

    This works but I have a problem. I have a virtual device called KITCHEN. When the device changes to on then event fires off and turns on the appropriate lights.

    And likewise off triggers the off event.

    The problem is say I turn on kitchen. The another event turns off the lights, like the event GOOD NIGHT HOUSE.

    Then next time I trigger kitchen on, it doesnt work as the virtual device is already on.

    The are multiple ways the kitchen lights get triggered for different events. But if I add a line to every event to turn off the virtual device, then all the lights go dark before the rest of the event fires.

    I hope I made that clear?

    Any ideas?

    #2
    I think I'm following you here.

    Why not just create an event that turns the virtual device off every time the kitchen light turns off?
    Originally posted by rprade
    There is no rhyme or reason to the anarchy a defective Z-Wave device can cause

    Comment


      #3
      Hummm I knew I wasnt thinking well. There are 14 lights in the kitchen. I will figure out which ones are always part of one of the other events and then make a new event as you said to turn off the virtual device.

      I guess if it was one switch on the wall for the lights it would have been easier to figure this out. But the lights are all Phillips and all controlled individually using HS

      Thanks for the idea! I thank you!

      Comment


        #4
        Well, how about:

        IF light 1 turns off

        OR IF light 2 turns off

        OR IF light 3 turns off

        OR IF light 4 turns off

        OR IF etc.

        THEN turn off virtual device

        Would that work?
        Originally posted by rprade
        There is no rhyme or reason to the anarchy a defective Z-Wave device can cause

        Comment


          #5
          Yes I am writing that event currently. I was really stuck not thinking about this and its so simple! Thank you!

          Comment

          Working...
          X