Plugin: Smart Meter DSMR P1 port Reader

Hi,

This version is totally different from what you refer to. The correct SID is “urn:rboer-com:serviceId:SmartMeterGAS1” and the variable for M3 is “ImportGas”.

Cheers Rene

Hi,

Version [glow=red,2,300]1[/glow].7 is available on the App Market. This should fix the issues with the Gas flow calculations. Please let me know if you still see this issue.

Cheers Rene

[quote=“reneboer, post:102, topic:187190”]Hi,

Version 2.7 is available on the App Market. This should fix the issues with the Gas flow calculations. Please let me know if you still see this issue.

Cheers Rene[/quote]

Hi Rene,

I guess you mean version 1.7 ?? Because this is the actual version in the app store and also the version on my Vera 3 (with automatic update checked).

[quote=“Mai Pensato, post:103, topic:187190”][quote=“reneboer, post:102, topic:187190”]Hi,

Version 2.7 is available on the App Market. This should fix the issues with the Gas flow calculations. Please let me know if you still see this issue.

Cheers Rene[/quote]

Hi Rene,

I guess you mean version 1.7 ?? Because this is the actual version in the app store and also the version on my Vera 3 (with automatic update checked).[/quote]
;D
You are right.
Cheers Rene

Hi, I noticed that B-next now has P1 Zwave reader (http://www.robbshop.nl/benext-slimme-meter-p1)

Would be a good solution for me as I would prefer to move my Vera to a more central location.

Anyway this plugin can support it?

Hi tyfoon,

First it will not work with this plug-in. It is a Z-Wave device and will report like other Z-Wave energy meters. No plug-in needed. If I read the guide correctly it can report up to four values, and you can configure what you are interested in [url=http://www.benext.eu/en/products/p1-dongle/]http://www.benext.eu/en/products/p1-dongle/[/url].

You can also use some USB to IP (LAN or WIFI) converter and use that. This is what has been done for the OpenTherm Gateway and is supported by the plug in. I have not tried it my self though.

Cheers Rene

Hi Ren?,
I installed your smartmeter plugin. Import en export of electricity works fine.
The gasmeter just displayes zero.

I used the other “slimme meter” before, which did display the gasmeter values.
Any suggestions what I am doing wrong?
Thanks, Marko

Hi Marko,

Can you tell me what you see as reported as Meter Type and DSMR version in the plugin? I have not been able to test the Gas reporting with DSMR version 3 as that is different from later versions.

Can you also let me know what is shown in the LUAPnP.log when you set the error logging to Debug?

Cheers Rene

Hoi Rene,

The debug logging doesn’t give me any information at all.
Meter type is show in screendump attached.
DSMR version: is empty??!!

Does this information help?
Thanks, Marko

H Marko,

That is odd. Is it an older (3-4 years) or very new meter? What meter type do you see on the meter?

With debug logging on you should quickly be able to see the information read from the meter as it spits it out every 10 seconds. It should usually stick out. Without the details of the log I am in the blind to why this is happening. So please try to get those details. You can put them in a PM to me.

Cheers Rene

Hi Reneboer,

Don’t know exactly when it stopped working but my GAS is not reporting anymore.
L/M^3 is not showing at all and M3 itself is an old value.

It came to my attention because I finally had time to enable DataYours yesterday and it isn’t reporting any values on GAS. I thought it had to do with Datayours but it seems the data is not getting parsed in the Smart Meter Reader App.

As you are going to ask for the debug log I created it already (put app in debug mode and “grep”-ed on “Smart Meter”) That file is attached to this post.

I’m 110% sure it worked before, something made it snap.

Thnx in advance.

PS just checked… I migrated from the old P1 metering app to this/your one on 22-11-2015.

[quote=“reneboer, post:106, topic:187190”]You can also use some USB to IP (LAN or WIFI) converter and use that. This is what has been done for the OpenTherm Gateway and is supported by the plug in. I have not tried it my self though.

Cheers Rene[/quote]

Hi Rene, found this which can do it over wifi. Looks interesting. I will order one and see if I can get it working.

How should I configure the plugin to read from the wifi source?

Hi rene,

I received the module and its spitting out below on a specific IP/Port combination.

Alternatively I can set the module to ‘talk’ to a server. I can set IP/port of the domotica server and the protocol. Pls also see [url=http://romix.macuser.nl/documentatie/P1wifi_handleiding.pdf]http://romix.macuser.nl/documentatie/P1wifi_handleiding.pdf[/url].

Do you have an idea how the plugin can use the data via the wifi device versus the USB port?

[code]/KFM5KAIFA-METER

1-3:0.2.8(42)
0-0:1.0.0(160514151514S)
0-0:96.1.1(4530303039303030303033343538303133)
1-0:1.8.1(008915.465kWh)
1-0:1.8.2(009026.050
kWh)
1-0:2.8.1(000000.000kWh)
1-0:2.8.2(000000.002
kWh)
0-0:96.14.0(0001)
1-0:1.7.0(01.019kW)
1-0:2.7.0(00.000
kW)
0-0:96.7.21(00025)
0-0:96.7.9(00012)
1-0:99.97.0(9)(0-0:96.7.19)(151228093528W)(0000001381s)(150327105515W)(0000004628s)(140412174131S)(0000001167s)(140412171644S)(0000000628s)(140412165206S)(0000000189s)(140412164157S)(0000008574s)(140410201709S)(0000003577s)(140406134302S)(0000000505s)(000101000001W)(2147483647s)
1-0:32.32.0(00000)
1-0:32.36.0(00000)
0-0:96.13.1()
0-0:96.13.0()
1-0:31.7.0(004
A)
1-0:21.7.0(01.015kW)
1-0:22.7.0(00.000
kW)
0-1:24.1.0(003)
0-1:96.1.0(4730303136353631323033353738303133)
0-1:24.2.1(160514150000S)(06150.835*m3)
!09AB[/code]

[quote=“tyfoon, post:113, topic:187190”]Hi rene,

I received the module and its spitting out below on a specific IP/Port combination.

Alternatively I can set the module to ‘talk’ to a server. I can set IP/port of the domotica server and the protocol. Pls also see [url=http://romix.macuser.nl/documentatie/P1wifi_handleiding.pdf]http://romix.macuser.nl/documentatie/P1wifi_handleiding.pdf[/url].

Do you have an idea how the plugin can use the data via the wifi device versus the USB port?[/quote]
Hi Tyfoon,

You should be able to set the IP address with the port as you configured on the P1 to Wifi converter (eg. 10.0.0.10:8088) in the IP field in the Advanced Params settings. You must have the latest 1.7 version of the plugin.

Let me know if it works, if not set the Log level to debug and send me a pm with the log file results.

Cheers Rene

[quote=“mcalistair, post:111, topic:187190”]Hi Reneboer,

Don’t know exactly when it stopped working but my GAS is not reporting anymore.
L/M^3 is not showing at all and M3 itself is an old value.

It came to my attention because I finally had time to enable DataYours yesterday and it isn’t reporting any values on GAS. I thought it had to do with Datayours but it seems the data is not getting parsed in the Smart Meter Reader App.

As you are going to ask for the debug log I created it already (put app in debug mode and “grep”-ed on “Smart Meter”) That file is attached to this post.

I’m 110% sure it worked before, something made it snap.

Thnx in advance.

PS just checked… I migrated from the old P1 metering app to this/your one on 22-11-2015.[/quote]

@reneboer → any idea on the above issue?

Hi mcalistair, Marko, Tyfoon,

Can you try the attached version? It should have a fix for reading the Gas value on DSMR version 2 and 3 meters.

please let me know if it works and I will update the app market version.

Cheers Rene

I installed the fix and I see that my stuck M3 value got updated. I can see tomorrow if the l/h also works.

But good news so far…

UPDATE 25-05-morning → “l/h” has also reported data so it seems all is working again.
:smiley: ;D

Thnx reneboer

:slight_smile: Yeah. With the updated version I now also see the value of the gas meter. Was already wondering what was wrong… Thanks @reneboer !

Thanks for the confirmation.

I still have to put the 1.8 version on the app market. Bit too busy with other things right now.

Cheers Rene

Rene,

First of all I would like to compliment you on the plugin. It works like a charm!

I can’t get the gas-meter to show usage in the device (I’ve uploaded the .lua above). So hopefully you can manage to get it to work in the future. Gas works perfect now!

Further on I would like to know if it’s possible to send the recieved data to an external server. I can see the syslog variable in settings but when I fill it with my local server (to a php script) it doesn’t do anything. Could you explain how to use that variable?

Thank you in advance!