Does V_RAIN work as V_KWH?

Moderator: leecollings

Post Reply
sundberg84
Posts: 52
Joined: Sunday 17 May 2015 11:20
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Sweden
Contact:

Does V_RAIN work as V_KWH?

Post by sundberg84 »

Hi!
Im working on a sleeping tip bucket/rain.

When i look at the EnergyMeter/Watermeter it keeps adding V_KWH and never reset this at midnight. It seems like Domoticz keeps track of this but is it the same with V_RAIN?

If i send 1mm the first day it will add this to domoticz. But it seems like i have to reset this at midnight or it will sum up the rain over all time?

IS this correct or i made some misstake in my sketch?

Thanks.
Controller: Domoticz (Raspberry PI)
Gateways: MySensors (Ethernet W5100), RFLink
User avatar
gizmocuz
Posts: 2548
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Does V_RAIN work as V_KWH?

Post by gizmocuz »

Correct, it is the same as the Enery/Water meter.
The Rain sensor expects a counter that increases only
Domoticz will show the amount of rain based on the last counter value minus the first counter value of the day
Quality outlives Quantity!
sundberg84
Posts: 52
Joined: Sunday 17 May 2015 11:20
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Sweden
Contact:

Re: Does V_RAIN work as V_KWH?

Post by sundberg84 »

Still, I dont think this is correct or works correct in domoticz (latest beta).
My energymeter works great but not my Raingauge:

Start:
read: 0-0-7 s=1,c=2,t=24,pt=0,l=2,sg=0:52
Received last pulse count from gw: 52
After 10 bucket tips (0.5mm) within the same hour (I send V_RAIN every 0.5 and counter every 1.0)
The bucket has tipped over...
send: 7-7-0-0 s=1,c=1,t=6,pt=7,l=5,sg=0,st=ok:4.5 (V_RAIN)
he bucket has tipped over...
send: 7-7-0-0 s=1,c=1,t=6,pt=7,l=5,sg=0,st=ok:5.0 (V_RAIN)
send: 7-7-0-0 s=1,c=1,t=24,pt=2,l=2,sg=0,st=ok:57 (V_VAR1)
Result next hour
whatswrong.JPG
whatswrong.JPG (43.11 KiB) Viewed 870 times
Controller: Domoticz (Raspberry PI)
Gateways: MySensors (Ethernet W5100), RFLink
User avatar
gizmocuz
Posts: 2548
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Does V_RAIN work as V_KWH?

Post by gizmocuz »

best to export your database, and open this in for example 'SQLite Expert Personal'
watch the first counter of the day and the last counter, difference is amount of rain today
Quality outlives Quantity!
sundberg84
Posts: 52
Joined: Sunday 17 May 2015 11:20
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Sweden
Contact:

Re: Does V_RAIN work as V_KWH?

Post by sundberg84 »

Its strange this... i dont know. I will run my node for a couple of days...
It looks like it is the first day it goes wrong. Today it looks better...

My database from yesterday which corresponds to images above:
whatswrong.jpg
whatswrong.jpg (178.38 KiB) Viewed 844 times
Will return with results...
Controller: Domoticz (Raspberry PI)
Gateways: MySensors (Ethernet W5100), RFLink
sundberg84
Posts: 52
Joined: Sunday 17 May 2015 11:20
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Sweden
Contact:

Re: Does V_RAIN work as V_KWH?

Post by sundberg84 »

My fault that I thought V_Rain was supposed to be reset at midning (viewtopic.php?f=42&t=7840)
This is working and V_RAIN works as it should (and as V_KWH).
Controller: Domoticz (Raspberry PI)
Gateways: MySensors (Ethernet W5100), RFLink
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest