# Unifi app - away / home / sleep (Solved)

**URL:** <https://community.homey.app/t/unifi-app-away-home-sleep-solved/9893>\
**Category:** Questions & Help\
**Created:** [March 1, 2019, 10:52am UTC](https://community.homey.app/t/unifi-app-away-home-sleep-solved/9893 "2019-03-01T10:52:21Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Maas](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/david_maas/32/25776_2.png) [@David\_Maas](https://community.homey.app/u/David_Maas)\
**Post date:** [March 1, 2019, 10:52am UTC](https://community.homey.app/t/unifi-app-away-home-sleep-solved/9893/1 "2019-03-01T10:52:21Z")

</div>

I use this app and it works great.  
When i come home and i connect to my accespoint it changes the state to Home.  
When i leave the house and disconnect from my accespoint is changes the state to Away.

So far so good.

But when i go to bed i always set my phone to flightmodus. Now i dont want homey states me to Away but to Sleeping.

What is a good way to automate this? I prefer not to do anything manually.

Thanks a lot

---

<div class="post-metadata">

**Author:** ![Ferry\_van\_E](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ferry_van_e/32/10953_2.png) [@Ferry\_van\_E](https://community.homey.app/u/Ferry_van_E)\
**Post date:** [March 1, 2019, 10:55am UTC](https://community.homey.app/t/unifi-app-away-home-sleep-solved/9893/2 "2019-03-01T10:55:18Z")

</div>

Set your phone to ‘do not disturb’ (if this concerns an iPhone)?

---

<div class="post-metadata">

**Author:** ![David\_Maas](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/david_maas/32/25776_2.png) [@David\_Maas](https://community.homey.app/u/David_Maas)\
**Post date:** [March 1, 2019, 11:03am UTC](https://community.homey.app/t/unifi-app-away-home-sleep-solved/9893/3 "2019-03-01T11:03:55Z")

</div>

Thanks your fast reply.

But i prefer to kill all WiFi in the bedroom at night.

---

<div class="post-metadata">

**Author:** ![Jeroen\_Somhorst](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jeroen_somhorst/32/184_2.png) [@Jeroen\_Somhorst](https://community.homey.app/u/Jeroen_Somhorst)\
**Post date:** [March 1, 2019, 11:07am UTC](https://community.homey.app/t/unifi-app-away-home-sleep-solved/9893/4 "2019-03-01T11:07:46Z")

</div>

Instead of using unify for this I added a virtual device that I cal ‘sleeping’ . I made a flow that reacts on changes of this device. When I go to sleep I press it and the flow turns off everything and sets all users to sleep.

when I disable the device again everyone is set to awake

---

<div class="post-metadata">

**Author:** ![zigvespa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/zigvespa/32/7788_2.png) [@zigvespa](https://community.homey.app/u/zigvespa)\
**Post date:** [March 1, 2019, 1:43pm UTC](https://community.homey.app/t/unifi-app-away-home-sleep-solved/9893/5 "2019-03-01T13:43:08Z")

</div>

I have an Innr Zigbee SP120 wall plug connected to my iPhone charger. If it measures \>5W energy consumption, it triggers a flow which sets my status to " sleeping".

When your iPhone is fully charged, the energy will drop to 0W; that’s why I have another flow which activates at 06.30hrs and is only true when the SP120 plug measures 0W consumption. This flow enables everything I disabled with the “sleeping” flow.

And I also use the UniFi connection status for “at home” and “away” status, it works great.

---

<div class="post-metadata">

**Author:** ![David\_Maas](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/david_maas/32/25776_2.png) [@David\_Maas](https://community.homey.app/u/David_Maas)\
**Post date:** [March 1, 2019, 1:44pm UTC](https://community.homey.app/t/unifi-app-away-home-sleep-solved/9893/6 "2019-03-01T13:44:22Z")

</div>

Thanks! This is what i’m going to do!

---

<div class="post-metadata">

**Author:** ![Gerard](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gerard/32/8846_2.png) [@Gerard](https://community.homey.app/u/Gerard)\
**Post date:** [March 2, 2019, 7:55am UTC](https://community.homey.app/t/unifi-app-away-home-sleep-solved/9893/7 "2019-03-02T07:55:21Z")

</div>

I hate to be a party pooper, but if you put your phone in airplane mode in the bedroom to have a “radio less” sleeping environment, you just introduced a zigbee radio in that scenario.

---

<div class="post-metadata">

**Author:** ![bvdbos](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bvdbos/32/2352_2.png) [@bvdbos](https://community.homey.app/u/bvdbos)\
**Post date:** [March 5, 2019, 5:26pm UTC](https://community.homey.app/t/unifi-app-away-home-sleep-solved/9893/8 "2019-03-05T17:26:23Z")

</div>

Just to add to that: Both Zigbee an Wifi work on the same frequency-band: 2,4 Ghz

---

<div class="post-metadata">

**Author:** ![David\_Maas](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/david_maas/32/25776_2.png) [@David\_Maas](https://community.homey.app/u/David_Maas)\
**Post date:** [March 5, 2019, 8:48pm UTC](https://community.homey.app/t/unifi-app-away-home-sleep-solved/9893/9 "2019-03-05T20:48:43Z")

</div>

In my case I’m using a fibaro plug and the lower frequency 868,42 Mhz. 😉
