Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Triggered Event on "last light is off"
#1
Now that I got this funky cool zWave thing going, I'm trying to figure out how I could code a triggered event to "put house into sleep mode" that kicks off if it's between 10pm->2am, and the last light is turned off.

I'm experiencing brain-freeze. Any ideas?
------------------------------------
Some of my devices: Sonos, Aeotec zWave, Nest, Rain8Net, Various H/T
What's next: CQC-Voice, Brultech GEM
My vlogs: https://www.youtube.com/c/IVBsHomeAutomation
Reply
#2
That would require reading the state of every light basically, so it's probably a little piggier than you would want to do. It would probably be a lot more practical to just have the person put the house into sleep mode when they think it's time.
Dean Roddey
Explorans limites defectum
Reply
#3
Could you setup some kind of variable that is a count of how many lights are on? And so when a light control switches to off, it decrements the counter, and then trigger on when that value becomes 0. That way you wouldn't have to keep checking all of the lights individually.
Reply
#4
That probably wouldn't last too long. I don't think it would be reliable enough to bother with.
Dean Roddey
Explorans limites defectum
Reply
#5
This is probably a highly personal thing, but I wouldn't really want to have to run around to shut all the lights off to "put the house to sleep." In my view, part of the point of an automation system is to hit a single button and have the system turn all the lights off, arm your alarm, etc.

You could also tie it to arming your ELK.. When it goes into Armed Stay, have it start a sequence which shuts your lights off, etc.
Reply
#6
Prefect Wrote:This is probably a highly personal thing, but I wouldn't really want to have to run around to shut all the lights off to "put the house to sleep." In my view, part of the point of an automation system is to hit a single button and have the system turn all the lights off, arm your alarm, etc.
Yep, highly personal.

If there was a telephone or voice recognition interface to CQC, I'd agree with you. But I don't want to have to go to a touchscreen just to do this. I don't have a touchscreen next to the bed, so this means i'd have to do something like "put house to sleep, but turn these lights off in 1 minute so I can physically get to the bed."

Quote:You could also tie it to arming your ELK.. When it goes into Armed Stay, have it start a sequence which shuts your lights off, etc.
We live in Oakland - the house goes into Armed Stay mode at 8pm :-)
------------------------------------
Some of my devices: Sonos, Aeotec zWave, Nest, Rain8Net, Various H/T
What's next: CQC-Voice, Brultech GEM
My vlogs: https://www.youtube.com/c/IVBsHomeAutomation
Reply
#7
IVB Wrote:Yep, highly personal.
If there was a telephone or voice recognition interface to CQC, I'd agree with you. But I don't want to have to go to a touchscreen just to do this. I don't have a touchscreen next to the bed, so this means i'd have to do something like "put house to sleep, but turn these lights off in 1 minute so I can physically get to the bed."

I'm still figuring out the best way to handle this myself. One idea is to use an Insteon desktop controller and use one of the presets to kick off the "go to sleep" mode. Failing that, I may just put a pushbutton in an unobtrusive place on or near my nightstand. The button output would tie to an ELK zone and could be used trigger the sequence in CQC. For extra points, I need to get a bust of someone famous and hinge the head so I can flip it back and activate night mode, like Bruce Wayne had to access the Bat Cave on the cheesy old Batman TV series. Smile

IVB Wrote:We live in Oakland - the house goes into Armed Stay mode at 8pm :-)

Fair enough.. I've visited my girlfriend's brother in Oakland a couple times and have little desire to go back.
Reply
#8
that's a cool idea. I wouldn't use a bust of someone's head; maybe a clapper...
------------------------------------
Some of my devices: Sonos, Aeotec zWave, Nest, Rain8Net, Various H/T
What's next: CQC-Voice, Brultech GEM
My vlogs: https://www.youtube.com/c/IVBsHomeAutomation
Reply
#9
IVB Wrote:Yep, highly personal.

If there was a telephone or voice recognition interface to CQC, I'd agree with you. But I don't want to have to go to a touchscreen just to do this. I don't have a touchscreen next to the bed, so this means i'd have to do something like "put house to sleep, but turn these lights off in 1 minute so I can physically get to the bed."


We live in Oakland - the house goes into Armed Stay mode at 8pm :-)

IVB, if you have an elk then you could use a phone to trigger an even. You can use one of the elks outputs (with nothing actually connected) and set the output to on or off depending on the mode of the house you want. Then CQC could trigger off the change of that output. Use an output higher than 16 because the elk actually has 1-16 onboard and anything higher than 16 are virtual outputs unless you have an expanded board.

Another trick that might work if you have IR throughout the house is to pick a button on the remote that does nothing normally. I know just about every remote I own has some IR button that does nothing when pressed. CQC could trigger off of the IR signal.

Lastly, you could monitor a small set of lights such as those in the bedrooms where you would normally be when you are about to go to bed. Setup a timer that starts when a light is first turned on and a variable that is incremented only after the timer has start and resets to 0 when the timer has finished. If the counter reaches 2 before the time runs out then CQC would put you house in NightMode. You would simply have to turn the light on and off and on and off and CQC would trigger off of that.

I am sure there are other ways. You need to use every sensor you have installed including Doors, Lights, Motions, Clocks to determine exactly what would warrant the house being in NightMode. You probably have your TV in your room wired to the system somehow. You could put the TV on a certain channel which would start a timer and if the tv is still on that channel after 2 seconds then trigger an event.
David
Z-Wave World Magazine|Baltimore Hackerspace
"Why think outside the box when you could let the box think for you." - My take on Home Automation
Reply
#10
Squintz Wrote:You would simply have to turn the light on and off and on and off and CQC would trigger off of that. .

Morse code through your home automation system...I LOVE it!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Timbertech RGBW post cap light retrofit and CQC kfly 4 1,599 07-24-2021, 04:41 AM
Last Post: kfly
  Status of Scheduled and Triggered Events gReatAutomation 4 1,794 04-21-2020, 12:58 PM
Last Post: gReatAutomation
  event and subsequent countdown timer question dogman 9 5,584 05-03-2018, 06:36 PM
Last Post: dogman
  your sched/triggered/tasker/IFTTT events IVB 17 9,991 01-18-2018, 07:41 AM
Last Post: RichardU
  Idea for a different kind of event processing mechanism Dean Roddey 0 1,706 03-20-2017, 09:29 AM
Last Post: Dean Roddey
  Best Way to Handle Wait Times within a Triggered Event kblagron 9 5,305 06-25-2016, 06:03 PM
Last Post: Dean Roddey
  Adding Christmas Light control to CQC with Lutron HW8 avtexan 10 7,175 11-18-2015, 12:35 PM
Last Post: avtexan
  Thingspeak event monitor potts.mike 5 3,795 05-09-2015, 06:11 PM
Last Post: wuench
  Overlay in an Overlay triggered by Widget Deane Johnson 4 4,036 11-09-2014, 10:29 AM
Last Post: Deane Johnson
  event scheduler ellisr63 8 4,435 04-11-2014, 02:43 PM
Last Post: ellisr63

Forum Jump:


Users browsing this thread: 1 Guest(s)