# Problem with the last person went to sleep presence

**URL:** <https://community.homey.app/t/problem-with-the-last-person-went-to-sleep-presence/27528>\
**Category:** Questions & Help\
**Created:** [March 25, 2020, 6:13pm UTC](https://community.homey.app/t/problem-with-the-last-person-went-to-sleep-presence/27528 "2020-03-25T18:13:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eskild](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/eskild/32/23107_2.png) [@Eskild](https://community.homey.app/u/Eskild)\
**Post date:** [March 25, 2020, 6:13pm UTC](https://community.homey.app/t/problem-with-the-last-person-went-to-sleep-presence/27528/1 "2020-03-25T18:13:50Z")

</div>

Hi. I have a flow when everyone in the house has gone to bed, then the AC turns of and curtains go down.

But it only works if both me and my girlfriend is at home and both are marked as sleeping. I am working night shifts so I am not always home. Is it a way to fix so the flow starts when just one of us is at home and not when one is still awake when both are at home?

[https://homey.app/f/xGQOi4](https://homey.app/f/xGQOi4)

---

<div class="post-metadata">

**Author:** ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)\
**Post date:** [March 25, 2020, 7:40pm UTC](https://community.homey.app/t/problem-with-the-last-person-went-to-sleep-presence/27528/2 "2020-03-25T19:40:22Z")

</div>

The flow can only work if the status of you **AND** your girlfriend changes to “sleep”. But that doesn’t happen when you work at night shift.

You have to add two more flows. But this will only works if you use the “Home/Away” function.  
If  
The last person went to sleep  
Then  
Start flow „Siste Har Lagt Seg“

If  
Your girlfriend went to sleep  
And  
You are not at home  
Then  
Start flow „Siste Har Lagt Seg“

For the flow „Siste Har Lagt Seg“ you have to replace the card "The last Person went to sleep“ with “When this flow is started”.

---

<div class="post-metadata">

**Author:** ![Eskild](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/eskild/32/23107_2.png) [@Eskild](https://community.homey.app/u/Eskild)\
**Post date:** [March 25, 2020, 10:00pm UTC](https://community.homey.app/t/problem-with-the-last-person-went-to-sleep-presence/27528/3 "2020-03-25T22:00:12Z")

</div>

Thank you. I thought I might have to do something like that 😃
