The [[SDM120]]
wouldn’t be correct anymore with several kWh meters. Maybe [[ttyUSB0]]
is better? Is that name within [[]] actually used somewhere or is it just an informative name? And maybe just like with other nodes it might be better to add units = V, A, W, ...
?
I don’t know if the following, a bit different approach is better (like I said: newbe here ):
[interfacers]
[[ttyUSB0]]
Type = EmonHubMinimalModbusInterfacer
[[[init_settings]]]
device = /dev/ttyUSB0
baud = 9600
bytesize = 8
parity = PARITY_NONE
stopbits = 1
timeout = 1
nodeids = 27, 28, #must match the nodes in de [nodes] section
[[[runtimesettings]]]
pubchannels = ToEmonCMS,
read_interval = 10
[nodes]
## See config user guide: https://github.com/openenergymonitor/emonhub/blob/emon-pi/conf/emonhub.conf
[[27]]
nodename = heatpump
modbus_addres = 1
[[[rx]]]
registers = 0,6,12,18,30,70,72,74,76 # normally not present
names = V,I,P,VA,PF,FR,EI,EE,RI
# datacodes = h, h, h, h, h, h, h, h, h, h, L --> not necessary?
# scales = 1,1,1,0.01,0.1,0.1,0.1,0.1,0.1,0.1,1
precision = 2,3,1,1,3,3,3,3,3 # a bit like 'scales'?
units = V, A, W, ...
[[28]]
nodename = pv
modbus_addres = 2
[[[rx]]]
registers = 0,6,12,18,30,70,72,74,76 # normally not present
names = V,I,P,VA,PF,FR,EI,EE,RI
precision = 2,3,1,1,3,3,3,3,3 # a bit like 'scales', but still not the same?
units = V, A, W, ...
I’m trying to test a python script with 2x SDM120 daisy chained on the same serial link. But I still have to add a try part and the SDM630 (see my question at stackoverflow). I’ll keep you updated.