-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Water flow sensor reading #4681
Comments
Have you set properly the command counterdebounce and command countertype? Please, complete the troubleshooting template in order to have more information so as to properly help you. |
hello @ascillato , I already edit my post for troubleshooting template about the counter type
the value is zero which means pulse Counter should I change it to 1 (pulse Timer)? and the counterdebounce is zero for now
any idea how to to get the right counter debounce? Cheers, -- |
One question regarding this. I have a different water meter and it works great. |
What is your water meter model? This is the rule I made to make the value persistent
|
Nice! Is there a price to save it every sec? Is it saved to flash (with limited write) or to the eeprom? If there is a limit I could have a better solution without saving it. |
If you save in the flash, your memory will wear and broke very soon. The eeprom hardware is not intended to be a harddrive. The eeprom has a limited write cycles lifespan. That is why, you should gather your counter value in your home automation software. I use the exact same sensor as you @ccfiel In my water-flow sensor I use this:
So every minute, it is sent to my Home Automation software the actual pulses/min. After the sensor value is sent, the rule reset the counter to zero to start over the measurement. |
Please, try the Please, let us know how that goes. Thanks |
regarding the flash I agree. |
Your EEPROM is not a Harddrive. Flash is specified for up to 100000 erase cycles. So that aproach will wear your flash out in about 3 weeks. |
I'm not suggesting to save the info to flash. just not to have the rule that clear the counter |
Ok, what you want to do is different than what this issue was about. You can use rules to store in vars last 5 pulses/min when mqtt disconnects, and then send them when mqtt connects. Is not an easy rule but it is doable. You can check the wiki for examples in rules. Remember that if you use the mem instead of vars you will wear the flash if you use them a lot of times per day. That is why, for this should be better to use vars. |
Hello @ascillato I tested 1 liter container and get the pulse count but it's not stable data below. Any suggestion? :)
|
@ccfiel I have this Arad with EV output at my home primary water entrance. |
A hass custom component for reading the counter and sync to the right value in case of power up/down without saving the counter to flash. It sync using the up-time field. the component. Example of usage (under sensor)
|
Sorry, is it 64bits or 32bit? |
32-bit |
I've looked into my hass tasmota counter component code, it assumes the counter is firmware counter is 32bit. |
I have tried a water flow sensor yf-s201 but I have a problem when I install it to the water system and compare the reading of the manual meter with the water flow sensor there reading has a very big variance example in the manual reading it consume 20 liters but In the tasmota and yf-s201 sensor it just consume 5 liters.
my computation on how to compute liters is ( pulse / 450) because the data sheet of this sensor says Pulses per Liter: 450
Am I doing it right? or I miss something?
The text was updated successfully, but these errors were encountered: