Smart meter

Forum about OpenHAB open Source Home Automation.

Moderator: raymonvdm

Post Reply
gertjuhh
Starting Member
Starting Member
Posts: 8
Joined: Mon Sep 02, 2013 1:21 pm

Smart meter

Post by gertjuhh »

This is most likely a question of how rather then is it possible given the vast amount of features openHAB offers, but I'm at a loss.
Does anybody know how to read the electric/gas data from a smart meter with one of these?

I'm currently in the process of moving my HA over from Domoticz to OpenHAB
gertjuhh
Starting Member
Starting Member
Posts: 8
Joined: Mon Sep 02, 2013 1:21 pm

Re: Smart meter

Post by gertjuhh »

Surely I can't be the first who wants to do this?
User avatar
sj3fk3
Member
Member
Posts: 119
Joined: Mon Apr 23, 2012 8:33 am
Location: Abcoude

Re: Smart meter

Post by sj3fk3 »

Also very much interested in a easy way to do this! :-)

One could use the serial binding and do some scripting and read the values, but it would be nice if it was a simple dedicated binding.
Kind Regards,
Greg.
BasVDL
Starting Member
Starting Member
Posts: 2
Joined: Tue Dec 02, 2014 1:34 am

Re: Smart meter

Post by BasVDL »

I managed to read the smartmeter with an Arduino Uno+ethernet shield and publish the values with MQTT.
Every 10 seconds the smartmeter sends the values to the Arduino and are split into 7 values (+T1, -T1, +T2, -T2, power usage, power redelivery, gas usage) and are published to Mosquitto as a string.
In an openHAB rule every value is translated to a number with a state change rule
Now I've got them almost realtime on my sitemap.
I did the same with my Solaredge inverter. This one is connected via Modbus/RS485 to a second Arduino Uno+ethernet shield and pulishes the values to Mosquitto. The actual power usage in the house is calculated in openHAB by adding/substracting the AC solar power with the power usage/redelivery from the smart meter.
GertK
Member
Member
Posts: 51
Joined: Tue Feb 28, 2012 11:59 pm
Location: Nijmegen, The Netherlands

Re: Smart meter

Post by GertK »

Openhab has a smart meter binding for the Dutch Smart Meter since today. It is the DSMR binding. You can download it here
https://openhab.ci.cloudbees.com/job/openHAB/
and read the documentation here
https://github.com/openhab/openhab/wiki/DSMR-binding
I did not try it yet. If you do, please show your results here.

Gert
gertjuhh
Starting Member
Starting Member
Posts: 8
Joined: Mon Sep 02, 2013 1:21 pm

Re: Smart meter

Post by gertjuhh »

Thanks, didn't spot any reference to this on the openHAB Google Groups.
With my meter electricity is being parsed properly, gas usage not though (reported here).
But as different meters can produce different readouts your results may be different.
GertK
Member
Member
Posts: 51
Joined: Tue Feb 28, 2012 11:59 pm
Location: Nijmegen, The Netherlands

Re: Smart meter

Post by GertK »

I saw that you got an answer there.

Gert
gertjuhh
Starting Member
Starting Member
Posts: 8
Joined: Mon Sep 02, 2013 1:21 pm

Re: Smart meter

Post by gertjuhh »

FYI, my problems were resolved by the binding maintainer.
It's been running stable over a week now.
Post Reply

Return to “OpenHAB Forum”