I’m struggling with the following : I have a “sleep” mode virtual switch, if that is turned on, behavior of lights, temperature and alarms is changed. I’ve now configured that it listens to a Hue Tap sensor, if you tap it it switches between on/off on the virtual switch. Works fine, but sometimes someone forgets to tap te button and it stays in sleeping mode, or the other way around and then lights/temps etc are not working as expected.
What do you guys use to determine if everyone is sleeping or not?
Actually the charger is now ON all day long (build in Qi-charger in nightstand). But your comment makes me think about expanding the flow a little further. Thanks for that.
I am using an Aqara vibration sensor and an Aqara motion sensor. Those are really cheap.
I’ve got the vibration sensor under the mattres. It is not perfect as it is not possible to change the sensitivty of the alarm with the zigbee protocol in Homey. But I am using change of vibration strength as trigger. (must be above 3, to avoid false triggers).
The montion sensor is placed under the bed. When it is triggered it marks me as awake. It also turns on lights under the bed that lightens the floor just enough to walk around. It also disables the flow for the vibration sensor for like 8 minutes for cases like “I get in the bedroom sit down on the bed to put on socks.”
The motion sensor under the bed detects me getting out of bed. Turning on ligths that is needed. When I get back in bed the vibration sensor detecs that I am back in the bed.
We have to nightstand lamps by our bed that turns on when someone enters the bedroom. On the bedstand there is a double-button that turns the lights off when you are about to sleep. This also activates sleep-mode.
I use two flic buttons on our bedside tables that put us to asleep and awake. I also use ‘reset flows’ that configure my apartment to default settings. I use this to mark everyone as awake, reset my light scenes to ‘normal’ etc. This flow just fires at 14:00.
What I do is use an power plug and whenever I plug in my phone I measure the power change which puts me to sleep. Since loading is prfetty unpredicatble as a proces the absence of power taken is not good to mark me awake.
For marking myself awake i use IFTTT to see when the power plug is unplugged from the phone. In android with IFTTT I can trigger a homey flow that marks me awake. Works pefect and without any delay.
to sleep:
If - power changed
And - power > 0
And - awake = YES
Then - change awake into NO
And - Mark me as sleeping
waking up:
If IFTTT applet start flow with tag wakker
and awake is No
then - markt me awake
and - set awake to YES
Long time ago but I now have the same problem. How to detect sleep. The charger option is not the best, I often forget or don’t care about my phone. I ordered some vibration sensor seems most reasonable for me. Will see how this turns out for me.
Set awake is easy, if after 6 in the morning and activities in two rooms detected.
Google Nest Hub 2nd gen also has a radar to detect sleep. I don’t know if you can trigger Google routines based on that, but if you can then this would also work. You can set op a virtual switch in Homey, have Google turn it on and off based on sleep detection and Homey can then react on the virtual switch.
EDIT: just found a FAQ from Google it cannot do that yet. Bummer! Their solution is also a joke: use the bedtime routine. Ok, so I should tell my sleep sensing radar when I go to sleep.