# Climate control for a heater

**URL:** <https://discourse.nodered.org/t/climate-control-for-a-heater/58504>\
**Category:** General\
**Created:** [17 February 2022 03:14 UTC](https://discourse.nodered.org/t/climate-control-for-a-heater/58504 "2022-02-17T03:14:22Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![todaxtream](https://avatars.discourse-cdn.com/v4/letter/t/e68b1a/32.png) [@todaxtream](https://discourse.nodered.org/u/todaxtream)\
**Post date:** [17 February 2022 03:14 UTC](https://discourse.nodered.org/t/climate-control-for-a-heater/58504/1 "2022-02-17T03:14:22Z")

</div>

Hello, ive been trying to setup a climate control for my Addition, i have a heater plugged into a smart switch, and i have a esp with a thermometer on it, my problem is that i cant get it working correctly, ether i cant get it to shut off, or it wont heat atall,

```auto
[{"id":"664ff39be1b9dd7d","type":"poll-state","z":"6452952728e16b61","name":"Cathouse Temp","server":"ae668be1.b7d398","version":2,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"updateinterval":"30","updateIntervalType":"num","updateIntervalUnits":"seconds","outputinitially":false,"outputonchanged":true,"entity_id":"sensor.cathouse_temperature","state_type":"str","halt_if":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"x":100,"y":560,"wires":[["6ca34410fa7d1ef2"]]},{"id":"6ca34410fa7d1ef2","type":"switch","z":"6452952728e16b61","name":"Check Temp","property":"payload","propertyType":"msg","rules":[{"t":"lt","v":"10","vt":"str"},{"t":"gte","v":"12","vt":"str"}],"checkall":"false","repair":false,"outputs":2,"x":410,"y":560,"wires":[["5793fc80e4e42f8a"],["1cdbf2a3768d30f4"]]},{"id":"5793fc80e4e42f8a","type":"api-current-state","z":"6452952728e16b61","name":"Check If Heater Is Off","server":"ae668be1.b7d398","version":3,"outputs":2,"halt_if":"off","halt_if_type":"str","halt_if_compare":"is","entity_id":"switch.cathouse_heat","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":700,"y":480,"wires":[["a477614d8010e248"],[]]},{"id":"a477614d8010e248","type":"api-call-service","z":"6452952728e16b61","name":"Cathouse Heat On","server":"ae668be1.b7d398","version":4,"debugenabled":false,"domain":"switch","service":"turn_on","target":{"areaId":[],"deviceId":[],"entityId":["switch.cathouse_heat"]},"data":"","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1170,"y":480,"wires":[[]]},{"id":"1cdbf2a3768d30f4","type":"api-current-state","z":"6452952728e16b61","name":"Check If Heater Is On","server":"ae668be1.b7d398","version":3,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"switch.cathouse_heat","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":720,"y":620,"wires":[["27121f1b5168c898"],[]]},{"id":"27121f1b5168c898","type":"api-call-service","z":"6452952728e16b61","name":"Cathouse Heat Off","server":"ae668be1.b7d398","version":4,"debugenabled":false,"domain":"switch","service":"turn_off","target":{"areaId":[],"deviceId":[],"entityId":["switch.cathouse_heat"]},"data":"","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1170,"y":660,"wires":[[]]},{"id":"ae668be1.b7d398","type":"server","name":"Home Assistant","version":2,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true,"heartbeat":false,"heartbeatInterval":30}]

```

here is the flow im using that i have gone step by step on from some guys webpage

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [17 February 2022 09:17 UTC](https://discourse.nodered.org/t/climate-control-for-a-heater/58504/2 "2022-02-17T09:17:56Z")

</div>

Since 5 out of the 6 nodes in your flow at home assistant nodes, you might be better off asking this on a HA forum or asking on the 'some guys website'

---

<div class="post-metadata">

**Author:** ![todaxtream](https://avatars.discourse-cdn.com/v4/letter/t/e68b1a/32.png) [@todaxtream](https://discourse.nodered.org/u/todaxtream)\
**Post date:** [17 February 2022 19:34 UTC](https://discourse.nodered.org/t/climate-control-for-a-heater/58504/3 "2022-02-17T19:34:28Z")

</div>

i have and i got pointed to come post here haha

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [17 February 2022 19:44 UTC](https://discourse.nodered.org/t/climate-control-for-a-heater/58504/4 "2022-02-17T19:44:47Z")

</div>

Do you have a link to the web page you were following?

> [@todaxtream](#):
>
> i have and i got pointed to come post here haha

That wasn't very nice of them 😆

---

<div class="post-metadata">

**Author:** ![todaxtream](https://avatars.discourse-cdn.com/v4/letter/t/e68b1a/32.png) [@todaxtream](https://discourse.nodered.org/u/todaxtream)\
**Post date:** [18 February 2022 19:50 UTC](https://discourse.nodered.org/t/climate-control-for-a-heater/58504/5 "2022-02-18T19:50:01Z")

</div>

> **[Climate Control: Sensors, Switches, Smarts](https://austenclement.com/climate-control-sensors-switches-smarts/#about-node-red)**
>
> Learn how to use Node-RED and Home Assistant in this project where we overengineer the thermostat. Keep an eye on room temperature and automate a space heater to keep your home warm through the winter.

thats the link i was following

---

<div class="post-metadata">

**Author:** ![todaxtream](https://avatars.discourse-cdn.com/v4/letter/t/e68b1a/32.png) [@todaxtream](https://discourse.nodered.org/u/todaxtream)\
**Post date:** [18 February 2022 22:05 UTC](https://discourse.nodered.org/t/climate-control-for-a-heater/58504/6 "2022-02-18T22:05:32Z")

</div>

got it figured out lol, apparently i should get my eyes checked haha did notice under the switch function, that i have it under string and not number, Ooops, now to work on the presence detection!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [4 March 2022 22:05 UTC](https://discourse.nodered.org/t/climate-control-for-a-heater/58504/7 "2022-03-04T22:05:51Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
