swa72
(Swa72)
December 17, 2021, 8:10pm
1
I have a gas meter reader running successfully for a couple of months, using pulse_counter (code see home-assistant/gas4.yaml at 09023df610757605311e0132cfa0723eaf883d0a · swa72/home-assistant · GitHub ). If I reboot HA or HA breaks down, I may miss some data as there is no one on the receiving end.
Is there any way to buffer a reading until HA is back online?
Blacky
December 20, 2021, 10:08am
2
no i don’t think so because you would need another device to record information and then send it to HA.
then if that breaks down you loose data
dog chasing tail
swa72
(Swa72)
December 20, 2021, 10:25am
3
Thanks for the reply. Can I sum data on the ESP and send that data to HA as well? In other words, I aggregate on the ESP.
Blacky
December 20, 2021, 10:38am
4
I think HA only accepts real-time data
unless someone else can help.
swa72
(Swa72)
December 20, 2021, 11:29am
5
That’s ok, if ESP sends the sum as well. ESP resets that counter nightly. So HA records two data streams: the pulse_counter and the sum. It doesn‘t matter if HA misses pulse counters as it also (albeit a bit later) receives the sum.
Blacky
December 20, 2021, 11:36am
6
no problem thanks for the update
gfrhg4r3
(woot)
February 3, 2023, 12:38pm
7
@Blacky can you link the reader, I’m trying to do something like this.