Since I've got smart meter installed, I was looking for a way to automatically collect my meter data to track electricity usage (and solar export) with corresponding pricing as per current supplier rates.
While searching on internet I found this post https://www.boards.ie/discussion/2058292506/esb-smart-meter-data-script as potential candidate to start with.
Unfortunatelly linked script is broken - ESB have chnaged some URL's and file structure since then and I had to spend some time and tinker with code to make it working with new (as of writing it is 21-JUL-2023) URL structure.
End result - code is fixed and runs just fine now, I am able to read all smart meter readings from my account in JSON format and push it further to my InfluxDB and Home Assistant for analysis/reporting.
- You need to create account with ESB here https://myaccount.esbnetworks.ie
- In your account, link your electricity meter MPRN
Create a file .secrets
in this folder with your login details for ESB networks and InfluxDB. This needs to be in the following format:
[ESB]
meter_mprn = <your mprn>
username = <your username>
password = <your password>
[InfluxDB]
bucket = esb
host = http://localhost:8086
organisation = <your org>
token = <your access token>
Run the script :-), You can use the --debug
flag to show a more verbose output. You may need to install some stuff like influxdb3-python
- I use a virtual environment andpip
to install.