This widget is based on the widget developed by automatikas in GITHUB but has been encapsulated in a single installable node through the node-red palette.
If you have made heating or cooling controls on Node-red you will need nice thermostat widget to display and control your device via Node-red dashboard.
Fully responsive design. Touch enabled set-point makes it even more interactive. Press and hold finger or mouse and it will activate the set-point sliding function.
Also it has several display modes like heating, cooling and away. It makes it more interactable and user intuitive. For ECO friendly folks there is possible to turn on and off that little green leaf.
You can push the folowing values in json format. When target temperature is changed from UI node will push new values in the same structure in the output.
ambient_temperature
your temperature readings numeric payloads.target_temperature
your thermostat setpoint numeric payloads.hvac_state
string (off
,heating
,cooling
) payload.has_leaf
boolean (true
,false
) payloads.away
boolean (true
,false
) payloads.
msg.payload = {
"ambient_temperature": 21.1,
"target_temperature": 23,
"hvac_state": "heating",
"has_leaf": false,
"away": false
};
msg.topic = "update";
Please note: In addition to msg.payload, a msg.topic containing "update" is required to update the UI element.