depending on if the on or off button is pressed, I want to do something.
My login problem is this. I have the code
if (state_changed $button1)
set $All_Lights (state $button1);
if (state_changed $button2)
set $living_room_light (state $button2);
If the livingroom light was turned on manually, and I want to turn it off
with the remote, I first have to press on, then off, because MH doesn't
know the light is on. I know I'm missing something real basic, but how do
you just capture the keypress?