Posts: 1,790
Threads: 86
Joined: Feb 2005
Don't know who wrote the driver (Dean I suspect), but it would be trivial to do within the z-wave driver to set a boolean field that represents all off for lighting. The driver would be the place to do it since the # of fields is dynamic and changes per installation.
Posts: 7,970
Threads: 554
Joined: Mar 2005
do you mean a command to "turn all lights off", or the question of "are all lights off?"
Posts: 138
Threads: 17
Joined: Jul 2006
Couldn't you add another switch in your room that would be a master off "scene"
for the house? The switch could turn the rest of the lights in the house off and set then set the house to sleep?
I am really new to the lighting thing but I'm trying to learn before I spend the cash for it so my suggestion might be way off...
Posts: 1,790
Threads: 86
Joined: Feb 2005
IVB Wrote:do you mean a command to "turn all lights off", or the question of "are all lights off?"
I was referring to the "are all lights off". In the Polling section of the driver, a method would run that would check the status of all light fields and do an AND. Psuedo code:
Code:
AllOff := True;
While ((Index <= LastLight) && (AllOff)) Do
AllOff := AllOff AND LightState(Index);
Index := Index + 1;
EndWhile;
AllOffField := AllOff;
You could probably write your own in a CML Macro and call it periodically, writing the result into a Variable Driver field.
Posts: 7,970
Threads: 554
Joined: Mar 2005
Hiller Wrote:Couldn't you add another switch in your room that would be a master off "scene"
for the house? The switch could turn the rest of the lights in the house off and set then set the house to sleep?
I am really new to the lighting thing but I'm trying to learn before I spend the cash for it so my suggestion might be way off...
Yeah, I hadn't thought of that. I just need to figure out where/how to mount it, so it's not accidentally hit, not unattractive or oddly placed (WAF), and also so it's convenient for both me & wife depending on who goes to bed first.
I'm also going to research that phone via Elk thing that Squintz mentioned.
This is where VoiceRecog would help - I could just say "Go to sleep, Dean". (cuz you know, i'd hire Dean to do the recording for my HA announcements)
Posts: 2,521
Threads: 87
Joined: Sep 2006
When I read your first post I thought you were asking something very different. I thought you were asking if CQC could put the house in sleep mode when the last switch was hit. I like this idea, seriously but the only way I can think to do it would be to schedule events every 15-30 minutes between 10p and 2am that actually checks the important switches and switches to sleep mode appropriately. Now, that would be cool!
Russ...
Posts: 40,483
Threads: 491
Joined: Aug 2002
To me, that's one of those things that sounds cool, but in practice would probably be a huge PITA because you'd end up triggering it when you don't mean to, and probably at the worst possible time. That's the kind of thing that I'd definitely keep in the 'proactively engaged' category.
Dean Roddey
Explorans limites defectum
Posts: 2,521
Threads: 87
Joined: Sep 2006
Dean, I agree with you. I'm not sure it would work out in reality but it certainly would make sense that depending on what sleep mode did, the impact would have to be weighed. I find it hard to believe that you'd be in the house without a light on and without the theater cooking if you weren't at least in bed. The other thing that might help is to require the "all lights off" to be set for 15+ minutes or some such rule.
Russ...
Posts: 930
Threads: 23
Joined: Jan 2005
I have an "all lights off" switch that is a single switch on a standard 4 gang C-Bus plate.
I have one mounted either side of the bed so it can be triggered by either of us.
The other 3 switches on the plate, control other lights etc in the room.
I have used this "all off" functionality in 2 houses and it is extremely handy, you'll soon get very used to it.
Cheers
Rohan
HAMFIELD
Software & Hardware Solutions
Makers of the
Translink C-Bus Gateway
for the Apple iPad, iPhone and iPod Touch.