Page 8 of 29
Re: Toon App: Water
Posted: Thu Feb 25, 2021 3:01 pm
by oepi-loepi
rolinck wrote:Happily using the water app for a couple of days now. But I’m having some issues with false readings. I assume when the npn sensor is closing / stops near it triggering point it is producing some false pulses.
My question is. Is it possible to implement a delay (debounce time) after a pulse? For my scenario a 1 or 2 second delay would be fine. But maybe is is nicer to have this adjustable.
In the newest version it is already capped on 500ms. So every reding higher than 120 l/s is considered false. In the next version i will make the 500ms adjustable.
Re: Toon App: Water
Posted: Thu Feb 25, 2021 5:03 pm
by rleunk
oepi-loepi wrote:Tebogo wrote:
3 things I found on Toon.
1: ToonWater gives a negative value for the cost. As if I deliverd water
2: Where do I set the price of a m^3 water?
3: Possible to give watermeter when you click on Meterstand in the Graph?
Thanks!
1. Yes, people deliver water. However, to be honest: yellow water is not water.. do not drink. Please theck the cost values in 2.
2. Price is set in /mnt/data/qmf/config/config_happ_pwrusage.xml, look for water / billinginfo
3. The grap is standard toon so this is not possible. You can set the reading in the setup menu. The value will be send to Wemos and saved into wemos.
I also see a negative value for the costs, at this moment my Toon says "Water vandaag € -1,40" the graphic "Water in dagen" gives positve values for the last days, the graphic bar for today is also a positve value. On a second test Toon the value for "Water vandaag" is € 0,00 the graphics for the last days are the same a for my 1st Toon.
The setting for both Toons in /mnt/data/qmf/config/config_happ_pwrusage.xml are the same.
Re: Toon App: Water
Posted: Thu Feb 25, 2021 9:12 pm
by rolinck
oepi-loepi wrote:rolinck wrote:Happily using the water app for a couple of days now. But I’m having some issues with false readings. I assume when the npn sensor is closing / stops near it triggering point it is producing some false pulses.
My question is. Is it possible to implement a delay (debounce time) after a pulse? For my scenario a 1 or 2 second delay would be fine. But maybe is is nicer to have this adjustable.
In the newest version it is already capped on 500ms. So every reding higher than 120 l/s is considered false. In the next version i will make the 500ms adjustable.
Super! That would be great

