Energy read "computed" or "from device"

rmbrmb
Posts: 11
Joined: Monday 05 December 2016 10:05
Target OS: Raspberry Pi
Domoticz version: Latest
Location: Netherlands
Contact:

Energy read "computed" or "from device"

Postby rmbrmb » Thursday 22 December 2016 17:56

Hi,

Can someone explain me the difference between the energy read options "computed" and "from device"?
I have an Inepro DDS-1Y kWh Meter (2000 pulses per kWh) and I have a S0PCM-5 Pulse Counter Module.
The S0PCM-5 Pulse Counter Module port is configured for "Energy" and 2000 pulses per hour.
I doubt if the Watts reading is accurate, so perhaps that is a matter of changing a setting...

Kind regards,
Rene.

Toulon7559
Posts: 364
Joined: Sunday 23 February 2014 18:56
Target OS: Raspberry Pi
Domoticz version: latest
Location: Hengelo(Ov)/NL
Contact:

Re: Energy read "computed" or "from device"

Postby Toulon7559 » Thursday 22 December 2016 18:06

Where do you see those 2 options for energy read?
Set1 = RPI-B+RFXCom433+S0PCM+Linksprite-shield for BMP180/DS18B20/RS485+DDS238ZN1
Set2 = RPI-3+RFLinkGTW+ESP8266s+PWS_WS7000
Common = 2*PVLogger+PWS_TFA_Nexus+KAKUs
=> Energy & Data Management based on Time and on PV&Consumption&Meteo

rmbrmb
Posts: 11
Joined: Monday 05 December 2016 10:05
Target OS: Raspberry Pi
Domoticz version: Latest
Location: Netherlands
Contact:

Re: Energy read "computed" or "from device"

Postby rmbrmb » Thursday 22 December 2016 18:26

Check this screenshot;

Energy-read.png
Energy-read.png (252.13 KiB) Viewed 948 times

rmbrmb
Posts: 11
Joined: Monday 05 December 2016 10:05
Target OS: Raspberry Pi
Domoticz version: Latest
Location: Netherlands
Contact:

Re: Energy read "computed" or "from device"

Postby rmbrmb » Saturday 31 December 2016 10:51

Nobody knows the difference?

Toulon7559
Posts: 364
Joined: Sunday 23 February 2014 18:56
Target OS: Raspberry Pi
Domoticz version: latest
Location: Hengelo(Ov)/NL
Contact:

Re: Energy read "computed" or "from device"

Postby Toulon7559 » Wednesday 18 January 2017 16:49

Cannot remember to have seen that choice when I installed S0PCM for Domoticz.
At this moment in my setup I see that the selection-'dot' is at 'Device', apparently as result of the automatic upgrades of Domoticz-software.
As deduction, in my opinion 'Device' means that Domoticz takes the value as reported by S0PCM.

The firmware of S0PCM has been upgraded since the time I installed it, and recently I also went to version 5.
I vaguely remember to have heard that in S0PCM some extra features have been added which can optionally be called by Domoticz.
The wiki is not uptodate for explanation on that choice:
therefore I guess/speculate that 'Computed' means that Domoticz has some hidden computation, in relation to extra information from S0PCM, or there is some other, undocumented feature for the S0PCM-interface ........

Because I also have some questions related to the accuracy of the results out of some channels of S0PCM, for 'try-and-error' I will shift those S0PCM-channels to 'Computed' and will look what happens.
Last edited by Toulon7559 on Sunday 22 January 2017 13:18, edited 1 time in total.
Set1 = RPI-B+RFXCom433+S0PCM+Linksprite-shield for BMP180/DS18B20/RS485+DDS238ZN1
Set2 = RPI-3+RFLinkGTW+ESP8266s+PWS_WS7000
Common = 2*PVLogger+PWS_TFA_Nexus+KAKUs
=> Energy & Data Management based on Time and on PV&Consumption&Meteo

rmbrmb
Posts: 11
Joined: Monday 05 December 2016 10:05
Target OS: Raspberry Pi
Domoticz version: Latest
Location: Netherlands
Contact:

Re: Energy read "computed" or "from device"

