# Outdoor Socket

**URL:** <https://community.homey.app/t/outdoor-socket/16539>\
**Category:** Flows\
**Created:** [August 6, 2019, 9:11pm UTC](https://community.homey.app/t/outdoor-socket/16539 "2019-08-06T21:11:49Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![gy\_1977](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gy_1977/32/16573_2.png) [@gy\_1977](https://community.homey.app/u/gy_1977)\
**Post date:** [August 6, 2019, 9:11pm UTC](https://community.homey.app/t/outdoor-socket/16539/1 "2019-08-06T21:11:49Z")

</div>

I’m looking to create a flow for an outdoor socket that’s controlled via a Z Wave plug. I want the socket to be on when someone is home and off when no one is home.

There are two us at home and both phones have the presence detection switched on.

I know this sounds simple but in the ‘when’ part of the flow there is no option for when everyone is home or no one is home.

---

<div class="post-metadata">

**Author:** ![ArnoP](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arnop/32/13709_2.png) [@ArnoP](https://community.homey.app/u/ArnoP)\
**Post date:** [August 6, 2019, 11:22pm UTC](https://community.homey.app/t/outdoor-socket/16539/2 "2019-08-06T23:22:51Z")

</div>

Why not use:

WHEN first person came home  
THEN switch on

and a second flow:

WHEN last person left home  
THEN switch off

---

<div class="post-metadata">

**Author:** ![Tomm](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tomm/32/10625_2.png) [@Tomm](https://community.homey.app/u/Tomm)\
**Post date:** [August 7, 2019, 8:38am UTC](https://community.homey.app/t/outdoor-socket/16539/3 "2019-08-07T08:38:59Z")

</div>

The flowcard ArnoP is mentioning is available as of Homey firmware v2.3.0

---

<div class="post-metadata">

**Author:** ![gy\_1977](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gy_1977/32/16573_2.png) [@gy\_1977](https://community.homey.app/u/gy_1977)\
**Post date:** [August 7, 2019, 10:59am UTC](https://community.homey.app/t/outdoor-socket/16539/4 "2019-08-07T10:59:32Z")

</div>

Thanks I’ve updated my flow and I’ll see how it is. Looks a very simple solution, I was overthinking

---

<div class="post-metadata">

**Author:** ![Snippem](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/snippem/32/12631_2.png) [@Snippem](https://community.homey.app/u/Snippem)\
**Post date:** [August 7, 2019, 7:09pm UTC](https://community.homey.app/t/outdoor-socket/16539/5 "2019-08-07T19:09:44Z")

</div>

Why rely on presence detection?  
U could use this as when there is activity then switch on and the same for off.

 ![Screenshot_20190807-210658](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/2/2bdbb6120b6dd811ebfcb040e3db6a592c2f2ec3.jpeg)

Or combine presence so it is not only reacting on your phones.

Note I do not now your setup but there has to be contact switches or motion sensors present in your setup.

---

<div class="post-metadata">

**Author:** ![gy\_1977](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gy_1977/32/16573_2.png) [@gy\_1977](https://community.homey.app/u/gy_1977)\
**Post date:** [August 8, 2019, 8:17pm UTC](https://community.homey.app/t/outdoor-socket/16539/6 "2019-08-08T20:17:26Z")

</div>

That worked a treat, thanks
