Jump to content

writing a toggle program


apostolakisl

Recommended Posts

Posted

I am wanting to use an IR remote to toggle an insteon light switch with the press of a single button. I have to believe there is a way to do this by writing one program, but have found that I can only get it to work by writing 2.

 

If

Status "kitchen light' is off

and IR "IR_001' is pressed

then

set scene 'kitchen lihgt' on

else no action

 

This turns the light on

 

If

Status 'kithchen light' is not off

and IR 'IR_001' is pressed

set scene 'kitchen light' off

else no action

 

This turns it off

 

So again, the question, is there a way to merge these two programs into one program to toggle the light on/off with the press of the IR button?

Posted

Hello apostolakisl,

 

The functionality you desire does require two programs. There are various ways it could be done using two programs, but the way you have outlined is probably the best.

 

Don't be too concerned though, as the ISY can handle many programs 8) .

Guest
This topic is now closed to further replies.

×
×
  • Create New...