Jump to content

Lights out!


aLf

Recommended Posts

Posted

Been reading the example codes and had a thought :? Rather than using the "ALL OFF" scene you guys helped me with, would this work?

 

IF KPL H is ON

AND SWITCH 1 IS ON

OR SWITCH 2 IS ON

OR SWITCH 3 IS ON.... Continuing through all 35 switches,

 

THEN

 

INSTEON SWITCH 1 OFF

INSTEON SWITCH 2 OFF

INSTEON SWITCH 3 OFF Continuing through all 35 switches and ApplianceLinks.

 

etc.

 

I like the idea that if anyone or anything turned a switch on, it would immediately go out, rather than waiting for the next hourly trigger to turn them all off.

 

Would this work or any other ideas.

 

aLf

  • 2 weeks later...
Posted
I like the idea that if anyone or anything turned a switch on, it would immediately go out, rather than waiting for the next hourly trigger to turn them all off.

 

aLf

 

Out of curiousity... what would you use this for? Keeping kids in bed after bed time? :D

Posted

It is better to use the 'is not Off' because nothing falls thru then. This code was not tested so I don't know how it behaves.

 

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
       Insteon  'Dining Hutch' On  
       Insteon  'Family Desk' On  
       Insteon  'Family Main (load)' On  
       Insteon  'Family Screen' On  
       Insteon  'Guest Bath Main' On  
       Insteon  'Guest Bath Tub' On  
       Insteon  'Kitchen Island' On  
       Insteon  'Kitchen Main' On  
       Insteon  'Kitchen Main (slave)' On  
       Insteon  'Kitchen Pantry' On  
       Insteon  'Kitchen Sink' On  
       Insteon  'Master Bath Main' On  
       Insteon  'Master Bath Tub' On  
       Insteon  'Master Hallway' On  
       Insteon  'Master Main (load)' On  
       Insteon  'Master Main (slave)' On  
       Insteon  'Master Read Amy' On  
       Insteon  'Master Read Mark' On  
       Insteon  'Master Screen' On  


Else
       Insteon  'Dining Hutch' Off  
       Insteon  'Family Desk' Off  
       Insteon  'Family Main (load)' Off  
       Insteon  'Family Screen' Off  
       Insteon  'Guest Bath Main' Off  
       Insteon  'Guest Bath Tub' Off  
       Insteon  'Kitchen Island' Off  
       Insteon  'Kitchen Main' Off  
       Insteon  'Kitchen Main (slave)' Off  
       Insteon  'Kitchen Pantry' Off  
       Insteon  'Kitchen Sink' Off  
       Insteon  'Master Bath Main' Off  
       Insteon  'Master Bath Tub' Off  
       Insteon  'Master Hallway' Off  
       Insteon  'Master Main (load)' Off  
       Insteon  'Master Main (slave)' Off  
       Insteon  'Master Read Amy' Off  
       Insteon  'Master Read Mark' Off  
       Insteon  'Master Screen' 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.


×
×
  • Create New...