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.

Door Sander Schippers

Na twee keer mede-eigenaar geweest te zijn van een internet onderneming te weten: * VuurWerk Internet - 1996 - 1999 * Cambrium/Tweak - 2002-2012 Ben ik nu alweer enige tijd als ZZP'er bezig. (2012-heden) Alhoewel m'n hart ligt bij softwareontwikkeling/netwerken ben ik dus wel all-round. Liever geen windows. Maar voor VPN's, BGP/OSPF en talen als Ruby on Rails, Javascript, PHP draai ik m'n hand niet om.