When I moved into my new appartment wanted to record my power usage. I managed to install a rather cheap three-phase power meter into the distribution box:
This is an EASTRON SDM630-Modbus (German distributor). It is a three-phase power meter that allows you to query voltages, currents, power, power factor, thd etc. over a Modbus RTU connection. You can buy these in Germany for about 90 Euro - make sure to get the Modbus version, there are other versions around!
I wrote a simple Modbus-to-JSON-Adapter in Go. Now I have the most relevant values exported into my OpenHAB installation:
The “Strombezug” graph shows the power on three different phases. My software, along with hardware and software documentation, is available on github:
I have the same powermeter but I read the data directly via jython through the digitus USB-RS485 converter.
This powermeter is realy cool.
I also use it for my “house standby” function:
When between 9 pm and 7 am all Lights, Cinema, Squeezeboxes are off AND the power consumption is below 200W, the house goes into standby (switch off internet, Wifi, cooking plate,…)
When the power consumption goes above 500W (microwave in the morning) or something is switched on, the house goes back to normal mode.
Also I see you have a refrigerator on the Phase L1 !?
you’re right. It is not an efficient model You can also see the circulation pump of my heating system on L1 and my water kettle. Since I consider this data to be rather private in nature I want to be in full control over it. An internet-connected smart meter (i.e. Yello Strom or something similar) would not be my thing…
Pretty cool meter! I was thinking about making my own, but with the price of this, and all the calibration and such done, it is just not worth making your own. All I then need to do, is to make a wifi bridge to relay the readings from the meter, over mqtt, to openhab.
@gonium
I want to buy the same power meter for my new house to get a cheap smart meter with real time power consumtion on openhab.
But i don´t know much (better say nothing) about compiling software for raspi or something like this.
Is there an easy way to get your software to a raspi (or another linux mini computer like this - i use an odroid u3 as openhab server - maybe there it will work to?)?
Can i get real time power consumption? I want to see changing the power when putting a smartphone-power-cord in for example.
@seppdog
Maybe your way is easier for me? Can you explain me how to get the data to openhab with your installation?
@Mikey
How about your way to get the data from the power meter? Can you explain a little bit more?
Meter reports the following information in separate registers :
Voltage, Current, Active power, Apparent power, Reactive power, Power factor, Frequency, Import active energy, Export active energy, Total active energy.
But how can i read out the registers, so that openhab binding could read it? If i only put the usb-converter to the raspi this would not be enough - i need another software on raspi which is reading out the power meter?
Or can i directly read out the power meter with openhab binding?
Which update time is available? Can i use 1 second - so i have nearly real-time rate?
I think sdm630 only gives new data every second. If you set higher frequency, it will give the same value until like before. This was written in another forum.
And it´s is realy simple like this? Only connecting usb-rs485-converter with power meter and raspi and it is working out of the box?
(ok, looking which name the usb device got from raspi and then change the openhab-config-file…)
Hi,
I have followed instructions provided by Mathias and communication seems to work, but after some time(2- 25 minutes) it seems that it lost connection with energy meter and process stops. I don’t have idea where should i start to look for source of the problem. Is there any need to configure energy meter to work with script from Mathias ?
My SDM630 is connected via popular USBtoRS485 dongle from ali, i used pair of cable (about 3m length) without resistors. Each time when process stops, i can start it and connection is performed correctly, data from energy meter is shown.
Here is info from my console :