Jump to content

Condition status on scene's devices


Mark Sanctuary

Recommended Posts

Posted

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

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing

    • No registered users viewing this page.
  • Who's Online (See full list)

  • Forum Statistics

    • Total Topics
      37.2k
    • Total Posts
      372.5k
×
×
  • Create New...