Jump to content

Lights out!


aLf

Recommended Posts

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

Link to comment
  • 2 weeks later...

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

Link to comment

Archived

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


×
×
  • Create New...