# Awake / Sleep mode flow

**URL:** <https://community.homey.app/t/awake-sleep-mode-flow/151399>\
**Category:** Flows\
**Tags:** flow, homey-pro, advancedflow\
**Created:** [February 20, 2026, 12:55pm UTC](https://community.homey.app/t/awake-sleep-mode-flow/151399 "2026-02-20T12:55:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Johnny\_Berntsen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/johnny_berntsen/32/123371_2.png) [@Johnny\_Berntsen](https://community.homey.app/u/Johnny_Berntsen)\
**Post date:** [February 20, 2026, 12:55pm UTC](https://community.homey.app/t/awake-sleep-mode-flow/151399/1 "2026-02-20T12:55:42Z")

</div>

Hi community.

Over the last year I have worked with the Homey and the possibilities it offers, which is great. The community offers great solutions and ways to do automation. I work a lot with advanced flows and variables which offers great possibilities.

Now I have a challange 🙂

There is a lot of good solutions on the forum for changing awake/Sleep mode. Sadly none works really well for me. Therefor I’m trying to explore the possibility of using iPhone logic to solve this.

So the use case is” When I put my phone in the charger that will trigger sleep atribute in homey pro to sleep, and when I remove my phone from the charger that will alter the tribute to awake” So far so good!

I use the iPhones internal logic in Shortcut automation to do the first part, “When I put my phone in the charger” That is automation triggers a Homey Flow (second part) which in turn alters a boolean variable “Sleep\_X” to yes.

That triggers the third part, an advanced flow who take care of all the other stuff, like Am I home´, time of day etc.

And to be clear; the first part and the third part works flawless, the main problem is the second part, the first flow. I’m struggling to find a good “when” that make sense at the start of the flow.

So my question or questions is:

1. Is there a better way to trigger the Sleep\_X variable from the iPhone?

2. Does anyone have a qualified suggestion for a good “when”?

---

<div class="post-metadata">

**Author:** ![Wim\_Post](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wim_post/32/56793_2.png) [@Wim\_Post](https://community.homey.app/u/Wim_Post)\
**Post date:** [February 20, 2026, 2:05pm UTC](https://community.homey.app/t/awake-sleep-mode-flow/151399/2 "2026-02-20T14:05:21Z")

</div>

I charge my iPhone overnight on the nightstand (I use the iPhone for alarms). When I put the phone in the stand the bedroom light will be on.  
So in my case the the trigger could be ‘this flow is started’.  
The extra condition would be ‘the bedroom light is on’

---

<div class="post-metadata">

**Author:** ![Johnny\_Berntsen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/johnny_berntsen/32/123371_2.png) [@Johnny\_Berntsen](https://community.homey.app/u/Johnny_Berntsen)\
**Post date:** [February 20, 2026, 2:08pm UTC](https://community.homey.app/t/awake-sleep-mode-flow/151399/3 "2026-02-20T14:08:20Z")

</div>

Thank you 🙂 , I surly missed that one from flow variables. And I think that might solve the problem 🙂
