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:
-
Is there a better way to trigger the Sleep_X variable from the iPhone?
-
Does anyone have a qualified suggestion for a good āwhenā?