no counter values in day
Moderators: leecollings, remb0
-
- Posts: 483
- Joined: Tuesday 12 August 2014 5:37
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V3_8394
- Location: Rumbeke,Belgium
- Contact:
no counter values in day
Hi,
i made some counters and for some reason there is no data in the day usage.
Please find pictures in attachment
Total count as overview is now at 34 and that's correct.
But day usage keeps telling 0
Someone knows what i'm doing wrong?
Thank you
i made some counters and for some reason there is no data in the day usage.
Please find pictures in attachment
Total count as overview is now at 34 and that's correct.
But day usage keeps telling 0
Someone knows what i'm doing wrong?
Thank you
- Attachments
-
- 2017-05-08 09_27_44-Clipboard.jpg (9.8 KiB) Viewed 2396 times
-
- 2017-05-08 09_26_15-Clipboard.jpg (33.1 KiB) Viewed 2396 times
-
- 2017-05-08 09_24_53-Clipboard.jpg (95.7 KiB) Viewed 2396 times
-
- Posts: 79
- Joined: Tuesday 02 December 2014 22:16
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: no counter values in day
Hmm I have the same problem. No idea how to debug this one.
-
- Posts: 483
- Joined: Tuesday 12 August 2014 5:37
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V3_8394
- Location: Rumbeke,Belgium
- Contact:
Re: no counter values in day
Glad i'm not alone :p
i want to know how many times my dishwasher,... has run every day.
But now i cant do it with domoticz
In my sql server i can see it (i store all data also in here)
i want to know how many times my dishwasher,... has run every day.
But now i cant do it with domoticz
In my sql server i can see it (i store all data also in here)
-
- Posts: 536
- Joined: Friday 23 December 2016 16:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Stable
- Location: Netherlands Purmerend
- Contact:
Re: no counter values in day
Could it be the way you insert the events?
I think I am using the same (general ) counter and adressing the counting via a URL.
As you can see with nice hour stats


I think I am using the same (general ) counter and adressing the counting via a URL.
As you can see with nice hour stats


-
- Posts: 483
- Joined: Tuesday 12 August 2014 5:37
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V3_8394
- Location: Rumbeke,Belgium
- Contact:
Re: no counter values in day
Hi freijn,freijn wrote:Could it be the way you insert the events?
I think I am using the same (general ) counter and adressing the counting via a URL.
As you can see with nice hour stats
thank you for your answer.
You could be right

