Search found 13 matches

by freekdk
Saturday 21 September 2024 18:57
Forum: Other questions and discussions
Topic: Spike in Enphase data
Replies: 19
Views: 1146

Re: Spike in Enphase data

I did have the same type of problem. Because I started collecting data from Enphase right after the installation, the begin value of the Counter in Meter_Calendar starts at 1 (made it so). I made the data in Value and Counter consistent, so the counter is value+previous-counter. The last counter (of ...
by freekdk
Friday 20 September 2024 0:01
Forum: Other questions and discussions
Topic: How is value for kWh for specific month calculated?
Replies: 14
Views: 683

Re: How is value for kWh for specific month calculated?

Would stopping Domoticz, change these values in the database with sqlite3, and restarting Domoticz work? Preferred way is: stop Domoticz, backup database, do changes with sqlite3 and restart Domoticz. In case of problem: stop Domoticz, restore database (copy database backup over corrupted/not ...
by freekdk
Saturday 07 September 2024 12:10
Forum: Other questions and discussions
Topic: How is value for kWh for specific month calculated?
Replies: 14
Views: 683

Re: How is value for kWh for specific month calculated?

It is not advised to update the meter table directly, for example by sqlite3. If you want to update a counter to a corrected value it is better to use the domoticz.devices().updateCounter() function in a small separate dzVents script. In that way you make sure the value is updated in the meter ...
by freekdk
Friday 06 September 2024 12:33
Forum: Other questions and discussions
Topic: How is value for kWh for specific month calculated?
Replies: 14
Views: 683

Re: How is value for kWh for specific month calculated?

I have wrong values in table meter in the second column (=total Wh produced). All these values need to be subtracted by a certain value. When I change this value in the right value at the last date/time-value I would expect that the measured Wh in the current 5 minutes would be added to this value ...
by freekdk
Wednesday 04 September 2024 19:00
Forum: Other questions and discussions
Topic: How is value for kWh for specific month calculated?
Replies: 14
Views: 683

Re: How is value for kWh for specific month calculated?

Thanks that did solve my problem.
by freekdk
Wednesday 04 September 2024 15:57
Forum: Other questions and discussions
Topic: How is value for kWh for specific month calculated?
Replies: 14
Views: 683

How is value for kWh for specific month calculated?

I have normal values in august this year for a set of PV panels. However when I look at the graph for the months there is a very high value for that month. I looked in domoticz.db and can't find the table where such a value is stored. I would expect this value calculated from the meters_calendar ...
by freekdk
Thursday 11 February 2021 16:42
Forum: Python
Topic: Plugwise circle / stealth - plugin
Replies: 15
Views: 2287

Re: Plugwise circle / stealth - plugin

The hack with the file to store the previous counter value is not needed.
Devices[unitID].sValue contains the previous stored sValue, which contains two numbers: Watt and counter.
So Devices[unitID].sValue.split(';')[1] gives you the previous value of the total Wh used/produced.
by freekdk
Wednesday 10 February 2021 18:16
Forum: Python
Topic: Plugwise circle / stealth - plugin
Replies: 15
Views: 2287

Re: Plugwise circle / stealth - plugin

I managed to change the code so used/produced energy is accounted for. Could not get previous counter values from the database, but I use a file for each device to keep track of the counter value. I have no idea how to upload the new source.
by freekdk
Wednesday 10 February 2021 18:10
Forum: Installation, Compiling, Permissions, Security and Starting
Topic: Plugwise Stretch does not show energy used/produced
Replies: 1
Views: 226

Re: Plugwise Stretch does not show energy used/produced

Please IGNORE. See Python for further discussion.
by freekdk
Monday 08 February 2021 12:09
Forum: Python
Topic: Plugwise circle / stealth - plugin
Replies: 15
Views: 2287

Re: Plugwise circle / stealth - plugin

Just found out that in the line:

Code: Select all

self.updateDevice(deviceUnitId, 0, str(valDouble)+';0', True) # force update...
one needs to replace the zero in ";0" by the value of the used/produced energy in Wh.
Will develop the necessary python code to show the use/production during the day.
by freekdk
Sunday 07 February 2021 19:10
Forum: Python
Topic: Plugwise circle / stealth - plugin
Replies: 15
Views: 2287

Re: Plugwise circle / stealth - plugin

I have a combined bash script and pearl script to get the values from the smile and calculate 5 minutes W averages. The smile has about each 8 seconds a new value for used and produced Watt. So averaging this during 5 minutes and multiplying this by 5/60=1/12 gives the produced/consumed Wh. One can ...
by freekdk
Saturday 06 February 2021 18:56
Forum: Installation, Compiling, Permissions, Security and Starting
Topic: Plugwise Stretch does not show energy used/produced
Replies: 1
Views: 226

Plugwise Stretch does not show energy used/produced

I installed the plugin Plugwise Stretch and got it up and running. When I look at the widget on the Dashboard or Others, it shows the Watts when there is use or production. I my case mostly production. My Stealth is in the circuit of my solarpanels. However I also see Today, but the value is always ...
by freekdk
Saturday 06 February 2021 17:04
Forum: Installation, Compiling, Permissions, Security and Starting
Topic: Can't get plugwise Stretch plugin to work on Synology
Replies: 9
Views: 697

Re: Can't get plugwise Stretch plugin to work on Synology

I use this plugin on an openSUSE Leap 15.2 Raspberry Pi 4B system and had the same type of error messages. The reason was that domoticz runs as user domotics and group domoticz. I assume that is the same on Synology. Changing file protection on domoticz files to be owned by root does not change the ...