# Node-red-contrib-dynamic-thermostat switch state?

**URL:** <https://discourse.nodered.org/t/node-red-contrib-dynamic-thermostat-switch-state/58648>\
**Category:** General\
**Created:** [19 February 2022 13:44 UTC](https://discourse.nodered.org/t/node-red-contrib-dynamic-thermostat-switch-state/58648 "2022-02-19T13:44:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![magicman](https://avatars.discourse-cdn.com/v4/letter/m/73ab20/32.png) [@magicman](https://discourse.nodered.org/u/magicman)\
**Post date:** [19 February 2022 13:44 UTC](https://discourse.nodered.org/t/node-red-contrib-dynamic-thermostat-switch-state/58648/1 "2022-02-19T13:44:10Z")

</div>

i am attempting to use this dynamic thermostat with a underfloor heating project but in testing found that whenever i update the current it changes the switch state to true thereby locking the output on.

 ![Screenshot from 2022-02-19 13-35-16](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/d/dd1f2c6ffbefc1199186ef801bad9a12843a0d03.png)

the yellow load is just a random value to represent changing current temp

sample outputs

 ![Screenshot from 2022-02-19 13-40-35](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/5/b50bcbad8243c910cc229615bf3037dd8ee98b4b.png)

as you can see the switch state is set to true each time but i have only changed the current temp in?  
i am sure there is an easy way to fix this but how do i send topic switch:false at same time as topic current newValue?

if i click the switch false inject then the next output is correct

---

<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:** [19 February 2022 14:04 UTC](https://discourse.nodered.org/t/node-red-contrib-dynamic-thermostat-switch-state/58648/2 "2022-02-19T14:04:26Z")

</div>

Please export your flow and attach it to a reply.

In order to make code readable and usable it is necessary to surround your code with three backticks (also known as a left quote or backquote `````)

````auto
``` 
   code goes here 
```

````

You can edit and correct your post by clicking the pencil ✏ icon.

See this post for more details - [How to share code or flow json](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506)

---

<div class="post-metadata">

**Author:** ![magicman](https://avatars.discourse-cdn.com/v4/letter/m/73ab20/32.png) [@magicman](https://discourse.nodered.org/u/magicman)\
**Post date:** [19 February 2022 14:15 UTC](https://discourse.nodered.org/t/node-red-contrib-dynamic-thermostat-switch-state/58648/3 "2022-02-19T14:15:45Z")

</div>

thanks for your reply @zenofmud but i have found node-red-contrib-heater controller which fits my needs perfectly.

---

<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:** [5 March 2022 14:16 UTC](https://discourse.nodered.org/t/node-red-contrib-dynamic-thermostat-switch-state/58648/4 "2022-03-05T14:16:14Z")

</div>

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