Skip to content
/ ledteho Public

A small python script to calculate power and energy from a pulsing led on your elecricity meter.

Notifications You must be signed in to change notification settings

sampod/ledteho

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ledteho

A small python script to calculate power and energy from a pulsing led on your elecricity meter. Sends measurement data by MQTT allowing easy integration to a system supporting MQTT such as Home Assistant. Optionally writes status data to files. You can change the save location by modifying the config file to your needs.

Example fstab line for ramdisk:

tmpfs /ramdisk tmpfs defaults,size=20M,gid=33 0 0

Suggested hardware

  • Raspberry pi Zero W
  • 3.3 V Arduino LDR comparator board
  • Maybe some wires to extend LDR out of the board and to connect the board to Raspberry
  • Power supply for Raspi

Todo

  • Improve averaging function
  • Make config handling better

inspired by

About

A small python script to calculate power and energy from a pulsing led on your elecricity meter.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages