[vz-users] configuration to read MT681 / vzlogger webpage shows different values than measured
Rupert Schöttler
rupert.schoettler at gmx.de
Fr Apr 16 10:24:50 CEST 2021
Hello Tilman,
the basic concept of Volkszähler is to convert meter readings of energy
(kWh) to power (W) for display. So there is no need to log and display
it twice. You should get familiar to this by reading the wiki or the ML
archive.
There are two other issues:
Am 16.04.21 um 09:31 schrieb Tilman Glötzner:
> many thanks for the advice. I changed it accordingly. But still, the
> values in the plot are inconsistent. The values in the section
> "Kanäle" are partially consistent with the meter, i.e. the values
> "Verbrauch" and "Gesamt". So 2 kwh were consumed yesterday, and 24 kwh
> fed into the grid. Looking at the plot, the unit "kw" is incorrect.
> The unit should be "kwh" or "Wh". The values itself seem to be also
> inconsistent. For instance, at around 5 h in the morning, 1 kwh was
> taken from the grid -- not 5 kwh. The solar cells fed up to 5 kwh into
> the grid, not 80 kw.
>
> On 15.04.21 23:44, Maik Weidemann wrote:
>> all values under the identifier 1-0:1.8.x or 1-0:2.8.x are counter, so
>> you must chose the type "Zählerstände" for this channels .
>>
>>
>> Am 15.04.21 um 12:13 schrieb Tilman Glötzner:
>>>
>>> Here the log from vzlogger:
>>>
>>> [Apr 15 08:18:07][mtr0] Got 6 new readings from meter:
>>> [Apr 15 08:18:07][mtr0] Reading:
>>> id=1-0:1.8.0*255/ObisIdentifier:1-0:1.8.0*255 value=33000.00
>>> ts=1618471087033
>>> [Apr 15 08:18:07][mtr0] Reading:
>>> id=1-0:1.8.1*255/ObisIdentifier:1-0:1.8.1*255 value=33000.00
>>> ts=1618471087033
>>> [Apr 15 08:18:07][mtr0] Reading:
>>> id=1-0:1.8.2*255/ObisIdentifier:1-0:1.8.2*255 value=0.00
>>> ts=1618471087033
>>> [Apr 15 08:18:07][mtr0] Reading:
>>> id=1-0:2.8.0*255/ObisIdentifier:1-0:2.8.0*255 value=168000.00
>>> ts=1618471087033
>>> [Apr 15 08:18:07][mtr0] Reading:
>>> id=1-0:2.8.1*255/ObisIdentifier:1-0:2.8.1*255 value=168000.00
>>> ts=1618471087033
>>> [Apr 15 08:18:07][mtr0] Reading:
>>> id=1-0:2.8.2*255/ObisIdentifier:1-0:2.8.2*255 value=0.00
>>> ts=1618471087033
The values provided by the meter are in coarse resolution, kWh only. To
get it finer you probably have ask your grid or meter operator for a
PIN. Without finer resolution the graphs are almost useless because you
only see peaks once in a while (when Wh changes from 33000.00 to
34000.00, e.g.), especially when you log in high frequency (aggtime: -1).
>>>
>>> And here the config of vzlogger
>>>
>>> {
>>> "retry" : 3,
>>> "daemon": true,
>>> "verbosity" : 15,
>>> "log" : "/var/log/vzlogger.log",
>>>
>>> "local" : {
>>> "enabled" : false,
>>> "port" : 8080,
>>> "index" : true,
>>> "timeout" : 30,
>>> "buffer" : 600
>>> },
>>>
>>> "meters" : [
>>> {
>>> "enabled" : true,
>>> "device" : "/dev/ttyUSB0",
>>> "protocol" : "sml",
>>> "parity" : "8N1",
>>> "baudrate" : 9600,
>>> "aggtime" : -1,
>>> "aggfixedinterval" : true,
>>> "channels": [{
>>> "uuid" : "xx",
>>> "middleware" : "http://localhost/middleware.php",
>>> "identifier" : "1-0:2.8.0", /* energy provided to grid */
>>> "aggmode" : "MAX"
>>> }, {
>>> "uuid" : "xx",
>>> "middleware" : "http://localhost/middleware.php",
>>> "identifier" : "1-0:1.8.0", /* energy taken from grid */
>>> "aggmode" : "MAX"
>>> }, {
>>> "uuid" : "xx",
>>> "middleware" : "http://localhost/middleware.php",
>>> "identifier" : "1-0:2.8.0", /* energy provided to grid */
>>> "aggmode" : "MAX"
>>> }, {
>>> "uuid" : "xx",
>>> "middleware" : "http://localhost/middleware.php",
>>> "identifier" : "1-0:1.8.0", /* energy taken from grid */
>>> "aggmode" : "MAX"
>>> }]
>>> }
>>> ]
>>> }
>>>
What is your intention to log each identifier twice? As mentioned above,
the conversion from energy to power is done automatically by the
middleware software as long as you declare the channel as
"Zählerstände", as written by Mike.
BTW, this is a German ML, so if your native language is German (as I
suspect from your last name) you are welcome to write in German.
Best regard
Rupert
-------------- nächster Teil --------------
Ein Dateianhang mit Binärdaten wurde abgetrennt...
Dateiname : smime.p7s
Dateityp : application/pkcs7-signature
Dateigröße : 5996 bytes
Beschreibung: S/MIME Cryptographic Signature
URL : <http://demo.volkszaehler.org/pipermail/volkszaehler-users/attachments/20210416/ab006115/attachment.bin>
Mehr Informationen über die Mailingliste volkszaehler-users