i'm updating my counters this way:
http://127.0.0.1:8080/json.htm?type=com ... value=xxxx
where svalue is the updated value of my counter
-
- Posts: 536
- Joined: Friday 23 December 2016 16:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Stable
- Location: Netherlands Purmerend
- Contact:
Re: no counter values in day
Hemmm
Everytime I have found a new airplane ( in your case as new wash
)
I call the following url
http://192.168.1.155:8080/json.htm?type ... 7&svalue=1
Why you have the two value's ?
b.t.w. Do you not have the issue that the counter goes "red" if not seen for serveral minutes/hrs?
I call the same Url with a 0 (zero) value as a keep alive...
Everytime I have found a new airplane ( in your case as new wash

I call the following url
http://192.168.1.155:8080/json.htm?type ... 7&svalue=1
Why you have the two value's ?
b.t.w. Do you not have the issue that the counter goes "red" if not seen for serveral minutes/hrs?
I call the same Url with a 0 (zero) value as a keep alive...
-
- Posts: 483
- Joined: Tuesday 12 August 2014 5:37
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V3_8394
- Location: Rumbeke,Belgium
- Contact:
Re: no counter values in day
Your counter, is it a rfxmeter or incremental counter?freijn wrote:Hemmm
Everytime I have found a new airplane ( in your case as new wash)
I call the following url
http://192.168.1.155:8080/json.htm?type ... 7&svalue=1
Why you have the two value's ?
b.t.w. Do you not have the issue that the counter goes "red" if not seen for serveral minutes/hrs?
I call the same Url with a 0 (zero) value as a keep alive...
Mine is a virtual rfxmeter as a normal counter.
And im not updating by 1 like you, but i store the washes done in a variable and i send that variable to my counter , maybe thats why its not working?
-
- Posts: 536
- Joined: Friday 23 December 2016 16:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Stable
- Location: Netherlands Purmerend
- Contact:
Re: no counter values in day
My counter is a script running on an different Rasp and "just" calling the url to increment the counter by 1.
I have not tested the adding to counter as you do, can't help you on that one
I can only confirm that adding 1 every time is working perfectly....
I have not tested the adding to counter as you do, can't help you on that one

I can only confirm that adding 1 every time is working perfectly....
-
- Posts: 483
- Joined: Tuesday 12 August 2014 5:37
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V3_8394
- Location: Rumbeke,Belgium
- Contact:
Re: no counter values in day
I mean, are you using a normal counter or an incremental counter? See picture 

- Attachments
-
- 2017-05-10 12_59_11-Clipboard.jpg (11.17 KiB) Viewed 2326 times
-
- Posts: 536
- Joined: Friday 23 December 2016 16:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Stable
- Location: Netherlands Purmerend
- Contact:
Re: no counter values in day
The "normal" counter.
Top one.
Top one.
-
- Posts: 483
- Joined: Tuesday 12 August 2014 5:37
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V3_8394
- Location: Rumbeke,Belgium
- Contact:
Re: no counter values in day
can you show the information about your counter please?
this is mine:
[77] => Array
(
[AddjMulti] => 1
[AddjMulti2] => 1
[AddjValue] => 0
[AddjValue2] => 0
[BatteryLevel] => 255
[Counter] => 1 vaatwas
[CounterToday] => 1 vaatwas
[CustomImage] => 0
[Data] => 1 vaatwas
[Description] =>
[Favorite] => 0
[HardwareID] => 4
[HardwareName] => Dummy
[HardwareType] => Dummy (Does nothing, use for virtual switches only)
[HardwareTypeVal] => 15
[HaveTimeout] =>
[ID] => 140CA
[LastUpdate] => 2017-05-11 22:50:08
[Name] => Vaatwasbeurten
[Notifications] => false
[PlanID] => 0
[PlanIDs] => Array
(
[0] => 0
)
[Protected] =>
[ShowNotifications] => 1
[SignalLevel] => -
[SubType] => RFXMeter counter
[SwitchTypeVal] => 3
[Timers] => false
[Type] => RFXMeter
[TypeImg] => counter
[Unit] => 1
[Used] => 1
[ValueQuantity] => beurten
[ValueUnits] => vaatwas
[XOffset] => 0
[YOffset] => 0
[idx] => 122
)
i tried with your url to update the counter, it says ok
{
"status" : "OK",
"title" : "Update Device"
}
but when i check at my device it stays at 1
http://192.168.1.175:8080/json.htm?type ... 2&svalue=1
this is mine:
[77] => Array
(
[AddjMulti] => 1
[AddjMulti2] => 1
[AddjValue] => 0
[AddjValue2] => 0
[BatteryLevel] => 255
[Counter] => 1 vaatwas
[CounterToday] => 1 vaatwas
[CustomImage] => 0
[Data] => 1 vaatwas
[Description] =>
[Favorite] => 0
[HardwareID] => 4
[HardwareName] => Dummy
[HardwareType] => Dummy (Does nothing, use for virtual switches only)
[HardwareTypeVal] => 15
[HaveTimeout] =>
[ID] => 140CA
[LastUpdate] => 2017-05-11 22:50:08
[Name] => Vaatwasbeurten
[Notifications] => false
[PlanID] => 0
[PlanIDs] => Array
(
[0] => 0
)
[Protected] =>
[ShowNotifications] => 1
[SignalLevel] => -
[SubType] => RFXMeter counter
[SwitchTypeVal] => 3
[Timers] => false
[Type] => RFXMeter
[TypeImg] => counter
[Unit] => 1
[Used] => 1
[ValueQuantity] => beurten
[ValueUnits] => vaatwas
[XOffset] => 0
[YOffset] => 0
[idx] => 122
)
i tried with your url to update the counter, it says ok
{
"status" : "OK",
"title" : "Update Device"
}
but when i check at my device it stays at 1
http://192.168.1.175:8080/json.htm?type ... 2&svalue=1
-
- Posts: 536
- Joined: Friday 23 December 2016 16:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Stable
- Location: Netherlands Purmerend
- Contact:
Re: no counter values in day
Sure I can show you, but please tell me how to get the info you are showing?
-
- Posts: 85
- Joined: Thursday 12 May 2016 15:47
- Target OS: Linux
- Domoticz version: 11838
- Location: South of France
- Contact:
Re: no counter values in day
Hi guys !
I'm having the same problem on *one* of my three dummy counters, all updated by the same lua function !
This happened when I updated to the beta 7412, everything was working fine before, with version 6371
I checked data in the dB, everything is normal. I guess something is broken in the last betas, but I can't figure out what
I'm having the same problem on *one* of my three dummy counters, all updated by the same lua function !
This happened when I updated to the beta 7412, everything was working fine before, with version 6371
I checked data in the dB, everything is normal. I guess something is broken in the last betas, but I can't figure out what
-
- Posts: 2
- Joined: Friday 24 May 2019 17:11
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Best, NL
- Contact:
Re: no counter values in day
So we now in 2019... and still this is happening to me. Logging GB diskspace from my NAS.
Used a Counter. Updating is with:
/json.htm?type=command¶m=udevice&idx=$NAS_TEST01_IDX&svalue=<SOMEVALUE>
So the status is ok, but the day count is wrong. Also the graphs are all 0.
Did some testing: First we post this:
/json.htm?type=command¶m=udevice&idx=$NAS_TEST01_IDX&svalue=10
Count will be 10.
A few minutes later we post:
/json.htm?type=command¶m=udevice&idx=$NAS_TEST01_IDX&svalue=13
Count will be 13.
Graph will show a bar with value 10 (on hour 0) and a bar at with value 3 (for the hour+1). Because it thinks this hour(13) -/- 10 (previous hour) = 3. And I think this is a part of the strange behaviour. I my case I don't want to have a 'usage per day', but just the value of that day, so no calculation with previous periods.
Does anyone know what counter can best be used for 'counting' harddisk GB's?
Edit:
Just found out that 'Custom Sensor' is what I need. It just shows the latest value. And in graph it shows the values over time.
Last edited by koender on Monday 27 May 2019 21:28, edited 1 time in total.
Who is online
Users browsing this forum: No registered users and 1 guest