Dans Homey, tu télécharges l’application “présence intelligente” celle-ci vérifie si ton téléphone est connecté au wifi ou non.
Quand j’éteins mon wifi entre 21h00 et 7h00 du matin, cela veut dire que je vais dormir.
Quand je rallumes le wifi de mon téléphone, cela veut dire que je suis réveillé. (Si tu veux garder des notifications d’autres applications alors allume ton 4G pendant que tu dors )
In Homey, you download the “Smart Presence” app, which checks whether your phone is connected to Wi-Fi or not.
When I turn off my wifi between 9:00 p.m. and 7:00 a.m., it means I’m going to sleep.
When I turn my phone’s wifi back on, it means I’m awake. (If you want to keep notifications from other apps then turn on your 4G while you sleep).
I’m sleeping in an electric bed where I have placed a door sensor on the part that elevates and the frame of the bed which is stationary. The last thing I do before going to sleep is lower the bed to be fully horizontal which closes the doorcontact and registers me to be sleeping. Next moring I raise the bed again after waking up and I leave it in that position during the day which tells Homey I’m awake.
I’m using the MacroDroid app on my Android phone to automate sleep tracking. When I activate my alarm in Sleep Cycle, MacroDroid detects it and sends a webhook (ending with /sleeping) to Homey Pro, marking me as sleeping. When the alarm goes off and shows a ‘Good morning’ message, another webhook (/awake) is sent to update my status.
For others in the house, I don’t use this method as they either have different alarms or don’t want MacroDroid installed.
The water sensor idea is genius—definitely going to try that!
A little app that uses Sleep API | Google for Developers and send a notifiction to homey (Or MQTT to make it more universal) would be nice. I am not an android developper… Just a suggestion.
I use a button to tell homey I am going to sleep.
Waking up goes with my iphone alarm. You can start a flow when that alarm goes of, so every morning depending on my alarm time, I am set to awake again in Homey.
For me, the Awake/Asleep functionality is not the actual state of the people in the house, but more their intent. All the lights in my house are programmed to turn on/off and dim automatically based on motion and luminance. I use the sleep status to dim the lights differently. Whenever someone is marked asleep, I disable the automatic dimming in their bedroom and he/she receives a notification with the question whether they want to turn off the lights in their bedroom, or all the lights in the house. Also, when everyone is set to asleep, whenever the hallway or bathroom motion sensor is triggered, I automatically dim to only 3% to act as a night/guide light. Also, people can enable and configure their wake up alarm. You can create a wake-up light and a Sonos playlist that will be played when you wake up.
So in my household, everyone is free to mark themselves as asleep/awake however they want to, but most (including me )have it tied to their sleep mode in iOS which is either controlled through a sleep schedule or manually (with a lock-screen). It doesn’t make sense to have it enabled/disabled by a sensor that senses when you are actually asleep. You set it when you want to go to sleep.