Add custom sensors via Node-Red instance included in Venus OS Large to my Cerbo GX Venus OS.
# Node RED
I gather data from my heating control system, my energy meter (SDM630 Modbus) connected to one of my PLCs via Node RED and exported it via
HTTP JSON API, see my flows under /NodeRED.
You can gather data from all available sources via Node RED easily, just export it via JSON HTTP and modify these python files, to grep JSON and
push it to the DBUS daemon.
On victrons github pages there is documentation which formats and servicenames dbus is accepting and how it will display it on Venus' visualization and VRM portal.
It is not a perfect or efficient solution, but I want data gathering on Node Red and use only a exisiting python script to push it to Venus OS' infrastructure, because I am not an experienced python programmer, of course you can gather data directly with python.
I created a dbus python script to implement Batriums Native 1.0 (and 2.0 but there are mandatory items missing) protocol, to gather more informations in Victrons OS.
A forum user started some time ago the same approach but the script was outdated and lacking of some datapoints.
I try to integrate every datapoint from Batriums BMS to fill Victrons registers.
## What is working or improved against Victron default or Pylontech emulation
- faster update rate
- transfer of most alarms (instead of only voltage low alarm)
-<del>dbus script is started by rc.local which gets executed last, so all mppts and multiplus' showing temporarily "BMS missing" and need to be cleared after (re-)boot of Venus OS</del> fixed
Service manager of Venus OS will start the script immediately if you run above in terminal. If you want to start it at boot time, create or append above to your /data/rc.local
If you just created rc.local, set it executeable with