Jump to content

Condition status on scene's devices


Mark Sanctuary

Recommended Posts

I was wanting to create a trigger that would watch the devices in my "All" scene. I have the "All" scene that has about 22 devices in it. Here is the logic I was planning to do.

 

  1. [*:2t4fbktu]Check if all lights in the All scene are off.
    [*:2t4fbktu]If not then turn on the All LEDs on both keypadlincs with a follow scene.

So do you think we could have scenes added to Status which would allow a whole scene to be check for any lights on/off?

 

If
     Status 'scene' is not all Off

Or should I create a huge list of conditions like this example below?

 

If
     Status 'device1' is not Off
  Or Status 'device2' is not Off
  Or Status 'device3' is not Off
 ...
  Or Status 'device20' is not Off
  Or Status 'device21' is not Off
  Or Status 'device22' is not Off

Link to comment

Here is how I ended up doing it, basicly building my All scene into one big if statement. This is quite the cool little program because the All LEDs are on when any light is on in the house otherwise the led is off.

 

If
       Status  'Dining Hutch' is not Off
    Or Status  'Family Desk' is not Off
    Or Status  'Family Main (load)' is not Off
    Or Status  'Family Screen' is not Off
    Or Status  'Guest Bath Main' is not Off
    Or Status  'Guest Bath Tub' is not Off
    Or Status  'Kitchen Island' is not Off
    Or Status  'Kitchen Main' is not Off
    Or Status  'Kitchen Main Slave' is not Off
    Or Status  'Kitchen Pantry' is not Off
    Or Status  'Kitchen Sink' is not Off
    Or Status  'Master Bath Main' is not Off
    Or Status  'Master Bath Tub' is not Off
    Or Status  'Master Hallway' is not Off
    Or Status  'Master Main (load)' is not Off
    Or Status  'Master Main Slave' is not Off
    Or Status  'Master Read Amy' is not Off
    Or Status  'Master Read Mark' is not Off
    Or Status  'Master Screen' is not Off

Then
       Set  Scene 'Inside Both All LEDs' On

Else
       Set  Scene 'Inside Both All LEDs' Off

Link to comment

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...