watermeter wrong values
Moderator: leecollings
watermeter wrong values
Hi,
I have build a watermeter sensor using the TCRT5000 sensor on a watermeter using a reflecting disc. Everything seems to technically work, I have data in domoticz so that is something.. but my problem is that the values are completely wrong I think.
I almost used 4000 liters of water in one hour and 12 m3 in one day ..That couldn't be correct ..
I saw in the sketch i can set the pulse factor value, used the default which is 1000. But I don't know what a correct value would be for my watermeter and if I need to change this.?
I have this type of watermeter: http://i.imgur.com/XOLaNaN.jpg
Any idea where this is going wrong ?
I have build a watermeter sensor using the TCRT5000 sensor on a watermeter using a reflecting disc. Everything seems to technically work, I have data in domoticz so that is something.. but my problem is that the values are completely wrong I think.
I almost used 4000 liters of water in one hour and 12 m3 in one day ..That couldn't be correct ..
I saw in the sketch i can set the pulse factor value, used the default which is 1000. But I don't know what a correct value would be for my watermeter and if I need to change this.?
I have this type of watermeter: http://i.imgur.com/XOLaNaN.jpg
Any idea where this is going wrong ?
-
- Posts: 21
- Joined: Thursday 28 January 2016 10:32
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: watermeter wrong values
how do you push your data? and what data do you push?
You have to push the total value, and not push the increment.
You have to push the total value, and not push the increment.
Re: watermeter wrong values
I push the data to domoticz. I have used the Watermeter pulse script of MySensors. As far as I know the Arduino Gateway gives the latest value to the sensor; the sensor adds the water usage and the sensor send it back to the gateway. Domoticz then shows the results.
The Pulse factor in the Mysensor script is set to 1000, this should be OK because one pulse/rotation is one liter of water in my watermeter. 1000 liters is 1 m3 in total.
Now, I am looking in Domoticz in Settings / Meters and playing around with the RFXMeter water setting to see what changes. As a test I have encreased the value to 10.000, then the settings in Domoticz gives me a more accurate view of the used liters, but I think the m3 is then incorrect.. Also I don't know exactly what 10.000 then means and if this is OK then ?
The TCRT5000 gives an on and an off pulse, the off pulse happens when the reflected part is gone and an on pulse when the reflected part of the water meter is beneath the sensor. This is looking OK.
I debugged the sensor; saw a strange data value of 2,071 which came from the gateway (got no clue where this number is coming from, but I think Domoticz saved it somehow somewhere).. but when the disc in the watermeter rotates twice it is then 2,073, so I think the sensor (despite of the 2,000 part) is working OK.
But I still beleave the readings are wrong.. Someone got an idea?
The Pulse factor in the Mysensor script is set to 1000, this should be OK because one pulse/rotation is one liter of water in my watermeter. 1000 liters is 1 m3 in total.
Now, I am looking in Domoticz in Settings / Meters and playing around with the RFXMeter water setting to see what changes. As a test I have encreased the value to 10.000, then the settings in Domoticz gives me a more accurate view of the used liters, but I think the m3 is then incorrect.. Also I don't know exactly what 10.000 then means and if this is OK then ?
The TCRT5000 gives an on and an off pulse, the off pulse happens when the reflected part is gone and an on pulse when the reflected part of the water meter is beneath the sensor. This is looking OK.
I debugged the sensor; saw a strange data value of 2,071 which came from the gateway (got no clue where this number is coming from, but I think Domoticz saved it somehow somewhere).. but when the disc in the watermeter rotates twice it is then 2,073, so I think the sensor (despite of the 2,000 part) is working OK.
But I still beleave the readings are wrong.. Someone got an idea?
Re: watermeter wrong values
I did some more calculations during the past days.
I think the liters are pretty much accurate. When I flush the toilet it is around 10 liters; that seems to be OK. But the m3 are way off.
During a fixed test period I have used 1,2 m3 off water according to the meter. Domoticz is shown this as 2,4 m3.. So somewhere I need to divide this number to two...
Must I change the pulse factor to 2000 in the sketch or must I divide it somewhere else?
@forumadmin: Maybe this subject must be placed in the MySensors subforum?
I think the liters are pretty much accurate. When I flush the toilet it is around 10 liters; that seems to be OK. But the m3 are way off.
During a fixed test period I have used 1,2 m3 off water according to the meter. Domoticz is shown this as 2,4 m3.. So somewhere I need to divide this number to two...
Must I change the pulse factor to 2000 in the sketch or must I divide it somewhere else?
@forumadmin: Maybe this subject must be placed in the MySensors subforum?
Re: watermeter wrong values
I have tested it, where I have set the Watermeter meter value in Domoticz to 2000.
I have looked at the counters, my conclusion is that the Liters and M3 are shown correctly in Domoticz. But the watermeter total is way off. If I change this to 1000, then the M3 and the liters are off. I debuged the sensor itself, there everything is looking OK. So my conclusion is that I get the most accurate measurement when I set the meter setting in Domoticz to 2000.
This gives me the following results:

The first bar is 61 liters and the second bar is 105 liters. The liters are correct; this is as far as I can see pretty correct values? But as you can see the total water usage is 331 liters. This is times 2 basically. I have changed the meters setting in Domoticz to 2000, but this is not working on the Water Total counter? I would expect that the two bars are added and that this is the total water usage, but it seems not? Is this a bug in Domoticz or do I something wrong?
I have looked at the counters, my conclusion is that the Liters and M3 are shown correctly in Domoticz. But the watermeter total is way off. If I change this to 1000, then the M3 and the liters are off. I debuged the sensor itself, there everything is looking OK. So my conclusion is that I get the most accurate measurement when I set the meter setting in Domoticz to 2000.
This gives me the following results:

The first bar is 61 liters and the second bar is 105 liters. The liters are correct; this is as far as I can see pretty correct values? But as you can see the total water usage is 331 liters. This is times 2 basically. I have changed the meters setting in Domoticz to 2000, but this is not working on the Water Total counter? I would expect that the two bars are added and that this is the total water usage, but it seems not? Is this a bug in Domoticz or do I something wrong?
-
- Posts: 14
- Joined: Friday 31 October 2014 9:05
- Target OS: Linux
- Domoticz version:
- Contact:
Re: watermeter wrong values
Same problem over here....
Before I used a piface all was good, but now with mysensors not.
Same as you total value is x2.
Before I used a piface all was good, but now with mysensors not.
Same as you total value is x2.
Re: watermeter wrong values
Great that I am not alone and that it is a known issue. Can we file this as a bug then somewhere? 

Re: watermeter wrong values
This bug is fixed in beta 3.4989, so maybe you can also give it a try.12345caravan wrote:Same problem over here....
Before I used a piface all was good, but now with mysensors not.
Same as you total value is x2.
-
- Posts: 14
- Joined: Friday 31 October 2014 9:05
- Target OS: Linux
- Domoticz version:
- Contact:
Re: watermeter wrong values
Great!
It is working now as it should, i was thinking of going back to the piface but now
I stick to mysensors.
It is working now as it should, i was thinking of going back to the piface but now
I stick to mysensors.

Re: watermeter wrong values
Great to hear 

-
- Posts: 1
- Joined: Friday 15 April 2016 22:49
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: watermeter wrong values
Dont forget the diver.
I needed it to set to 1000 instead of the default 100
I needed it to set to 1000 instead of the default 100
Who is online
Users browsing this forum: No registered users and 1 guest