# Need help with ghost thermostat

**URL:** <https://discourse.nodered.org/t/need-help-with-ghost-thermostat/61671>\
**Category:** General\
**Tags:** function-node\
**Created:** [23 April 2022 08:19 UTC](https://discourse.nodered.org/t/need-help-with-ghost-thermostat/61671 "2022-04-23T08:19:27Z")\
**Posts on this page:** 1\
**Showing post:** 61

<div class="post-metadata">

**Author:** ![Sean-McG](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sean-mcg/32/54677_2.png) [@Sean-McG](https://discourse.nodered.org/u/Sean-McG)\
**Post date:** [2 May 2022 15:51 UTC](https://discourse.nodered.org/t/need-help-with-ghost-thermostat/61671/61 "2022-05-02T15:51:07Z")

</div>

1. So the issue with stats getting out of sync seems to be due to **msg.socketid** if I delete that property the values update correctly, not sure if you can remove that within your template or if its added afterward by NR ?

2. ambient\_temperature: 20.7  
target\_temperature: **"19.5"** change to a number

3. **rounding errors eg** target temp of 20.1 and 20.2 is shown as 20.1, target temp of 20.3 and 20.4 is shown as 20.3

---

_[View the full topic](https://discourse.nodered.org/t/need-help-with-ghost-thermostat/61671)._
