I am on a Staycation this week, so I'm looking to improve my Insteon system.
I used to have an X10 system, and used the All Lights On, and was looking to do something similar on my 8 buton KPLs (I have 1 button "reserved" for this on all of them). I have a house with 12 lights, 4 ceiling fans, and a 4 controllers.
I am also a "classically-trained" programmer, which may be what is getting in my way .
-------------
First, I'm trying to set the system to remember its state when the Emergency-All button is hit. I was thinking of using a variable "HouseState", and doing binary arithmetic ("If Kitchen Sink is ON then $HouseState |= 8", etc. for all 12 lights.)
Is there a way to do all 12 of these without having to write 12 programs (one for each IF statement) ?
Sub-question: if I do this using 1 variable, are there any math / test functions that will make the comparision easier (e.g MOD(HouseStatus, or using HouseStatus |= 8 as a condition)? Or is this an additional 12 programs (one for each variable)?
-------------
Second, is there a way to (in one command) read the statuses all of the devices in the household, perhaps send back as a list or something.
------------
I can't be the first person to do this, but my searches on "Emergency" or "All ON" have not proven fruitful. Pointers to existing posts are also welcome.
Or just tell me that variables are cheap, use 1 per light, and be done with it!
Thanks.
James