I’d like to measure flow and amount of water which is used by watering system in one cycle. Water flow is measured by flow sensor, and I used Pulse Counter Sensor:
Generally it works perfect, I have two entities: sensor.flow, which shows flow of water in liters/hour and sensor.amount, which shows how much of water was used.
But, unfortunately, it seems that this “total” value is really total, I can’t reset it. I’m trying to zeroed it during start of watering session, but it just doesn’t work, entity still has previous value and just increasing.
Here is other part of my code, this switch which physically is a valve for this watering, on turn on it should reset amount value (and it also resets other value for measuring a time and it works well), why it doesn’t reset an amount?
Yes, I did it finally. Pulse counter is using only as a sensor for getting value, then I’m using it for updating a global variables, which I can reset or whatever I need.
@Jarek_P , Im trying do do something similar, but I want the the water amount to be reset to zero when there has been no pulse for a some time. Can you help me?