The configuration ‘Tab’ allows configuration of the Number and Name of each room/sensor, and the Register Value for each. I am currently using this with a Temco Controls Tstat8, but the same flow could be used with other controllers by configuring the registers for the device. This Node-RED ‘flow’ is currently configured to work via Serial Modbus RS485.
But it is fairly simple to change this to a TCP Modbus connection by adjusting the settings of the Modbus Connection - click on the arrow in the upper right of the Node-RED user interface, and select ‘Configuration Nodes’;
I have a node-red system hooked to a tcp modbus unit and sometimes (average: once a week) the modbus reading is disconnected (for unknown reasons).
Do you know a good method to restart automatically the entire flow when this is happening ? I receive a warning when a value doesn’t change for a while but I need to access the NR flow and restart it manually.
If I understand it correctly, node-red runs on a Pi which is not a real time embedded system for the most part. We do have a ‘T3-Router’ item which is not on the website but we have sent out a few samples for testing. It has a watchdog, real time clock and a few other features for embedded control applications. If you’re interested you can send an email and we’ll give you what (little) documentation we have so far.
In my case, the node-red program is running as a jail in my TrueNas system. Normally enough power to run in real time. But send me more info about the T3-router.
In the meantime, I solved my problem by testing the modbus connection status (Connected vs Disconnected) and restart the entire flow in case of a Disconnected message. Obvious when you know how to do (Node Red forum was helpful on that).
The T3-router isnt up on the web site yet but we’ll get it up there soon. Its basically a raspberry Pi 3 ‘compute’ module on a base board plus a few addons to make it suitable for embedded control: LEDs, real time clock, watchdog, RS485 ports.
And sure, definitely you should have some retries and resets in there to make the system more robust.