Correct, unfortunately.
That should be in your emonhub.conf file (access it via emonCMS → Setup →Emonhub - Edit config ).
For Node 5 (the emonPi itself), I have this. Yours will be different because I don’t have the standard sketch running in the front end - you probably don’t have 2 pulse counts, you might not have the two energies even.
Those 4 lines specify the name of the quantity, how to decode it, how to scale it and finally the units, and they line up 1:1 (You can see I tweaked the calibration of my two powers
)
[[5]]
nodename = emonpi
[[[rx]]]
names = power1,power2,power1pluspower2,vrms,t1,t2,t3,t4,t5,t6,pulse1count,pulse2count,E1,E2
datacodes = h, h, h, h, h, h, h, h, h, h, L, L, l, l
scales = 1.00264,0.9884,1, 0.01, 0.01,0.01,0.01,0.01,0.01,0.01, 1, 1, 1, 1
units = W,W,W, V, C,C,C,C,C,C, p, p, Wh,Wh
If your “units = …” line doesn’t have the units for the energies, then you can add them, you should need to add E1, E2 to the ‘names =’, l, l (signed long × 2) to ‘datacodes =’ and 1, 1 to ‘scales =’ as well. If you’re in doubt, post this section of your emonhub.conf and a clip of the data coming in from Node 5 from the log. It should look like this (again, mine is non-standard, yours will be different)
2024-12-30 11:11:12,433 DEBUG RFM2Pi 25817 NEW FRAME : OK 5 20 0 38 0 58 0 222 91 0 0 0 0 0 0 0 0 0 0 0 0 130 23 0 0 0 0 0 0 103 20 0 0 99 23 0 0 (-0)
2024-12-30 11:11:12,436 DEBUG RFM2Pi 25817 Timestamp : 1735557072.433124
2024-12-30 11:11:12,437 DEBUG RFM2Pi 25817 From Node : 5
2024-12-30 11:11:12,438 DEBUG RFM2Pi 25817 Values : [20.052799999999998, 37.5592, 58, 235.18, 0, 0, 0, 0, 0, 0, 6018, 0, 5223, 5987]
2024-12-30 11:11:12,439 DEBUG RFM2Pi 25817 Sent to channel(start)' : ToEmonCMS
2024-12-30 11:11:12,439 DEBUG RFM2Pi 25817 Sent to channel(end)' : ToEmonCMS
2024-12-30 11:11:12,558 DEBUG MQTT Publishing: emon/emonpi/power1 20.052799999999998
2024-12-30 11:11:12,561 DEBUG MQTT Publishing: emon/emonpi/power2 37.5592
2024-12-30 11:11:12,563 DEBUG MQTT Publishing: emon/emonpi/power1pluspower2 58
2024-12-30 11:11:12,565 DEBUG MQTT Publishing: emon/emonpi/vrms 235.18
2024-12-30 11:11:12,567 DEBUG MQTT Publishing: emon/emonpi/t1 0
2024-12-30 11:11:12,569 DEBUG MQTT Publishing: emon/emonpi/t2 0
2024-12-30 11:11:12,571 DEBUG MQTT Publishing: emon/emonpi/t3 0
2024-12-30 11:11:12,572 DEBUG MQTT Publishing: emon/emonpi/t4 0
2024-12-30 11:11:12,574 DEBUG MQTT Publishing: emon/emonpi/t5 0
2024-12-30 11:11:12,576 DEBUG MQTT Publishing: emon/emonpi/t6 0
2024-12-30 11:11:12,578 DEBUG MQTT Publishing: emon/emonpi/pulse1count 6018
2024-12-30 11:11:12,580 DEBUG MQTT Publishing: emon/emonpi/pulse2count 0
2024-12-30 11:11:12,581 DEBUG MQTT Publishing: emon/emonpi/E1 5223
2024-12-30 11:11:12,583 DEBUG MQTT Publishing: emon/emonpi/E2 5987
2024-12-30 11:11:12,585 INFO MQTT Publishing 'node' formatted msg
2024-12-30 11:11:12,586 DEBUG MQTT Publishing: emonhub/rx/5/values 20.052799999999998,37.5592,58,235.18,0,0,0,0,0,0,6018,0,5223,5987
Now for the hard part…
There’s a wealth of information in the forum, so much so that it’s hard to keep track of let alone take it all in. Fortunately, and big thanks to them, we have very many brilliant contributors who are only too willing to help.