Pulse counter and HA down, now what?

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?

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

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.

I think HA only accepts real-time data

unless someone else can help.

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.

no problem thanks for the update :ok_hand:

@Blacky can you link the reader, I’m trying to do something like this.