I need some help. I have reading out my smartmeter, by using a USB P1 cable. I am sure it works, because I used it before with Domoticz. And using CU I can even receive the telegrams. It is a smartmeter with V4.0 firmware so it uses the higher speeds.
Now from my understanding the binding should just work, if you input the correct serial interface. But so far I have had no luck.
Just some logging from my openhab2.log file that relates to the binding:
2017-08-20 19:49:50.201 [INFO ] [ab.binding.dsmr.internal.DSMRBinding] - dsmr:water.channel setting is empty
2017-08-20 19:49:50.235 [INFO ] [ab.binding.dsmr.internal.DSMRBinding] - dsmr:heating.channel setting is empty
2017-08-20 19:49:50.237 [INFO ] [ab.binding.dsmr.internal.DSMRBinding] - dsmr:cooling.channel setting is empty
2017-08-20 19:49:50.238 [INFO ] [ab.binding.dsmr.internal.DSMRBinding] - dsmr:generic.channel setting is empty
2017-08-20 19:49:50.239 [INFO ] [ab.binding.dsmr.internal.DSMRBinding] - dsmr:slaveelectricity.channel setting is empty
2017-08-20 19:49:50.243 [INFO ] [b.core.service.AbstractActiveService] - DSMR Binding has been started
However I don see anything special. My next step will be to find out if I can turn op the log information to debug mode for this binding.
According to the posted logs you have some missing configuration!
Have you written the configuration lines necessary. It’s straight forward written here.
Take a look at the docs.
#Port of the DSMR port (mandatory, e.g. /dev/ttyUSB0)
port=/dev/ttyUSB0
#portsettings=11520 8N1 #Configuration of additional meters (channel 0 is used for the main electricity meter)
gas.channel=1 #water.channel=2 #heating.channel=3 #cooling.channel=4 #generic.channel=5 #slaveelectricity.channel=6
I had added the port config… still no succes. Should the binding not auto configure?
What other configrations lines do I need? What am I missing?
Also I have been reading about the openhab2.1 binding, which should work better…
No, in the current snapshot/release, it is still a 1.x binding!
Have you created the items according to the docs?
I understand that you have a gas meter, right?
Hi George,
Thanks for taking the time to help me. I have tried to figure out the items according to the docs. But I just dont understand what I need to do I am afraid. Yes, I do have a gas meter…
Are there any examples of a cfg file that I could look at?
I just try to understand the docs, so I think I have to do something like this:
Number P1_Actual_Delivery “Actual usage [%.3f kW]” {dsmr=“eActualDelivery”}
Number P1_Meter_DeliveryLow “Meter reading low tariff [%.3f kWh]” {dsmr=“eDeliveryTariff1”}
Number P1_Meter_DeliveryNormal “Meter reading normal tariff[%.3f kWh]” {dsmr=“eDeliveryTariff2”}
Number P1_Actual_Gas_Usage “Actual usage [%.3f m3]” {dsmr=“gValue”}
Number P1_Meter_Buffer_Usage “Buffer usage [%.3f m3]” {dsmr=“gValueX”}
Yes, in a “.items” file in the configuration folder items of openHAB depending on your configuration (Linux - manual installation or apt based, Windows, etc). Please take a look here. Read it thoroughly and you will hopefully get it all!
Ok, I somehow am in the mood of taking you step by step.
Have you grasped the concepts here?
After this, have you managed to create your essential files in terms of a 1.x binding (like: .items, .sitemap, .rules, etc.)?
Hi George,
Thank you for not giving up on me… I stopped last night decided that it must be me for now.
First off I read the docs once more. I think I understand the concepts, to many UIs and textbased configuration options btw. So last night I could not get why I could not see anything of the things I discovered in the Control view of Paper UI.
When I got back from work I thought I give it another try, by adding LINKs to the found Thinks I could finally add them to the Control view.
So now the current values of the Electricity and Gas meter are showing.
Also for some reason after I fixed the Port setting and rebooted the raspberry PI it worked… I installed the snapshot of DSMR2.beta… and that just auto discovered the P1 meter telegrams when I tried.
So with a strange configuration of the 1.10 binding and the 2.1.x binding it seems to get initialiazed.
I do get the things like .items, .sitemap, etc… also the concepts. So now that works I want to get the graphing working and see if I can build my own rule to report the data back to my external service mindergas.nl (I always used that with my domoticz setup).
Lets see if I can progress from here, also installed Telegram and MQTT bindings, lets see if I can get more connected.
Thanks so far, any tips beyond this are welcome btw.