I have succesfully setup a pulse counter with espeasy. It can send different values via MQTT to my mosquitto broker. Like Total count of pulse or just the one pulse it detects each time. My main problem is that when I have to reboot the espeasy during the day, the total pulse count for that day is gone (I’m measuring my watermeter).
I noticed there is a setting that can operate a Delta value:
I tried setting it to 1. I was hoping that whenever the mqtt client on the espeasy is sending payload 1 to the broker, the OH thing would take the sum of both.
Whenever a pulse is detected this is what is sent:
How could I count these pulses in my OH2 thing? I’m using a rule on the espeasy device to have it reboot every night at 0:00h That way a new day starts and I can start counting again.