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?