Python project to Read Solis-4G inverter over RS485 and report to EmonHub
Set emonpi into read-write mode Install minimalmodbus Set emonpi to read-only mode
rpi-rw
sudo pip install -U minimalmodbus
rpi-ro
Note the information must be in the correct section for emonhub to work.
Once the interfacer has been added, emonhub needs to be restarted.
Node configuration updates will be detected when the configuration is updated.
[[mysocketlistener]]
Type = EmonHubSocketInterfacer
[[[init_settings]]]
port_nb = 8080
[[[runtimesettings]]]
pubchannels = ToEmonCMS,
[[3]]
nodename = solis4g-kw
[[[rx]]]
names = AllTimeEnergyKW,TodayKW
datacodes = I, H
scales = 1,0.1
units = kW,kW
[[4]]
nodename = solis4g-realtime
[[[rx]]]
names = ACRealtimeW,RealtimeDCV,RealtimeDCI,InverterC,ACRealTimeF,ACRealTimeV,ACRealTimeI
datacodes = I, H, H, H, H, H, H
scales = 1,0.1,0.1,0.1,0.01,0.1,0.1
units = W,V,A,C,Hz,V,A
(Based on https://stackoverflow.com/questions/32057882/how-to-trigger-python-script-on-raspberry-pi-from-node-red) In a new flow: