Hi
I’ve set up two ESPs to read blinks from my power meter.
The first version counted the time from one blink to the next and report via MQTT (for each blink). This gives me nice graphs like this: Screenshot of grafana
But I fear it may not be accurate, and it’s hard to list up i.e. how much power was used during one day.
My second version counts blinks and on every ten blinks sends the count via MQTT. I think this will work better if there are network problems. And the rate of blinks should allow for calculating current energy use.
But I’m not sure how to use the data from this version 2 in hass or grafana to show current use.
(All code I write for this will be published at 0p.no when it works)
Edit: My meter blinks once per kWh used.