# How to make a basic thermostat to relay flow

**URL:** <https://community.homey.app/t/how-to-make-a-basic-thermostat-to-relay-flow/37836>\
**Category:** Questions & Help\
**Created:** [November 23, 2020, 9:57pm UTC](https://community.homey.app/t/how-to-make-a-basic-thermostat-to-relay-flow/37836 "2020-11-23T21:57:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Larssa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/larssa/32/30336_2.png) [@Larssa](https://community.homey.app/u/Larssa)\
**Post date:** [November 23, 2020, 9:57pm UTC](https://community.homey.app/t/how-to-make-a-basic-thermostat-to-relay-flow/37836/1 "2020-11-23T21:57:14Z")

</div>

Hello There

Im really new to this world, been having fibaro HC for three years but now i dont understand anything.  
These apps are killing me and i dont find the right commands that im used too.

My case is:  
I have a kitchen zone, that have a fibaro motion device who checks my temperature.  
And i have zwater relays that control my heating off or on.

So this is what i want to do  
To make a heating schedule that turns my relays off or on if the right temperatur is met.

Ive downloaded heating schedule and vtermo. But i dont find the commands that will help me do that in the apps.

I think it would be a one great app if one could just do all of that, but it doesent seem like it exist.

Do anybody have some time to help me with what im missing

Thanks from a noob in Homey

---

<div class="post-metadata">

**Author:** ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)\
**Post date:** [November 24, 2020, 8:24am UTC](https://community.homey.app/t/how-to-make-a-basic-thermostat-to-relay-flow/37836/2 "2020-11-24T08:24:48Z")

</div>

Hello and a warm welcome!

Perhaps you can join this post with the same question.

> [@How to link thermostat with external thermometer](https://community.homey.app/t/how-to-link-thermostat-with-external-thermometer/37741):
>
> Hello, I just changed my fibaro controller with Homey pro. In fibaro I used feature called “linked devices” which allowed me to link external thermometer with thermostat which controls my electric underfloor heating. I can’t seems to find something similar feature in Homey pro. Is this somehow possible? The reason I’m trying to link these two devices is because the location of the actual thermostat is not very good for measuring the room temperature, the internal thermostat sensor is affected…

---

<div class="post-metadata">

**Author:** ![Igy](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/igy/32/22144_2.png) [@Igy](https://community.homey.app/u/Igy)\
**Post date:** [November 24, 2020, 11:59am UTC](https://community.homey.app/t/how-to-make-a-basic-thermostat-to-relay-flow/37836/3 "2020-11-24T11:59:22Z")

</div>

Is the heating shedule complex one? If not, you can use simple flows for that or virtual thermostat as described in topic mentioned by @DirkG.

---

<div class="post-metadata">

**Author:** ![PeterK](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peterk/32/29976_2.png) [@PeterK](https://community.homey.app/u/PeterK)\
**Post date:** [November 24, 2020, 12:52pm UTC](https://community.homey.app/t/how-to-make-a-basic-thermostat-to-relay-flow/37836/4 "2020-11-24T12:52:53Z")

</div>

I tried this heating schedule app and it is working fine:

> **[Homey Heating Scheduler](https://homey.app/en-us/app/app.mskg.homey-heating/Homey-Heating-Scheduler/)**
>
> Create and manage heating schedules

But you will need to use virtual thermostat to link the external temperature sensor with the relays.

Peter

---

<div class="post-metadata">

**Author:** ![Undertaker](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/undertaker/32/53278_2.png) [@Undertaker](https://community.homey.app/u/Undertaker)\
**Post date:** [October 3, 2021, 4:36pm UTC](https://community.homey.app/t/how-to-make-a-basic-thermostat-to-relay-flow/37836/5 "2021-10-03T16:36:16Z")

</div>

This is relatively easy to do with 2 flows.

1. 

If: The temperature has changed  
And: The temperature is lower than xx (logic)  
Then: Relay on

1. 

If: The temperature has changed  
And: The temperature is greater than xx (logic)  
Then: Relay off

Under And, you can add further conditions such as: The time is between xx and xx
