I’ve been lurking these forums for a long time now getting really exited about Home Assistant and I’m trying to set something up but I’m not sure about the best way to do this.
My goal is to have home assistant turn off all the lights when me and my wife are both in bed. Currently we both use Tasker to trigger sleep tracking based on a few profiles (time, wifi connected, power ac etc.). What I want is to use tasker to trigger Home Assistant to turn of all the lights, however it should only turn off the lights when the last person goes to bed. When we both add the http post to turn of all the lights the person going to bed last will be in the dark since the first person going to bed already triggered it. Home assistant should only trigger this when we’re both in bed. I’m not sure how to configure this. I was thinking maybe people have besides a ‘home’ state also a ‘sleep’ state, but I have no idea if it is even possible to configure this. And maybe there is a much smarter way to set this up.