Hm … ok good point. then I’ll quit here!
-
Pimatic-Smartmeter
pimatic v0.9 has been released!
Support Pimatic and get some free stickers
Like us on Facebookmake it so !
-
Maybe @saberone can help out in this
Or @Rob-Jager open an issue https://github.com/saberone/pimatic-smartmeter
PS he is also dutch and on Tweakers@leader21 dont quit, if your fixes work for @Rob-Jager maybe Saberone can merge them or adapt them.
I can also test changes to see if they break my readings.Follow my domotica project on http://maredana.nl
-
Gonna look into this tonight. I have commented on a commit in a fork and in gitter chat.
Time for a simple roadmap.
-
@Rob-Jager, which cable do you use and where did your order it?
I’ll use this plugin parallel to my enelogic P1 reader, by using a splitter for the P1 -port -
I am using this one http://www.ebay.com/itm/-/201319003079?roken=cUgayN&soutkn=8BXIvo
Works good.I had a PL2303HX USB to RS232 cable but that didn’t work
Follow my domotica project on http://maredana.nl
-
I have added a command line tool in de plugin folder, which dumps the output of the P1 smart meter to a file. It would be nice if people run that tool for 30 seconds and then ctrl-c to end the tool, and post the content of the logfile here. Check here for instructions. https://github.com/saberone/pimatic-smartmeter
It’s the first version, so hopefully it’ll work fine.
-
Well you already had mine and it is working perfect
I changed the p1meterdata.js file to disable the logging cause it was flooding my log fileI re-installed the plugin and it downloaded a pre-compiled package but that didn’t contain the logP1.js file so I dowloaded it manually.
"serialport": "/dev/ttyUSB1", "baudRate": 115200, "dataBits": 8, "parity": "none", "stopBits": 1, "flowControl": true
/KFM5KAIFA-METER 1-3:0.2.8(42) 0-0:1.0.0(150614130001S) 0-0:96.1.1(4530303235303030303230303932343134) 1-0:1.8.1(000377.539*kWh) 1-0:1.8.2(000294.336*kWh) 1-0:2.8.1(000000.000*kWh) 1-0:2.8.2(000000.000*kWh) 0-0:96.14.0(0001) 1-0:1.7.0(00.432*kW) 1-0:2.7.0(00.000*kW) 0-0:96.7.21(00009) 0-0:96.7.9(00007) 1-0:99.97.0(1)(0-0:96.7.19)(000101000001W)(2147483647*s) 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(002*A) 1-0:21.7.0(00.432*kW) 1-0:22.7.0(00.000*kW) !5B8B
Follow my domotica project on http://maredana.nl
-
@incmve
I’m looking for a RJ11 // USB cable which can be used with the plug in pimatic-smartmeter -
@skipper79 I have this one and put on some jumper wires with an RJ11 connector
http://www.ebay.com/itm/CH340G-USB-2-0-to-9-pin-RS232-COM-Port-Serial-Convert-Adapter-NEW-/201319003079?roken=cUgayN&soutkn=oQym3SFollow my domotica project on http://maredana.nl
-
@incmve
Do you have a schema of the RS232 // RJ11 connection. Which pins did you use? -
@skipper79
http://gejanssen.com/howto/Slimme-meter-uitlezen/RJ11-pinout.png
http://imgur.com/sGPvcGyFollow my domotica project on http://maredana.nl
-
I was laisy and bought https://www.sossolutions.nl/slimme-meter-kabel its also on sale here:
http://www.smartmeterdashboard.nl/webshopI’m now looking for a way to include my gasmeter. I’ll search more the forum…
extra update: out of the shell the alteration is not good. Now system frozes so must first buggfix it
-
How hard would it be to adapt this to use a string as input, i.e. via REST api or MQTT?
I have connected my P1 meter (L&G E-350 + wireless gas meter) to the Rx of an ESP8266, which currently parses the received string from the meter to the desired values, but is also sending the raw string over MQTT (or with some minor changes can be made capable of using REST).Is the gas meter reading already implemented?
-
@Rene-Arts there is a pull request to add the gasmeter
you could try the fork
https://github.com/ewasscher/pimatic-smartmeterFollow my domotica project on http://maredana.nl
-
I have it working, including the gasmeter
would it be an option to include prices? for example you enter the price per kWh per tariff group in the settings, and the graph and GUI show how much your movie night with beamer, heater, and cold beers actually cost
-
You could do this with a variables device as workaround. use it with
"expression": "$p1smartmeter.kwh * 0,25"
for example where 0,25 is your price/kwh . Of course you need to change the $… variable to your needs!! You can also round it. If you need further information pls tell me.pimatic v0.9 has been released!
Support Pimatic and get some free stickers
Like us on Facebookmake it so !
-
I am aware this is quite an old thread but I had the exact same issue. The total usage variables showed up as unknown for some reason, I checked the scripts and the values were correct. I created a work-around it by creating two bash scripts, one for tariff 1 and one for tariff 2. It grabs the values from the smartmeter which in my case was attached to /dev/ttyUSB1, my code for tariff-1 started with 1-0:1.8.1, but this can be any value to filter out the right data you want. The command head looks for the first five values, otherwise it keeps going on and on.
kwh1=$(head -5 /dev/ttyUSB1 | sed '/1-0:1.8.1(/!d;s//&\n/;s/.\n//;:a;//bb;$!{n;ba};:b;s//\n$/;P;D’)
curl --silent -X PATCH --header “Content-Type:application/json” --user “#####:#####” --data ‘{“type”: “value”, “valueOrExpression”: "’"$kwh1"’"}’ http://localhost/api/variables/tariff-1 > /dev/nullkwh2=$(head -5 /dev/ttyUSB1 | sed '/1-0:1.8.2(/!d;s//&\n/;s/.\n//;:a;//bb;$!{n;ba};:b;s//\n$/;P;D’)
curl --silent -X PATCH --header “Content-Type:application/json” --user “#####:#####” --data ‘{“type”: “value”, “valueOrExpression”: "’"$kwh2"’"}’ http://localhost/api/variables/tariff-2 > /dev/nullI created two VariablesDevices to show this on the interface.
Just create some rules who execute those scripts every five / ten minutes or so.
-
Hi,
for this task am currently using volkszähler, but I like to move to this plugin. I was not able to collect data from my eHZ smartmeter. Is here anyone how has the same Smartmeter runing with this plugin?This is my smartmeter: