# One-node-room-manager and thermostat

**URL:** https://discourse.nodered.org/t/one-node-room-manager-and-thermostat/60866
**Category:** Share Your Projects
**Tags:** node-red-dashboard, function-node
**Created:** [6 April 2022 08:51 UTC](https://discourse.nodered.org/t/one-node-room-manager-and-thermostat/60866 "2022-04-06T08:51:37Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![juntiedt](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/juntiedt/32/58357_2.png) [@juntiedt](https://discourse.nodered.org/u/juntiedt)
#### Post date: [6 April 2022 08:51 UTC](https://discourse.nodered.org/t/one-node-room-manager-and-thermostat/60866/1 "2022-04-06T08:51:37Z")

</div>

The One-Node-Room-Manger has 54 outputs.  
This is all you need to know about your room.

All you must do, is connecting sensors and design your dashboards.

Included is a picture of my demo/test-Dashboard:

EGWZ = ground floor living room  
aussen = external temperature  
soll = target temperature  
ist = room temperature  
delta = ist – soll

**Initialisation** : at program start the target-temp and room-temp has the same value. This will not start the heater before the first asynchron room-temperature arrives from the sensor.

**Hysteresis** : I split the hysteresis in 2 numbers: hys\_on and hys\_off. This allows to have an asymmetrical switch point. I use this for my floor-heating, which reacts very slow. Therefore, my Hys\_off is set to zero and switches off at room temperature to avoid big overshooting.

**Total runtime** of the heater is shown in the low right corner of the demo screen.

To add for example a luminance sensor to the One-Node-Room-Manager is relatively easy:

- Copy a sensor object and change to luminance
- Increase the outputs of the room manager node
- Edit the output ports in the context
- Add the output description to the room manager node
- Copy and paste one existing sensor in the sensor code part and edit the outputs
- Create your own dashboard

If you have more rooms I would suggest to have one flow per room.

To be done: persisting totalruntime

As the flow is to big to publish it as code, I have attached the flow in a text file.

 ![demo_screen](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/5/650fbe1d75873f665e5964e83b9c4c0586c01408.jpeg)  
[one-node-room-manager.txt](https://discourse.nodered.org/uploads/short-url/8ClJzDt4tJQ1g9zosMmtWdSUl37.txt) (82.1 KB)
