Skip to content

Code for an impulse-based electricity meter using Puck.js and BTHome for Home Assistant

License

Notifications You must be signed in to change notification settings

aegjoyce/bthome-electricity-meter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

BTHome Electricity Meter

Code for an impulse-based electricity meter using Puck.js and BTHome for Home Assistant.

This code allows Home Assistant to read total energy usage (kWh) and live power consumption (W) from an electricity meter with an impulse light, using a Puck.js beacon. Data is broadcast using the BTHome BLE protocol - see https://bthome.io.

Instructions

  1. Get a Puck.js beacon and set it up with an LDR as per the instructions at https://www.espruino.com/Smart+Meter.
  2. Use the Espruino Web IDE to write the contents of meter.js to your device. Change the imp variable to match the value for impulses/kWh on your electricity meter (this can vary).
  3. Attach the Puck.js to your meter.

With Discovery enabled you should see a new device called Puck in your Home Assistant devices. If you're struggling with range you can set up an ESP32 with bluetooth_proxy to act as a range extender for your BLE network.

Screenshot 2022-10-05 at 13 35 29

About

Code for an impulse-based electricity meter using Puck.js and BTHome for Home Assistant

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published