<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>stimmt 😄
      <br>
      <br>
      jetzt hauts hin
      <br>
      <br>
      vielen Dank!!!!
      <br>
      <br>
      ich frage mich nur, warum es bei der Gesammtleistung aber doch so
      funktioniert, wie von mir - mit Zählerstände und aggmode auf max -
      verwendet?<br>
    </p>
    <p><img src="cid:part1.9GEwoCdz.iur5BtmK@magenta.de" alt=""></p>
    <p><br>
    </p>
    <div class="moz-cite-prefix">Am 12.11.2022 um 21:45 schrieb Tobias
      Baumann:<br>
    </div>
    <blockquote type="cite"
      cite="mid:6df30495-cdd0-8d84-2bad-12a1e9af8220@o2online.de">moin
      <br>
      <br>
      <br>
      Kurzer Nachtrag
      <br>
      <br>
      <br>
      auch in der Confi
      <br>
      <br>
      ist AggMode mit "max" falsch dort besser "avg"
      <br>
      <br>
      Am 12.11.2022 um 21:42 schrieb Tobias Baumann:
      <br>
      <blockquote type="cite">
        <br>
        Moin
        <br>
        <br>
        <br>
        Wie Markus schon sagte kanal auch als Leistung einstellen
        <br>
        <br>
        etwa so
        <br>
        <br>
        <br>
        Titel     Leistung L1
        <br>
        Typ     powersensor
        <br>
        UUID
        <br>
        Öffentlich     ja
        <br>
        Aktiv     ja
        <br>
        Farbe     #fff9c4
        <br>
        Stil     Linien
        <br>
        Füllgrad     0
        <br>
        Linienstil     Solide
        <br>
        Achse     auto
        <br>
        <br>
        und kein Faktor bei 1/kwh ist falsch
        <br>
        <br>
        <br>
        <br>
        Am 12.11.2022 um 21:38 schrieb Frank Richter:
        <br>
        <blockquote type="cite">Hi Markus,
          <br>
          <br>
          das sind Leistungswerte, also musst du im Frontend den Kanal
          auch so anlegen.
          <br>
          <br>
          Grüße
          <br>
          Frank
          <br>
          <br>
          Markus Josef <a class="moz-txt-link-rfc2396E" href="mailto:josef@magenta.de"><josef@magenta.de></a> schrieb am Sa., 12. Nov.
          2022, 20:32:
          <br>
          <br>
              Hallo,
          <br>
          <br>
              ich würde gerne die Verbrauchswerte der 3 Phasen meines
          <br>
              Energiezählers (L1,L2 +L3) separat erfassen.
          <br>
              Die Gesamtwerte werden korrekt angezeigt, die Config dazu
          sieht so
          <br>
              aus:
          <br>
          <br>
               // D0, IR Lesekopf, Energie gesamt
          <br>
                          {
          <br>
                           "enabled": true,
          <br>
                           "allowskip": false,
          <br>
                           "interval": -1,
          <br>
                           "aggtime": 1,
          <br>
                           "aggfixedinterval": true,
          <br>
                           "channels": [
          <br>
                                         {
          <br>
                                         "api": "volkszaehler",
          <br>
                                         "uuid":
          <br>
              "51d14a80-aa56-11e9-841e-b5a047dc7228",
          <br>
              *"identifier": "1-0:1.8.0",*
          <br>
                                         "middleware":
          <br>
              <a class="moz-txt-link-rfc2396E" href="http://localhost/middleware.php">"http://localhost/middleware.php"</a>
          <a class="moz-txt-link-rfc2396E" href="http://localhost/middleware.php"><http://localhost/middleware.php></a>,
          <br>
                                         "aggmode": "max",
          <br>
                                         "duplicates": 0
          <br>
                                         },
          <br>
          <br>
              das funktioniert wie gesagt seit Jahren einwandfrei.
          <br>
          <br>
              Nun habe ich 3 Channels dazu geschrieben - für L1 sieht
          die z.B.
          <br>
              so aus:
          <br>
          <br>
              {
          <br>
                                         "api": "volkszaehler",
          <br>
                                         "uuid":
          <br>
              "9776b980-62af-11ed-a3f3-6d2b22de25cb",
          <br>
              *"identifier": "1-0:21.7.0",*
          <br>
                                         "middleware":
          <br>
              <a class="moz-txt-link-rfc2396E" href="http://localhost/middleware.php">"http://localhost/middleware.php"</a>
          <a class="moz-txt-link-rfc2396E" href="http://localhost/middleware.php"><http://localhost/middleware.php></a>,
          <br>
                                         "aggmode": "max",
          <br>
                                         "duplicates": 0
          <br>
          <br>
              im vzlogger.log sieht es so aus:
          <br>
          <br>
              [Nov 12 18:36:07][d0]   DEBUG OBIS_CODE byte
          <br>
               hex= A
          <br>
              [Nov 12 18:36:07][d0]   Read package with 8 tuples
          (vendor=ESY,
          <br>
              baudrate=5, identification=Q3DA1004 V3.04)
          <br>
              [Nov 12 18:36:07][mtr3] Got 8 new readings from meter:
          <br>
              [Nov 12 18:36:07][mtr3] Reading:
          <br>
              id=1-0:0.0.0*255/ObisIdentifier:1-0:0.0.0*255
          <br>
              value=273160184112.00 ts=1668274566835
          <br>
              [Nov 12 18:36:07][mtr3] Reading:
          <br>
              id=*1-0:1.8.0**255/ObisIdentifier:1-0:1.8.0*255
          value=*22832.63*
          <br>
              ts=1668274566869
          <br>
              [Nov 12 18:36:07][mtr3] Reading:
          <br>
              id=*1-0:21.7.0**255/ObisIdentifier:1-0:21.7.0*255
          value=*113.29
          <br>
              *ts=1668274566902
          <br>
              [Nov 12 18:36:07][mtr3] Reading:
          <br>
              id=1-0:41.7.0*255/ObisIdentifier:1-0:41.7.0*255
          value=76.21
          <br>
              ts=1668274566935
          <br>
              [Nov 12 18:36:07][mtr3] Reading:
          <br>
              id=1-0:61.7.0*255/ObisIdentifier:1-0:61.7.0*255
          value=174.96
          <br>
              ts=1668274566961
          <br>
              [Nov 12 18:36:07][mtr3] Reading:
          <br>
              id=1-0:1.7.0*255/ObisIdentifier:1-0:1.7.0*255 value=364.46
          <br>
              ts=1668274566993
          <br>
              [Nov 12 18:36:07][mtr3] Reading:
          <br>
              id=1-0:96.5.5*255/ObisIdentifier:1-0:96.5.5*255
          value=80.00
          <br>
              ts=1668274567011
          <br>
              [Nov 12 18:36:07][mtr3] Reading:
          <br>
              id=0-0:96.1.255*255/ObisIdentifier:0-0:96.1.255*255
          value=1.00
          <br>
              ts=1668274567053
          <br>
              [Nov 12 18:36:07][chn3] Adding reading to queue
          (value=*22832.63*
          <br>
              ts=1668274566869)
          <br>
              [Nov 12 18:36:07][chn4] Adding reading to queue
          (value=*113.29*
          <br>
              ts=1668274566902)
          <br>
              [Nov 12 18:36:07][MAX]  22832.634359 @ 1668274566869
          <br>
              [Nov 12 18:36:07][MAX]  RESULT 22832.634359 @
          1668274566869
          <br>
              [Nov 12 18:36:07][chn3] ==> number of tuples: 1
          <br>
              [Nov 12 18:36:07][chn3] compare: 1668274564000
          1668274566000
          <br>
              [Nov 12 18:36:07][chn3] copied 1/1 values for middleware
          transmission
          <br>
              [Nov 12 18:36:07][chn3] JSON request body: [ [
          1668274566000,
          <br>
              22832.634359399999 ] ]
          <br>
              [Nov 12 18:36:07][chn3] CURL: Expire in 0 ms for 6
          (transfer
          <br>
              0xb4506a30)
          <br>
              [Nov 12 18:36:07][chn3] CURL: Expire in 30000 ms for 8
          (transfer
          <br>
              0xb4506a30)
          <br>
              [Nov 12 18:36:07][chn3] CURL: Found bundle for host
          localhost:
          <br>
              0x921db8 [can pipeline]
          <br>
              [Nov 12 18:36:07][chn3] CURL: Could pipeline, but not
          asked to!
          <br>
              [Nov 12 18:36:07][chn3] CURL: Re-using existing
          connection! (#3)
          <br>
              with host localhost
          <br>
              [Nov 12 18:36:07][chn3] CURL: Connected to localhost (::1)
          port 80
          <br>
              (#3)
          <br>
              [Nov 12 18:36:07][MAX]  113.290000 @ 1668274566902
          <br>
              [Nov 12 18:36:07][MAX]  RESULT 113.290000 @ 1668274566902
          <br>
              [Nov 12 18:36:07][chn3] CURL: Expire in 0 ms for 6
          (transfer
          <br>
              0xb4506a30)
          <br>
              [Nov 12 18:36:07][chn4] ==> number of tuples: 1
          <br>
          <br>
              Im Frontend werden aber völlig unrealistische Werte für L1
          angezeigt:
          <br>
          <br>
              z.B: -1.6MW,  612kW oder ähnlich - sogar neg. Werte
          <br>
          <br>
              woran kann das liegen?
          <br>
          <br>
              Liebe Grüße
          <br>
              Markus
          <br>
          <br>
          <br>
        </blockquote>
        <br>
      </blockquote>
      <br>
    </blockquote>
  </body>
</html>