Trouble configuring DSMR binding with OH2

Hi there,

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.

Who can help me debug this situation please?

Thanks,
Robert

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.

Any help is welcome!

Using CU I have captured this:
pi@raspberrypi:/mnt $ cu -l /dev/ttyUSB0 -s 115200 --parity=none
Connected.
/XMX5LGBBFFB231094803

1-3:0.2.8(42)
0-0:1.0.0(170828173601S)
0-0:96.1.1(4530303035303031353630393130393134)
1-0:1.8.1(005536.559kWh)
1-0:2.8.1(000000.000
kWh)
1-0:1.8.2(006538.337kWh)
1-0:2.8.2(000000.000
kWh)
0-0:96.14.0(0002)
1-0:1.7.0(00.910kW)
1-0:2.7.0(00.000
kW)
0-0:96.7.21(00005)
0-0:96.7.9(00001)
1-0:99.97.0(1)(0-0:96.7.19)(151120073541W)(0000001040s)
1-0:32.32.0(00000)
1-0:52.32.0(00001)
1-0:72.32.0(00000)
1-0:32.36.0(00000)
1-0:52.36.0(00000)
1-0:72.36.0(00000)
0-0:96.13.1()
0-0:96.13.0()
1-0:31.7.0(003
A)
1-0:51.7.0(002A)
1-0:71.7.0(000
A)
1-0:21.7.0(00.593kW)
1-0:41.7.0(00.312
kW)
1-0:61.7.0(00.003kW)
1-0:22.7.0(00.000
kW)
1-0:42.7.0(00.000kW)
1-0:62.7.0(00.000
kW)
0-1:24.1.0(003)
0-1:96.1.0(4730303136353631323133353039363134)
0-1:24.2.1(170828170000S)(03416.506*m3)
!A61D

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.

Let me try that…

My dsmr.cfg says this:

############################## DSMR Binding ################################

#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…

Help :frowning:

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”}

Is that what I need?

Thanks for your help,
Robert

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!

You posted one previously!

I created the example myself based on the docs. Guess it was correct. So now I add this to the .items config…

I have to say openhab is far more complex to stop than I expected. I’ve heard it’s easy more flexible, but it seems to come at a price…

No not giving up… I’ll keep trying until I have a UI with current values and a historic graph😃

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.

Kinds regards,
Robert