Finally, I found some time, to investigate an annoying problem. I didn’t understand how to read-out an SDM120 powermeter (or the SDM360 equivelent).
The problem was on my desk for about a year, but finally, I got some time to spend some time on it.
At the end, it was quite simple (Openhab 4).
Just create a .things file in /etc/openhab/things, in my case sdm120_01.things with – in my case – the following content:
Bridge modbus:tcp:SDM120_01 "SDM120-01"@"CV" [host="192.168.x.y", port=9999, id=1]
{
Bridge poller MeasureValues [start=0, length=36, type="input", refresh=5000] {
Thing data sdm_L1_volt [readStart="0", readValueType="float32" ]
Thing data sdm_L1_amp [readStart="6", readValueType="float32" ]
Thing data sdm_L1_power [readStart="12", readValueType="float32" ]
Thing data sdm_L1_va [readStart="18", readValueType="float32" ]
Thing data sdm_L1_var [readStart="24", readValueType="float32" ]
Thing data sdm_L1_powerfactor [readStart="30", readValueType="float32" ]
}
}
At the end, it was no more than this config file.