Page 1 of 1

ViCare-domoticz plugin - Counter-Problem

Posted: Wednesday 26 February 2025 15:42
by Nakaros
Hi there,

my situation is the following: I am using a own-extended version of the PyViCare-plugin to get information about my heat pump, including the daily power consumption in Wh but no power value. This is running very well, I am able to create the counter in domoticz and values are delivered to it. Now the Problem: Because it's a daily value it starts from 0 (zero) every day at 0:00. The 0 is delivered to the counter, which now has a negative value for today. I tried multiple counter types and sub types but nothing seems to handle this daily reset to zero. I need a counter type that only "runs forward" and adds just the delivered values.

I have no more idea.
Thx, Nak

Re: ViCare-domoticz plugin - Counter-Problem

Posted: Wednesday 26 February 2025 20:06
by waltervl
Your heatpump does not supply a total running Wh counter? Only a daily Wh counter?
Then your plugin needs to remember the Domoticz counter value at time 00:01 and add the heatpump value to it during the day. Do not update at 00.00 as at that time the Domoticz database will be reset.