Check serial settings and correct serial port! Had the same few days ago during MCV support session. MCV found out after trouble shooting.
Hi Rene , works like a charm.
actually I’m reading two separate meeting devices, Vera 3 and Qbox via a Y-Splitter for the P1 cable.
Thanks a million times for Your great work
;D ;D ;D ;D
Still no luck getting this to work, even though all the components seem ok. I’ve tried reading my meter using the FTDI cable and a laptop:
1- Mess with the signal wire = putty puts out some gibberish, so the cable, USB serial port and terminal work
2- Scope shows a signal burst every 10 seconds from the meter, so the P1 port is hooked up and working
3- When connected to the meter, putty shows nothing (not even rubbish)
Anyone else have any luck reading data from a Landis Gyr S350 meter, and if so, what cable do you use? I’m using the FTDI USB cable (5v), though I read on a blog that certain cables that work on DSMR 2.x - 3.x meters and some 4.x meters will not work on the Landis Gyr one, and they offer a separate cable for this.
Thanks, I poked around a bit and found that L&G neglected to add a pull-up resistor to the data line in their meter. Through that link I found that the fix is to simply add a resistor (1.2k) between VCC and Data.
The cable now works, and the plugin is reading power consumption I am not getting readings from the gas meter, so I’ll check with Stedin tomorrow to see if they actually paired them.
You can see if the gas is linked by cycling through the electricity meter (via button on meter).
I Also still don’t have gas reading. It worked for some time (see also other post in this thread)
Verstuurd vanaf mijn Nexus 5 met Tapatalk
Waar ik nu een complete set van software voor mijn vera3 downloaden.
RTF
dank je voor de tip.
De bestanden in de ZIP-file zijn van 12 mei.
Ik ben gewoon op zoek naar de laatste juiste, want er zijn wat aanpassingen geweest.
Dat vind ik terug op het forum.
Oke I read in english. It’s a pitty but I go for it thx.
The forum is English… Vera as well… everyone running this plugin managed to get this working via this forum. Just start at post 1 and read till the last one. Then decide what to use.
installed the P1 cable today on my vera lite. Had it already working with domoticz, but now with vera!
have DSMR4.0 and used serial port 115200 8N1.
Many thanx guys for the app.
@tyfoon -used the attached I_DutchSmartmeter.xml of your recent post. After uploading to the vera lite en reload, it could actually read a gas value. But it directly stopped reading the electra values … and messed up the Datamine logging. I was comparing this version with the orgininal version of the file -which showed electra but no gas- and noticed there are some difference.
What to do to get the code working? And any ideas why a change of code could mess up Datamine? (BTW - only reason why I still using Datamine is because of the nice integration of its graphical support in ImperiHome, an Android app).
-edraket-
I solved the problem in the code, I couldn’t get the string.match code to work, so I decided to use the string.sub function, since the offset of the gasstring is always the same. And because the data is a string, you have to convert the string to an number.
The code “0-1:24.2.1” is actually the line containing the gasvalue: if you get that, you know that your smartmeter works: I have a L+G wireless connected to the Kaifa and the Kiafa is connected to my Vera Lite. You can use the luup.log function to check what your data content actually is.
function dutchSmartMeterIncoming(data)
if (string.len(data) > 0) then
if (string.sub(data, 1, 10) == "0-1:24.2.1") then
luup.log("Gas meter reading in next line")
-- formaat 0-1:24.2.1(140828150000S)(00048.320*m3)
-- luup.log(data)
gasstring = string.sub(data,27, -6)
gasvalue = tonumber(gasstring)
-- luup.log(string.match(string.match(data, "(%d+.%d+*m3)"), "%d+.%d+"))
indGasComming = 1
else
---------------------------------------------------------------------------------------------
-- Check if we have to process gas meter
---------------------------------------------------------------------------------------------
if (indGasComming == 1) then
luup.log("Gas meter: [" .. gasstring .. "]")
luup.variable_set("urn:brutgrink-com:serviceId:dutchSmartMeter", "Gas", gasvalue, THIS_DEVICE)
Hi Edraket, cool; Do I understand correctly that this both is working fine now for you both gas and electra? If yes, can you post the total file so I’m sure nothing is going wrong with copy-paste.
Right! Works with both gas and electricity. Attached the whole set of the plugin, since I’ve noticed that they all seem to belong together. That’s why you have to do some prep’s before using them:
First, check that you have the same D_dutchSmartMeter (xml and json), I_dutchSmartMeter.xml and S_dutchSmartMeter.xml as in the attachment. E.g by comparing date stamps, filesizes and do some code verifications. In the attachment there’s a 5th file, that’s the original (“old”) I_dutchSmartMeter.xml which I took to change into the new I_dutchSmartMeter.xml.
If your plugin is the same as I have in the attachement, you can simply replace your I_dutchSmartMeter.xml with the code in my one. Big advantage of this approach is that you don’t have to delete the device and you don’t loose your Datamine data. But be absolutely sure: the first time I did it this way, I had a plugin that wouldn’t work anymore and I lost all of my Datamine data!
If your plugin is not the same, than you have to save your Datamine data first (if using that plugin). Then, remove the device of the plugin, restart your vera (take the powerplug off and on) and reload all the four files of the plugin from the attachment. I’ve noticed that a simple reload doesn’t work all the time…
Create the new device. Since the device will probably get a new device ID, you have to reassign the variables in Datamine (and other Luup code if you have). And of course, make sure that you’ve set the serial port configuration settings to match : 115200b-nonep-8db-1sb.
Note that I haven’t found a way to reload the saved Datamine data. Maybe there are ways, I just haven’t tried them. Bollocks!
Super! All is working now!! p.s. I had the same version so only had to update one file
Being a newby I experienced that Vera has a steep learning curve.
In general I have my Vera working.
I want to connect my P1 ( I do have it and have used it already with BeNext en HomeWizzard)
Could one of you give me a hint regarding the upload of the plugin and the programming adjustments to make.
-
Downloaded the zip-file from the message by EdRaket of September 4th; is that the plugin?
-
What do I then
2a have looked at apps → develop apps → create design (have just installed Ui7)
2b but there is so much to fill in … -
have started looking at Micasaverde Vera Zwave Controllers; Ervaringen en Vragen - Smarthome - GoT
Thanks for the plugin.
Since two days I have a KFM5 KAIFA DSM4 and connected it with a PL2303 via an usb-hub to my VeraLite. To get this working as a second ttyusb it took some time, to say the least ;D. But I now have an Arduino on ttyusb0 and the smartmeter on ttyusb1.
No gas readings yet but I know this can take a few days. Already ‘connected’ the readings to DataYours for the graphs.
@hinod, sorry have never seen UI7 and not many others did yet I think.
[quote=“hinod, post:177, topic:171668”]Being a newby I experienced that Vera has a steep learning curve.
In general I have my Vera working.
I want to connect my P1 ( I do have it and have used it already with BeNext en HomeWizzard)
Could one of you give me a hint regarding the upload of the plugin and the programming adjustments to make.
-
Downloaded the zip-file from the message by EdRaket of September 4th; is that the plugin?
-
What do I then
2a have looked at apps → develop apps → create design (have just installed Ui7)
2b but there is so much to fill in … -
have started looking at Micasaverde Vera Zwave Controllers; Ervaringen en Vragen - Smarthome - GoT
-
Yes it is.
-
Check robbshop (http://www.robbshop.nl/over-z-wave/z-wave-projecten/slimme-meterkabel-installeren). Create the device with “D_dutchSmartMeter.xml”.
After that, you need to open the “serial port configuration” and i don’t think that page works with UI7, it stays empty. I contacted support and the fixed this for me.
That is all and after that there will be 5 new instances on the dashboard.
Does everyone have both counters running for high/low-tariff (dag en nacht)?
I noticed that I have just one of the devices counting and yesterday-evening thought that would be the night-tariff, but today there is still only one device updating. Will check the meter itself tonight after work but in luup.log I see a lot of messages with “not processed”:
50 09/18/14 10:39:54.663 luup_log:130: Meter data (not processed): "0-0:96.13.1()" <0x2f315680>
50 09/18/14 10:39:54.723 luup_log:130: Meter data (not processed): "0-0:96.13.0()" <0x2f315680>
50 09/18/14 10:39:54.783 luup_log:130: Meter data (not processed): "1-0:31.7.0(000*A)" <0x2f315680>
50 09/18/14 10:39:54.843 luup_log:130: Meter data (not processed): "1-0:51.7.0(000*A)" <0x2f315680>
50 09/18/14 10:39:54.904 luup_log:130: Meter data (not processed): "1-0:71.7.0(000*A)" <0x2f315680>
50 09/18/14 10:39:54.935 luup_log:130: Meter data (not processed): "1-0:21.7.0(00.043*kW)" <0x2f315680>
50 09/18/14 10:39:54.965 luup_log:130: Meter data (not processed): "1-0:22.7.0(00.000*kW)" <0x2f315680>
50 09/18/14 10:39:55.013 luup_log:130: Meter data (not processed): "1-0:41.7.0(00.080*kW)" <0x2f315680>
50 09/18/14 10:39:55.023 luup_log:130: Meter data (not processed): "1-0:42.7.0(00.000*kW)" <0x2f315680>
50 09/18/14 10:39:55.053 luup_log:130: Meter data (not processed): "1-0:61.7.0(00.077*kW)" <0x2f315680>
50 09/18/14 10:39:55.083 luup_log:130: Meter data (not processed): "1-0:62.7.0(00.000*kW)" <0x2f315680>
50 09/18/14 10:39:55.084 luup_log:130: Meter data (not processed): "!4D20"
Is that normal?