In my current configuration my home assistant records the time I’ve fallen asleep, how long i’ve been asleep etc. but doesn’t actually record a new asleep state. What I’m hoping to achieve is an asleep state for use in automation, turning x off when i doze off etc.
Can anyone offer guidance as to how i do this. I’m thinking it would be something like at noon set time asleep to another value, next time value is less than this state = asleep. Thoughts, Guidance?
This is an old thread but I am also interested in this. Would like to set up an automation to turn off the bedroom TV if I have fallen asleep. I thought the Sleep_Start_Time would be good, but it does not seem to update until after you wake up.