Postby rmbrmb » Wednesday 18 January 2017 20:08

How can I check my S0PCM firmware version and is it user-upgradable?
I think in my case selecting "computed" is giving more accurate results, but I am not completely convinced about this.

Toulon7559
Posts: 364
Joined: Sunday 23 February 2014 18:56
Target OS: Raspberry Pi
Domoticz version: latest
Location: Hengelo(Ov)/NL
Contact:

Re: Energy read "computed" or "from device"

Postby Toulon7559 » Thursday 19 January 2017 0:16

(At least at my S0PCModule) the housing of the S0PCM has a sticker showing the firmware-version at delivery.
Is upgrable by user if you have the latest firmware-file with suitable upload-software and instructions.
Set1 = RPI-B+RFXCom433+S0PCM+Linksprite-shield for BMP180/DS18B20/RS485+DDS238ZN1
Set2 = RPI-3+RFLinkGTW+ESP8266s+PWS_WS7000
Common = 2*PVLogger+PWS_TFA_Nexus+KAKUs
=> Energy & Data Management based on Time and on PV&Consumption&Meteo

Toulon7559
Posts: 364
Joined: Sunday 23 February 2014 18:56
Target OS: Raspberry Pi
Domoticz version: latest
Location: Hengelo(Ov)/NL
Contact:

Re: Energy read "computed" or "from device"

Postby Toulon7559 » Thursday 19 January 2017 12:46

