Skip to content

*Work in progress* Read serial data from a "smart" power meter over the P1(HAN) port to take control of your power usage.

License

Notifications You must be signed in to change notification settings

Adler-Alexander/power_meter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Power meter

Visualize and take control over your power usage

This project is to document my journey to read data from the new smart power meters that now are being deployed all around Sweden as well as many other countries in Europe and send this data over https to a collection tool. Note that the script can easily be modified to collect the data in any other form. The included script is reading the data everytime the meter is sending it (atleast every 10 seconds according to Swedish regulation) and then parsing it before sending it via HTTPS.

image

image

Current version is written to send it's data to Splunk via HTTP Event Collector. https://docs.splunk.com/Documentation/Splunk/9.0.1/Data/UsetheHTTPEventCollector

Requirements

  • A power meter with a P1/HAN port and the port enabled
  • A Raspberry Pi 2,3 or 4 (might be possible to use a Zero as well, not tested)
  • R11 or RJ12 contact that can be connected to the powermeter
  • 1 NPN transistor
  • 3 1k resistor

How to:

  1. Solder or wire the components according to this diagram.

image

  1. Download or clone the power_meter.py script
  2. Modify the script and update the included variables such as serial port and collector details.
  3. Install the required Python packages
  4. Run power_meter.py

Watch as data is coming in and make some nice graphs! You may even be able to lower your power usage based on the data.

About

*Work in progress* Read serial data from a "smart" power meter over the P1(HAN) port to take control of your power usage.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages