# Flow that turn on or off the socket based on temp

**URL:** <https://community.homey.app/t/flow-that-turn-on-or-off-the-socket-based-on-temp/17700>\
**Category:** Flows\
**Created:** [September 4, 2019, 4:08pm UTC](https://community.homey.app/t/flow-that-turn-on-or-off-the-socket-based-on-temp/17700 "2019-09-04T16:08:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eldar\_Moen\_Lindgren](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/eldar_moen_lindgren/32/12627_2.png) [@Eldar\_Moen\_Lindgren](https://community.homey.app/u/Eldar_Moen_Lindgren)\
**Post date:** [September 4, 2019, 4:08pm UTC](https://community.homey.app/t/flow-that-turn-on-or-off-the-socket-based-on-temp/17700/1 "2019-09-04T16:08:28Z")

</div>

Hi. Need help creating a flow that turns off or on the fibaro socket, to which a heater is connected, when the xiaomi temp sensor goes above or below a given temperature.

---

<div class="post-metadata">

**Author:** ![Rocodamelshekima](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rocodamelshekima/32/8209_2.png) [@Rocodamelshekima](https://community.homey.app/u/Rocodamelshekima)\
**Post date:** [September 4, 2019, 4:22pm UTC](https://community.homey.app/t/flow-that-turn-on-or-off-the-socket-based-on-temp/17700/2 "2019-09-04T16:22:47Z")

</div>

Could be something like this:

 ![chrome_2019-09-04_18-20-41](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/3/3aeb86de83c38dee0a8ec3763bf6522640f3314e.png)

Where Masterbedroom in the WHEN part is ur Temp sensor and Wasmachine plug is ur Fibaro socket.  
U have to make another flow to turn it off ofc.

---

<div class="post-metadata">

**Author:** ![Eldar\_Moen\_Lindgren](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/eldar_moen_lindgren/32/12627_2.png) [@Eldar\_Moen\_Lindgren](https://community.homey.app/u/Eldar_Moen_Lindgren)\
**Post date:** [September 4, 2019, 4:42pm UTC](https://community.homey.app/t/flow-that-turn-on-or-off-the-socket-based-on-temp/17700/3 "2019-09-04T16:42:00Z")

</div>

Perfect, thank you.