:( Result of the short experiment to put the selection at 'Computed':
handling of actual power values seems OK/unchanged, but the related accumulated day-values in Domoticz now stay fixed at 0
Conclusion: still questionmark
Set1 = RPI-B+RFXCom433+S0PCM+Linksprite-shield for BMP180/DS18B20/RS485+DDS238ZN1
Set2 = RPI-3+RFLinkGTW+ESP8266s+PWS_WS7000
Common = 2*PVLogger+PWS_TFA_Nexus+KAKUs
=> Energy & Data Management based on Time and on PV&Consumption&Meteo

gordonb3
Posts: 446
Joined: Friday 22 January 2016 11:15
Target OS: Linux
Domoticz version: custom
Location: The Netherlands
Contact:

Re: Energy read "computed" or "from device"

Postby gordonb3 » Thursday 19 January 2017 16:58

It's a pulse counter. All values will be computed because to get to Wattage you need to divide by the time frame (which is 10 seconds for the S0PCM).

The difference between the two selectable modes is likely that the day value is either the result of Domoticz accumulating the number of pulses since midnight, or Domoticz subtracting a known total value at midnight from the total reported by the device (number of pulses since the last start-up). I suspect the latter will be the 'Computed' mode and for this to work Domoticz will have to have registered that midnight total. The day value staying at zero during your short experiment may either come from Domoticz not having registered that value as it has no use in the previous selected mode, or it contains a higher value than the device is currently reporting (reset?) and the result is a negative value. My guess is that if you restart your experiment a little before midnight you'll see it start recording once midnight is passed.
Excito B3 running Gentoo Linux, P1, Rfxtrx433 to read and control TFA, KaKu, EvoHome RFG100
Custom patched Domoticz v3.8000

Toulon7559
Posts: 364
Joined: Sunday 23 February 2014 18:56
Target OS: Raspberry Pi
Domoticz version: latest
Location: Hengelo(Ov)/NL
Contact:

Re: Energy read "computed" or "from device"

Postby Toulon7559 » Thursday 19 January 2017 23:00

;-) We make another testrun starting this evening with all 5 channels of the S0PCM put a 'Computed':
2 channels are for Consumption (and according to gordonb3's assumptions should start counting immediately after midnight, providing me with some values at breakfast)
3 channels are for Generation (and at breakfast to be expected still at 0, coming up later in the morning).
Set1 = RPI-B+RFXCom433+S0PCM+Linksprite-shield for BMP180/DS18B20/RS485+DDS238ZN1
Set2 = RPI-3+RFLinkGTW+ESP8266s+PWS_WS7000
Common = 2*PVLogger+PWS_TFA_Nexus+KAKUs
=> Energy & Data Management based on Time and on PV&Consumption&Meteo

Toulon7559
Posts: 364
Joined: Sunday 23 February 2014 18:56
Target OS: Raspberry Pi
Domoticz version: latest
Location: Hengelo(Ov)/NL
Contact:

Re: Energy read "computed" or "from device"

Postby Toulon7559 » Saturday 21 January 2017 22:59

In my setup the result of the test over last 2 days is clear:
    5 of 5 S0PCM-channels report a dayenergy-value of 0

First conclusion: put the setting on 'From Device', because then at least you get values.
Questionmark remaining related to meaning of other setting 'Computed'.
Set1 = RPI-B+RFXCom433+S0PCM+Linksprite-shield for BMP180/DS18B20/RS485+DDS238ZN1
Set2 = RPI-3+RFLinkGTW+ESP8266s+PWS_WS7000
Common = 2*PVLogger+PWS_TFA_Nexus+KAKUs
=> Energy & Data Management based on Time and on PV&Consumption&Meteo

juankar
Posts: 496
Joined: Saturday 30 August 2014 20:20
Target OS: Raspberry Pi
Domoticz version:
Location: Spain
Contact:

Re: Energy read "computed" or "from device"

Postby juankar » Monday 23 January 2017 2:57

Difference between Computed and from device is simple:
Computed:
Domoticz compute the energy by subtracting values sent by device.

Domoticz computes the energy by multiplying time and power,
for instance: 5 watts lamp light on for 2 hours, energy consumption is 5x2 = 10 wh = 0,010 kwh

This is useful if device doesn't send energy consumption or if device precision energy meter is too low.
In last example if device reads energy with a precision of 0,1 kwh, it doesn't send the consumption of the lamp until it reach a value of 0,1 kwh. But with computed method you can read the energy consumption every minute.

gordonb3
Posts: 446
Joined: Friday 22 January 2016 11:15
Target OS: Linux
Domoticz version: custom
Location: The Netherlands
Contact:

Re: Energy read "computed" or "from device"

Postby gordonb3 » Monday 23 January 2017 11:21

Makes sense, yet that doesn't explain why the accumulated day values stay at zero.

I'm actually a bit puzzled by this device. As this only counts up from any random starting time, shouldn't one be able to enter some kind of offset to let Domoticz display the same value as the device that generates the pulses?
Excito B3 running Gentoo Linux, P1, Rfxtrx433 to read and control TFA, KaKu, EvoHome RFG100
Custom patched Domoticz v3.8000

Toulon7559
Posts: 364
Joined: Sunday 23 February 2014 18:56
Target OS: Raspberry Pi
Domoticz version: latest
Location: Hengelo(Ov)/NL
Contact:

Re: Energy read "computed" or "from device"

Postby Toulon7559 » Monday 23 January 2017 17:59

In my setup the S0PCM reports for all channels an actual power which seems reasonably correct
[for the 3 'generation-channels' I have comparison-info from my K8055-board+software: see http://www.vannwnhzn.nl/grafiek.jpg ].
That makes me wonder, because it demonstrates that the S0PCM-calculations are rather accurate.
And more surprising is that these actual power values are shown regardless whether 'Computed' or 'From Device' is selected.
Therefore it seems that juankar's explanation is not true, but what is then the explanation?
Set1 = RPI-B+RFXCom433+S0PCM+Linksprite-shield for BMP180/DS18B20/RS485+DDS238ZN1
Set2 = RPI-3+RFLinkGTW+ESP8266s+PWS_WS7000
Common = 2*PVLogger+PWS_TFA_Nexus+KAKUs
=> Energy & Data Management based on Time and on PV&Consumption&Meteo

juankar
Posts: 496
Joined: Saturday 30 August 2014 20:20
Target OS: Raspberry Pi
Domoticz version:
Location: Spain
Contact:

Re: Energy read "computed" or "from device"

Postby juankar » Monday 23 January 2017 18:01

I have using this setting for Qubino switches, whose energy meter has 0,1 kwh precision, and it works fine as computed. I don't use in production.


Return to “Meters”

Who is online

Users browsing this forum: No registered users and 2 guests