We have a “person x is sleeping” card, as well as an “anyone is sleeping”. But not an “everyone is sleeping”. I know this could be easily overcome with some AND logic, but still it would be a nice addition!
Isn’t there an Invert function when you right-click the card, sorry for Dutch in my example ( omkeren = Invert )
You have a “someone is sleeping” AND card, inverted to “nobody is sleeping”. But what I’m looking for is everyone, instead of someone
last person went to sleep is a card in the presence…
thats the one you are looking for
I forgot to mention (in my original post) that I need it as an AND card. This one is only a WHEN card
E.g: WHEN the door sensor opens AND everyone is asleep THEN sound the alarm. I know it can be easily done other ways. But still would be a nice to have, and a quick fix for Homey dev I presume
In that case, I would advise: ask Athom directly
you can use a variable for this…
when the last person went to sleep set EveryoneSleeping to TRUE
in the flow that you need , use the if EveryoneSleeping variable in the and section
I basically struggled with a similar issue. I have actions running on everyone’s phones that just toggle their sleep on and off when they go to sleep or wake up, and the toggle their presence on and off when they come home or leave the house.
However, in Homey, there’s no easy way to determine how many people are actually asleep at home. This is why I created this simple homey script that does that for me. I use it almost in every flow. I feel it should be basic functionality of the homey actually.