I do this with a Hue sync box. When we switch off the Apple TV the sync box stops syncing which tells Home Assistant it’s time to put the lights back to normal.
As for going to sleep, I simply set down my iPhone in a Qi charger and Home Assistant powers everything down, turns on a fan and reminds me to close any doors I may have left open (we like to open up our space).
It even adjusts the lights accordingly based on who’s asleep. At one point we carried Bluetooth trackers around so it knew exactly who was in each room but my wife got tired of the tracker real quick.
I do this with a Hue sync box. When we switch off the Apple TV the sync box stops syncing which tells Home Assistant it’s time to put the lights back to normal.
As for going to sleep, I simply set down my iPhone in a Qi charger and Home Assistant powers everything down, turns on a fan and reminds me to close any doors I may have left open (we like to open up our space).
It even adjusts the lights accordingly based on who’s asleep. At one point we carried Bluetooth trackers around so it knew exactly who was in each room but my wife got tired of the tracker real quick.