OK so I have completed entire Home Automation course but did I miss something?
I would like to send numeric input from the dashboard. For example I have a thermostat and I would like the user to be able to set the temperature setpoint easily. Like using a (+) and a (-) pushbutton to increment or decrement a number by 0.5 degrees. And sending that number to my ESP8266 that is controlling the furnace. However I did not see any examples where the Node-RED dashboard is publishing a numeric setpoint with a user interface on the dashboard.
Are there any nodes in any of the libraries that provide this functionality? I looked and also searched the WEB but I can’t find a good example or solution.
Hi.
You’re right.
We didn’t include that topic in the eBook.
But, that’s a great suggestion.
There is a node-red dashboard node called “numeric” that allows you to insert numeric input on the dashboard. You can set a maximum, a minimum, and a step. You can adjust the number using little arrows.
Alternatively, there’s an input called “text input”. You can adjust its properties to accept numbers. Then, on the dashboard, you can manually insert the number you want.
Then, to send those values via MQTT, you just need to wire the output of those nodes to an MQTT node.
Let me know if this helps.
Regards,
Sara