Hi all,
But the graph shows the usage for a period of time, not for the total usage from that starttime.
Example
hot water running for:
5 minutes to get hot water for shaving. say 5 liter
3 minutes to brush my teeth (with cold water, so nu usage)
10 minutes shower. say 25 liter.
This will often give at least 2 bars, sometimes 3 depending on the time on the x-as.
What I hope to get is the total from starttime to finish time with max x minutes between the usages. (5 minutes would do I guess).
The goal is to easy show my children how much water they use during showering to make them more aware of their usage.
Who can help me achieve this?
Thanks, Marcel
I have my watermeter (for hot water) shown in a bar graph. That works fine.Dashticz graph watermeter show a bar for every usage
Moderators: leecollings, htilburgs, robgeerts
-
- Posts: 19
- Joined: Monday 12 November 2018 19:05
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Belgium
- Contact:
Dashticz graph watermeter show a bar for every usage
Raspberry Pi, RFXCOM - RFXtrx433 USB 433.92MHz Transceiver, OpenZWave USB
-
- Posts: 32
- Joined: Sunday 29 July 2018 16:18
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.2
- Location: The Netherlands
- Contact:
Re: Dashticz graph watermeter show a bar for every usage
Hi Marcel,
I don't have a direct solution but maybe you can make a virtual meter in Domoticz. With DzVents you write the meter data from your water meter to this virtual meter.
I do something like this myself but with my smart e-meter and data from my solar panels. I call the script every time the solar panel data is updated. My inverter is updating every 5 seconds.
Kind Regards
I don't have a direct solution but maybe you can make a virtual meter in Domoticz. With DzVents you write the meter data from your water meter to this virtual meter.
I do something like this myself but with my smart e-meter and data from my solar panels. I call the script every time the solar panel data is updated. My inverter is updating every 5 seconds.
Kind Regards
-
- Posts: 19
- Joined: Monday 12 November 2018 19:05
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Belgium
- Contact:
Re: Dashticz graph watermeter show a bar for every usage
Hi Delfuego, the watermeter is a virtual meter in Domoticz like described in https://ehoco.nl/watermeter-uitlezen-in ... ua-script/
That works almost perfect, except the part for writing away a record every 5 minutes when no water has been used. After 5 minutes the log of domoticz is filled with a lot of messages that it has been more then 5 minutes ago that i used water. But after the 5 minutes , this message appears every few seconds. A solution for this might solve the graph issue in Dashticz but I did not find the solution yet.
For sure someone has solved this already.
That works almost perfect, except the part for writing away a record every 5 minutes when no water has been used. After 5 minutes the log of domoticz is filled with a lot of messages that it has been more then 5 minutes ago that i used water. But after the 5 minutes , this message appears every few seconds. A solution for this might solve the graph issue in Dashticz but I did not find the solution yet.
For sure someone has solved this already.
Raspberry Pi, RFXCOM - RFXtrx433 USB 433.92MHz Transceiver, OpenZWave USB
-
- Posts: 32
- Joined: Sunday 29 July 2018 16:18
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.2
- Location: The Netherlands
- Contact:
Re: Dashticz graph watermeter show a bar for every usage
Hi Marcel,
I was just looking into the link you sent (all in Dutch). I was wondering if you did set the Sensor Timeout for a longer period of time?
I was just looking into the link you sent (all in Dutch). I was wondering if you did set the Sensor Timeout for a longer period of time?
Eventueel kun je “Sensor Timout” op 10000 zetten (dit voorkomt dat je time-outs en log-errors krijg indien je bv. op vakantie bent en gedurende langere tijd geen water verbruikt).
-
- Posts: 19
- Joined: Monday 12 November 2018 19:05
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Belgium
- Contact:
Re: Dashticz graph watermeter show a bar for every usage
Hi Delfuego, Yes, apparently I did that in the past. But the issue is not that there is too long time before the water sensor is triggered.
It just needs an extra loop function.
Something like if usage = null, write a record every 5 minutes.
Now the behaviour is,
when waterusage is more then 5 minutes ago, write the value, and again, and again...
It just needs an extra loop function.
Something like if usage = null, write a record every 5 minutes.
Now the behaviour is,
when waterusage is more then 5 minutes ago, write the value, and again, and again...

- Spoiler: show
Raspberry Pi, RFXCOM - RFXtrx433 USB 433.92MHz Transceiver, OpenZWave USB
-
- Posts: 19
- Joined: Monday 12 November 2018 19:05
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Belgium
- Contact:
Re: Dashticz graph watermeter show a bar for every usage
When i look into the database of Domoticz and select Meter and my Hot water usage meter (The variable), it looks like the value is just written to the database every 5 minutes.
So my feeling is, that the part in the script that was there to write a record to the database, even if there is nu water usage, is actually not needed anymore. I commented out that section in the script, and still my variable is updated every 5 minutes....
So my best guess is that I have to make something else to collect the length of every usage and show that in Dashticz.......
So my feeling is, that the part in the script that was there to write a record to the database, even if there is nu water usage, is actually not needed anymore. I commented out that section in the script, and still my variable is updated every 5 minutes....
So my best guess is that I have to make something else to collect the length of every usage and show that in Dashticz.......
Raspberry Pi, RFXCOM - RFXtrx433 USB 433.92MHz Transceiver, OpenZWave USB
-
- Posts: 32
- Joined: Sunday 29 July 2018 16:18
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.2
- Location: The Netherlands
- Contact:
Re: Dashticz graph watermeter show a bar for every usage
Ah! Now I think I understand what you want.
My suggestion would then be to write a script in DzVents that counts the pulses from your water meter and if the pulses don't come in anymore for, let's say 1 or 2 minutes, then sent the total to the incremental counter. This way, the consumption of one time using hot water is written as a total with the same timestamp. Small disadvantage is that usage is logged at the time the tap was turned off (or actually 1 or 2 minutes after that depending on the delay you chose).
I have ordered my sensor and am also going to install the water meter. How do you know that hot water is being used? Do you have a separate meter in the hot water line?
My suggestion would then be to write a script in DzVents that counts the pulses from your water meter and if the pulses don't come in anymore for, let's say 1 or 2 minutes, then sent the total to the incremental counter. This way, the consumption of one time using hot water is written as a total with the same timestamp. Small disadvantage is that usage is logged at the time the tap was turned off (or actually 1 or 2 minutes after that depending on the delay you chose).
I have ordered my sensor and am also going to install the water meter. How do you know that hot water is being used? Do you have a separate meter in the hot water line?
-
- Posts: 19
- Joined: Monday 12 November 2018 19:05
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Belgium
- Contact:
Re: Dashticz graph watermeter show a bar for every usage
Hi Delfuego, yes, I have a cold water and a hot water meter. I bought 2 and placed them inside my house. My actual water meter is at the street side, about 90 meters away. We have a 200 liter boiler which I only warm up at night hours so i want to keep track where all water went 

Raspberry Pi, RFXCOM - RFXtrx433 USB 433.92MHz Transceiver, OpenZWave USB
Who is online
Users browsing this forum: No registered users and 1 guest