Re: Toon App: Water
Posted: Thu Feb 25, 2021 9:59 pm
by oepi-loepi
rleunk wrote:
I also see a negative value for the costs, at this moment my Toon says "Water vandaag € -1,40" the graphic "Water in dagen" gives positve values for the last days, the graphic bar for today is also a positve value. On a second test Toon the value for "Water vandaag" is € 0,00 the graphics for the last days are the same a for my 1st Toon.
The setting for both Toons in /mnt/data/qmf/config/config_happ_pwrusage.xml are the same.
Strange...
Re: Toon App: Water
Posted: Fri Feb 26, 2021 11:30 am
by Jasper
Dacht dat ik een paar pagina's terug mijn versie gepost had en daar bij huidige stand float /1000 moest doen om kuub te krijgen ipv liter?
Re: Toon App: Water
Posted: Fri Feb 26, 2021 11:45 am
by rolinck
For home assistant implementation the script below can be used to get both waterflow and waterquantity in one rest call
sensor:
- platform: rest
name: watermeter
json_attributes:
- waterflow
- waterquantity
resource: http://<ip-watermeter>/water.html
- platform: template
sensors:
watermeter_flow:
friendly_name: "Huidige waterflow"
value_template: '{{ states.sensor.Watermeter.attributes["waterflow"] }}'
unit_of_measurement: "l/m"
icon_template: "mdi:water-pump"
watermeter_quantity:
friendly_name: "Huidige watermeterstand"
value_template: '{{ states.sensor.Watermeter.attributes["waterquantity"] }}'
unit_of_measurement: "l"
icon_template: "mdi:water"
Re: Toon App: Water
Posted: Fri Feb 26, 2021 1:27 pm
by oepi-loepi
Jasper wrote:Dacht dat ik een paar pagina's terug mijn versie gepost had en daar bij huidige stand float /1000 moest doen om kuub te krijgen ipv liter?
ja dat klopt:
viewtopic.php?f=99&t=13090&start=60#p97188
Re: Toon App: Water
Posted: Fri Feb 26, 2021 10:12 pm
by oepi-loepi
rolinck wrote:Happily using the water app for a couple of days now. But I’m having some issues with false readings. I assume when the npn sensor is closing / stops near it triggering point it is producing some false pulses.
My question is. Is it possible to implement a delay (debounce time) after a pulse? For my scenario a 1 or 2 second delay would be fine. But maybe is is nicer to have this adjustable.
See version 1.1.7:
github.com/oepi-loepi/water_ESP_part/re ... 1_mini.bin
version 1.1.7:
- debounce timer added (variable between 500 ms and 2000 ms). When pulses are received wwith an interval shorter than the debounce time, the pulses are rejected. This to prevent false readings when the pulse divice is just near its triggering point..
Re: Toon App: Water
Posted: Fri Feb 26, 2021 10:36 pm
by rolinck
oepi-loepi wrote:rolinck wrote:Happily using the water app for a couple of days now. But I’m having some issues with false readings. I assume when the npn sensor is closing / stops near it triggering point it is producing some false pulses.
My question is. Is it possible to implement a delay (debounce time) after a pulse? For my scenario a 1 or 2 second delay would be fine. But maybe is is nicer to have this adjustable.
See version 1.1.7:
github.com/oepi-loepi/water_ESP_part/re ... 1_mini.bin
version 1.1.7:
- debounce timer added (variable between 500 ms and 2000 ms). When pulses are received wwith an interval shorter than the debounce time, the pulses are rejected. This to prevent false readings when the pulse divice is just near its triggering point..
Excellent! I will install this version and post my findings.
Re: Toon App: Water
Posted: Fri Feb 26, 2021 11:26 pm
by Jasper
If I remember correctly my water meter says max flow 2.5m³/H so 42 rotations a minute.
Meaning if I did my math homework max 1.5 seconds per rotation.
Problem then will be that the metal part is 1/3 coverage.
So I think that your 500ms is a good value and 2000ms can skip a reading in theory.
So far most I've seen is 9L a minute.
Re: Toon App: Water
Posted: Fri Feb 26, 2021 11:34 pm
by oepi-loepi
Jasper wrote:
Meaning if I did my math homework max 1.5 seconds per rotation.
So far most I've seen is 9L a minute.
Meaning if I did my math homework max 1.5 seconds per rotation.
No, it is MIN 1,5 seconds per rotation (not max).
That is the max of the meter and not of your waterpipes, filters, cranes etc. and is also not the max of what you can get from your supply.
I have made the setting variable from the setup menu so you can play with the value between 500 -2000.
Re: Toon App: Water
Posted: Fri Feb 26, 2021 11:37 pm
by oepi-loepi
@rleunk @tebogo
The new version has a custom tile for ThisDayWaterEURO (water in euros vandaag). (available from 1.1.5)
Re: Toon App: Water
Posted: Sat Feb 27, 2021 12:08 am
by rleunk
oepi-loepi wrote:@rleunk @tebogo
The new version has a custom tile for ThisDayWaterEURO (water in euros vandaag). (available from 1.1.5)
Thnx oepi-loepi, I will test it if it's available!
Re: Toon App: Water
Posted: Sat Feb 27, 2021 12:24 am
by Jasper
Beter niet vertalen dan, ik bedoel dat de watermeter er minimaal 1.5 seconden over doet om een rondje te draaien.
Re: Toon App: Water
Posted: Sat Feb 27, 2021 12:28 am
by Tebogo
oepi-loepi wrote:@rleunk @tebogo
The new version has a custom tile for ThisDayWaterEURO (water in euros vandaag). (available from 1.1.5)
Thanks, will test and report results here.