Skip to content

Latest commit

 

History

History

get-P1power

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

PRTG sensor for power grid meeter

Swedish implementation

P1 port from DSMR P1 Companion Standard

Protocol

SerialPort = '/dev/ttyUSB0'
BaudRate=115200
Parity=None
StopBits=One
DataBits = 8
ByteSize = 8
XonXoff = Off

My soloution

Raspberry and arms length from whe power meeter. USB - P1 Energy meeter Landis + Gyr E350

PRTG

Trigger data collection, db and visualisation

Shell script to start data collection by powershell

Powershell code

Could not get .NET new-Object System.IO.Ports.SerialPort to get data so instead I used linux command CU

sudo apt-get install cu
cu -l /dev/ttyUSB0 -s 115200 -E%

Dumped output to a temporary file and parse the output and create json output readable in PRTG

overview

Bonus sensor

I like to have an easy metric to compare the total energy consumption day to day. Wrote an 'XML Custom EXE/Script' sensor using PRTG API to collect historical data and use a factor to interpolate 24h consumption.