README
pimatic-smartmeter3
Reading "Smartmeter" energy (electricity and gas) usage through P1 port. This plugin is a based on the smartmeter versions of saberone and rick00001. This plugin supports serialport version 6 (node v4 and v8) and gives the possibility to read ascii based Datagrams from Smartmeters (like the DSMR). You can change the regex formulas for the energy values in the device config. If this plugin doesn't fit, you could use the more advanced pimatic-smartmeter-obis plugin (https://github.com/bertreb/pimatic-smartmeter-obis).
Installation
To enable the smartmeter plugin add this to the plugins in the config.json file.
...
{
"plugin": "Smartmeter3"
}
...
and add the following to the devices
{
"id": "smartmeter3",
"class": "Smartmeterdevice3",
"name": "smartmeter3",
"serialport": "/dev/ttyUSB0",
"baudRate" : 115200,
"dataBits" : 8,
"parity" : "none",
"stopBits" : 1,
"flowControl" : true
}
Then install through the standard pimatic plugin install page.
Configuration
You can configure what serialport to use and the serialport settings.
The device provides the following 4 variables: