[OBIS V2] - Jetzt auch mit SML-Unterstützung

Begonnen von Icinger, 08 April 2016, 19:54:44

Vorheriges Thema - Nächstes Thema

TeleDet

Das wäre Super !!!

Bei dem Stromzähler handelt es sich übrigens um einen: EFR SGM-C4-4A920L

Vielen Dank schon mal für Deine Bemühung
und Gruß TeleDet  ;)

gvzdus

Ich habe da jetzt eingebaut, alle möglichen Control-Characters zu entfernen.
Ist morgen per Update verfügbar, oder Du editierst in 47_OBIS.pm manuell in Zeile 413:


412                         $str=~s/([A-F0-9]{2})/chr(hex($1))/eg;
413                         $str=~s/[[:cntrl:]]//g;
414                         $str=~s/[^!-~\s\r\n\t]//g;
415           }

TeleDet

@gvzdus

vielen lieben Dank !!! Ich habe es in meine 47_OBIS.pm übernommen und es hat super funktioniert. :)

Eine Bitte hätte ich aber trotzdem noch  ::)  , könntest du bei der Gelegenheit eventuell den Loglevel für den Hinweis in Zeile (jetzt dann neu) 385 von 3 auf 4 oder 5 ändern?

385 Log3 $hash, 3, "2nd TL-byte != 0, reserved according spec";

bekomme den Hinweis im gleichen Rhythmus wie vorher die Fehlermeldungen.  ???

Dank im Voraus ... TeleDet

lichtimc

#1368
Ist es mit diesem Modul möglich den Landis+Gyr e450 mittels MBUS RJ11 auszulesen?
Ich habs mal soweit hinbekommen, dass ich mittels minicom eine ordentliche Ausgabe bekomme: (2 Pakete im Abstand von ca. 10 Sekunden)
7e a0 8b ce ff 03 13 ee e1 e6 e7 00 e0 40 00 01 00 00 77 db 08 4c 47 5a 67 73 78 1f d0 82 01 03 30 00 00 85 31 32 2f 8f a3 e0 6f ac 64 bf 81 ce dd 62 c8 f9 3c 45 da e4 de 5e 16 2a 8d 8f 37 58 fb e4 21 ef fb 8c a4 e8 93 b0 5e b7 42 53 f2 ec 23 53 bc be 13 4b eb 5f 3d bf 21 a3 1b 3c 6e 8c 53 32 0a 66 6e 17 32 1d 24 48 cd be 7c ff db 03 a1 92 5f 8a 98 18 b1 c1 d8 81 ca d5 dc a5 51 77 66 d4 8b 85 ff 49 c4 a3 f1 d5 7e c3 7e 7e a0 8b ce ff 03 13 ee e1 e0 40 00 02 00 00 7a 84 fd c2 08 94 07 69 83 cb 4e c3 81 e0 5e c8 c8 a4 80 24 57 41 cf dc 23 cd e3 0b 2a 51 50 4b db 94 5e 89 d3 00 f4 c1 78 7a f2 c4 f8 ad 1f 24 0c 69 fd 36 3e 49 bc 03 bb 28 c9 dc 32 3c 4b 7f a4 62 32 61 83 e4 84 4f 6e e6 cf c9 27 a4 92 ae 3d 17 24 0b c3 29 aa b5 f2 3f f3 37 e6 3c 4f e3 6c b6 ab 17 04 52 e2 4f 47 0e f5 6e 58 e9 e0 47 b0 92 0c 2b c9 92 63 2a fa 27 c1 84 58 7e 7e a0 30 ce ff 03 13 86 f8 e0 c0 00 03 00 00 1f 2d 52 82 c9 64 fe 26 f7 8a 0d bc 15 4d 52 18 96 04 4f 58 23 67 3f d8 44 e7 d3 ca ba 3a 5f 11 d6 d1 7e
7e a0 8b ce ff 03 13 ee e1 e6 e7 00 e0 40 00 01 00 00 77 db 08 4c 47 5a 67 73 78 1f d0 82 01 03 30 00 00 85 3a 4a 19 7a 70 ce b6 8c 89 9d 03 81 1e d9 a9 33 e1 00 12 30 26 1c 7d 6f c2 fe df b8 37 d5 d7 84 92 75 f8 31 bf 77 af c2 96 63 e8 95 73 0b 8b d9 67 f4 6a a6 e6 37 c9 36 f2 61 37 78 49 25 fe a6 8d d7 96 15 4e b0 22 4a 26 06 d2 78 a5 37 5e 5d 9b 51 44 b2 19 ea c9 93 47 e8 6e 2b c1 74 9a c6 5c 5f 4e 6e 12 a8 24 98 7e 7e a0 8b ce ff 03 13 ee e1 e0 40 00 02 00 00 7a 80 fe 5e 0e 8b 9c f6 9a 2a 70 78 c7 29 c8 93 30 03 ec f0 f1 a0 a6 d1 e3 d5 ba e3 e7 50 d3 01 c8 41 9d 10 75 fc 2d e8 e4 b7 89 95 63 9e 9a bc 96 fe 79 f4 ac 28 e6 ca ae 58 ce a6 01 ed 1f d5 d0 6d da 9e 2f c4 6c 3c 13 63 df 6a dc de 47 e4 67 81 f3 66 d5 69 0c 23 1e 6f 67 b8 ba 4b 81 bb e4 a9 f8 ed af bb 2f 77 6f 3b 08 7a b5 81 1a c1 b6 b2 8d 5b 6d 65 ff 32 d5 a1 df 2d 08 7e 7e a0 30 ce ff 03 13 86 f8 e0 c0 00 03 00 00 1f 44 59 19 56 57 67 e4 c0 a6 ad 67 49 d3 32 0a af ab a4 b4 14 af 9a 96 e2 72 9e 3c 60 46 3c 75 8b 23 7e


Stromzähler ist von Energie Steiermark, MBUS-Protokoll mit USB-MBUS-Slave Device, Serial Port Config: 8N1
Kommunikation ist verschlüsselt, Global Unicast Encryption Key (GUEK), Global Authentication Key (GAK) habe ich.

gvzdus

@Teledet: Ich würde vorschlagen, dass Du den Loglevel für das OBIS-Device einfach auf 2 stellst. Ich kann mal bei Gelegenheit gucken, ob da wirklich die Spec verletzt wird, es etwas Neueres gibt, oder was die Meldung verursacht. Aber sie z.B. nur einmal je Neustart zu bringen, wäre m.E. falsch.

@lichtimc: Leider nein. Ich kann mich dunkel an eine Diskussion erinnern, wo jemand schon etwas geforscht hatte, finde sie aber im Moment nicht wieder. Ihr verwendet in AT ein ganz anderes Protokoll (dafür seid Ihr aber auch Faktor 100 weiter bei SmGWs :-) ).

TeleDet

Hallo gvzdus,

danke für die Info und deine Bemühung  :)

Werde das so übernehmen. Scheinbar verursacht es bei mir keinerlei
Einschränkungen oder Probleme, daher setze ich das OBIS-Device bei mir auf  Loglevel 2. ;)

Gruß TeleDet

Wiesel78

#1371
Hallo zusammen,
erst einmal vielen Dank gvzdus für die Entwicklung dieses tollen OBIS Moduls. Als FHEM-Anfänger komme ich bei einer Sache nicht weiter. Vieleicht kann mir ja jemand einen Tip geben.
Ich konnte meinen Zähler EMH DMTZ-XC erfolgreich in FHEM einbinden. Leider wird der für mich wichtigste Wert "Momentanwert Wirkleistung gesamt" (OBIS 1.25) von diesem Zähler nicht übermittelt.
Aber es werden Spannung, Stromstärke und der Wirkleistungsfaktor für alle drei Phasen ausgegeben. Somit könnte ich die Wirkleistung berechnen.

In den Readings finde ich auch die
Spannungen (OBIS 32.25 für L1, 52.25 für L2 und 72.25 für L3) und die
Stromstärken (OBIS 31.25 für L1, 51.25 für L2 und 71.25 für L3)
Allerdings werden die Wirkleistunsfaktoren (OBIS 33.25 für L1, 53.25 für L2, 73.25 für L3 und 13.25 für "Leistungsfaktor gesamt") nicht angezeigt.

Im Log (siehe unten) ist aber zu erkennen, dass der Zähler die Werte ausspuckt.

Wie erhalte ich diese fehlenden Werte als Reading angezeigt? Mit dem Attribut "Channels" habe ich es schon versucht. Hat nicht geklappt.

Internals:
   CFGFN     
   DEF        /dev/ttyAMA0@300,7,E,1 VSM102
   DeviceName /dev/ttyAMA0@300,7,E,1
   FD         10
   FUUID      61ead775-f33f-b7db-e8ee-267c6e83230898a1
   MeterType  VSM102
   NAME       Stromzaehler
   NR         178
   PARTIAL   
   STATE      opened
   TYPE       OBIS
   READINGS:
     2022-01-21 23:36:35   0.1.0           66
     2022-01-21 23:36:48   0.1.2.52        201101000000
     2022-01-21 23:36:47   0.1.2.53        201201000000
     2022-01-21 23:36:46   0.1.2.54        210101000000
     2022-01-21 23:36:45   0.1.2.55        210201000000
     2022-01-21 23:36:44   0.1.2.56        210301000000
     2022-01-21 23:36:43   0.1.2.57        1210401000000
     2022-01-21 23:36:43   0.1.2.58        1210501000000
     2022-01-21 23:36:42   0.1.2.59        1210601000000
     2022-01-21 23:36:41   0.1.2.60        1210701000000
     2022-01-21 23:36:40   0.1.2.61        1210801000000
     2022-01-21 23:36:39   0.1.2.62        1210901000000
     2022-01-21 23:36:39   0.1.2.63        1211001000000
     2022-01-21 23:36:38   0.1.2.64        211101000000
     2022-01-21 23:36:37   0.1.2.65        211201000000
     2022-01-21 23:36:36   0.1.2.66        220101000000
     2022-01-21 23:36:48   0.2.0           23100000
     2022-01-21 23:36:49   0.2.1.01        12070444
     2022-01-21 23:36:50   0.2.1.50        9092200
     2022-01-21 23:36:50   0.2.2           8
     2022-01-21 23:36:51   0.9.1           233139
     2022-01-21 23:36:51   0.9.2           220121
     2022-01-21 23:36:52   1.8.1           897.6
     2022-01-21 23:35:55   1.8.2           15668.3
     2022-01-21 23:36:08   14.25           50.02
     2022-01-21 23:36:09   31.25           4.799
     2022-01-21 23:36:10   32.25           234.55
     2022-01-21 23:36:09   51.25           0.009
     2022-01-21 23:36:11   52.25           234.79
     2022-01-21 23:36:10   71.25           0.008
     2022-01-21 23:36:11   72.25           234.82
     2022-01-21 23:36:14   C.3             0
     2022-01-21 23:36:14   C.4             00A00040
     2022-01-21 23:36:15   C.5             0020F4F0
     2022-01-21 23:36:16   C.52.0          3
     2022-01-21 23:36:16   C.7.0           6
     2022-01-21 23:36:17   C.7.1           1
     2022-01-21 23:36:17   C.7.2           1
     2022-01-21 23:36:18   C.7.3           0
     2022-01-21 23:36:16   C.86.1          0
     2022-01-21 23:36:35   Serial          00-00-00-00
     2022-01-21 23:36:28   Version         EMH4\@01LZQJL0018E
     2022-01-21 16:55:33   state           opened
     2022-01-21 23:35:54   total_consumption_Ch1.52 543.4
     2022-01-21 23:35:53   total_consumption_Ch1.53 577.8
     2022-01-21 23:35:53   total_consumption_Ch1.54 636
     2022-01-21 23:35:52   total_consumption_Ch1.55 703.8
     2022-01-21 23:35:51   total_consumption_Ch1.56 754.6
     2022-01-21 23:35:50   total_consumption_Ch1.57 754.6
     2022-01-21 23:36:59   total_consumption_Ch1.58 754.6
     2022-01-21 23:36:59   total_consumption_Ch1.59 754.6
     2022-01-21 23:36:58   total_consumption_Ch1.60 754.6
     2022-01-21 23:36:57   total_consumption_Ch1.61 754.6
     2022-01-21 23:36:56   total_consumption_Ch1.62 754.6
     2022-01-21 23:36:55   total_consumption_Ch1.63 754.6
     2022-01-21 23:36:54   total_consumption_Ch1.64 754.6
     2022-01-21 23:36:54   total_consumption_Ch1.65 798.6
     2022-01-21 23:36:53   total_consumption_Ch1.66 857.5
     2022-01-21 23:36:08   total_consumption_Ch2.52 11278.7
     2022-01-21 23:36:06   total_consumption_Ch2.53 11607.5
     2022-01-21 23:36:06   total_consumption_Ch2.54 12066.5
     2022-01-21 23:36:05   total_consumption_Ch2.55 12745
     2022-01-21 23:36:04   total_consumption_Ch2.56 13268.2
     2022-01-21 23:36:03   total_consumption_Ch2.57 13702
     2022-01-21 23:36:02   total_consumption_Ch2.58 14034.2
     2022-01-21 23:36:02   total_consumption_Ch2.59 14155.3
     2022-01-21 23:36:01   total_consumption_Ch2.60 14181.8
     2022-01-21 23:36:00   total_consumption_Ch2.61 14193.6
     2022-01-21 23:35:59   total_consumption_Ch2.62 14221.4
     2022-01-21 23:35:58   total_consumption_Ch2.63 14267.8
     2022-01-21 23:35:57   total_consumption_Ch2.64 14435
     2022-01-21 23:35:57   total_consumption_Ch2.65 14803.2
     2022-01-21 23:35:56   total_consumption_Ch2.66 15326.8
   helper:
     BUFFER     1.8.1*57(00
     EoM        0
     LastPacketTime 1642804619.93231
     SPEED      0
     SPEED2     0
     TRIGGERTIME 1642799546.48599
     Channels:
       13.25      Momentanwert Leistungsfaktor gesamt
       33.25      Momentanwert Leistungsfaktor L1
     DEVICES:
       /?!

       70
       000

     RULECACHE:
       0.0.1      Serial
       0.0.2      Serial
       0.0.3      Serial
       0.0.4      Serial
       0.0.5      Serial
       0.0.6      Serial
       0.0.7      Serial
       0.0.8      Serial
       0.0.9      Serial
       0.1.0      unknown
       0.1.2*52   unknown
       0.1.2*53   unknown
       0.1.2*54   unknown
       0.1.2*55   unknown
       0.1.2*56   unknown
       0.1.2*57   unknown
       0.1.2*58   unknown
       0.1.2*59   unknown
       0.1.2*60   unknown
       0.1.2*61   unknown
       0.1.2*62   unknown
       0.1.2*63   unknown
       0.1.2*64   unknown
       0.1.2*65   unknown
       0.1.2*66   unknown
       0.2.0      Channels2
       0.2.1*01   unknown
       0.2.1*50   unknown
       0.2.2      Channels2
       0.9.1      unknown
       0.9.2      unknown
       1.8.1      unknown
       1.8.1*52   Counter
       1.8.1*53   Counter
       1.8.1*54   Counter
       1.8.1*55   Counter
       1.8.1*56   Counter
       1.8.1*57   Counter
       1.8.1*58   Counter
       1.8.1*59   Counter
       1.8.1*60   Counter
       1.8.1*61   Counter
       1.8.1*62   Counter
       1.8.1*63   Counter
       1.8.1*64   Counter
       1.8.1*65   Counter
       1.8.1*66   Counter
       1.8.2      unknown
       1.8.2*52   Counter
       1.8.2*53   Counter
       1.8.2*54   Counter
       1.8.2*55   Counter
       1.8.2*56   Counter
       1.8.2*57   Counter
       1.8.2*58   Counter
       1.8.2*59   Counter
       1.8.2*60   Counter
       1.8.2*61   Counter
       1.8.2*62   Counter
       1.8.2*63   Counter
       1.8.2*64   Counter
       1.8.2*65   Counter
       1.8.2*66   Counter
       14.25      unknown
       31.25      unknown
       32.25      unknown
       51.25      unknown
       52.25      unknown
       71.25      unknown
       72.25      unknown
       C.3        unknown
       C.4        unknown
       C.5        unknown
       C.52.0     unknown
       C.7.0      unknown
       C.7.1      unknown
       C.7.2      unknown
       C.7.3      unknown
       C.86.1     unknown
     directions:
Attributes:
   channels   {"13.25"=>"Momentanwert Leistungsfaktor gesamt","33.25"=>"Momentanwert Leistungsfaktor L1"}
   interval   70
   pollingMode on
   verbose    0


An den entsprechenden Stellen im Log (verbose 5) steht "DevIo_SimpleWrite Stromzaehler: 063030300d0a". Was bedeutet das?

2022.01.21 22:07:14 5: DevIo_SimpleWrite Stromzaehler: 2f3f210d0a
2022.01.21 22:07:14 4: OBIS (Stromzaehler) - Wrote /?!

2022.01.21 22:07:14 5: OBIS (Stromzaehler) - Internal timer set to 2022-01-21 22:08:54
2022.01.21 22:07:15 5: OBIS (Stromzaehler) - Msg-Parse: /EMH4\@01LZQJL0018E
2022.01.21 22:07:15 5: DevIo_SimpleWrite Stromzaehler: 063030300d0a
2022.01.21 22:07:17 5: OBIS (Stromzaehler) - Msg-Parse: 0.0.0(03299851)
2022.01.21 22:07:18 5: OBIS (Stromzaehler) - Msg-Parse: 0.0.1(29400900)
2022.01.21 22:07:18 5: OBIS (Stromzaehler) - Msg 0.0.1(29400900) is of type Serial
2022.01.21 22:07:18 5: OBIS (Stromzaehler) - Msg-Parse: 0.0.2(00267825)
2022.01.21 22:07:18 5: OBIS (Stromzaehler) - Msg 0.0.2(00267825) is of type Serial
2022.01.21 22:07:19 5: OBIS (Stromzaehler) - Msg-Parse: 0.0.3(00000000)
2022.01.21 22:07:19 5: OBIS (Stromzaehler) - Msg 0.0.3(00000000) is of type Serial
2022.01.21 22:07:19 5: OBIS (Stromzaehler) - Msg-Parse: 0.0.4(00000000)
2022.01.21 22:07:19 5: OBIS (Stromzaehler) - Msg 0.0.4(00000000) is of type Serial
2022.01.21 22:07:20 5: OBIS (Stromzaehler) - Msg-Parse: 0.0.5(00000000)
2022.01.21 22:07:20 5: OBIS (Stromzaehler) - Msg 0.0.5(00000000) is of type Serial
2022.01.21 22:07:20 5: OBIS (Stromzaehler) - Msg-Parse: 0.0.6(00000000)
2022.01.21 22:07:20 5: OBIS (Stromzaehler) - Msg 0.0.6(00000000) is of type Serial
2022.01.21 22:07:21 5: OBIS (Stromzaehler) - Msg-Parse: 0.0.7(00000000)
2022.01.21 22:07:21 5: OBIS (Stromzaehler) - Msg 0.0.7(00000000) is of type Serial
2022.01.21 22:07:22 5: OBIS (Stromzaehler) - Msg-Parse: 0.0.8(00000000)
2022.01.21 22:07:22 5: OBIS (Stromzaehler) - Msg 0.0.8(00000000) is of type Serial
2022.01.21 22:07:22 5: OBIS (Stromzaehler) - Msg-Parse: 0.0.9(00000000)
2022.01.21 22:07:22 5: OBIS (Stromzaehler) - Msg 0.0.9(00000000) is of type Serial
2022.01.21 22:07:23 5: OBIS (Stromzaehler) - Msg-Parse: 0.1.0(66)
2022.01.21 22:07:23 5: OBIS (Stromzaehler) - Msg-Parse: 0.1.2*66(0220101000000)
2022.01.21 22:07:24 5: OBIS (Stromzaehler) - Msg-Parse: 0.1.2*65(0211201000000)
2022.01.21 22:07:25 5: OBIS (Stromzaehler) - Msg-Parse: 0.1.2*64(0211101000000)
2022.01.21 22:07:26 5: OBIS (Stromzaehler) - Msg-Parse: 0.1.2*63(1211001000000)
2022.01.21 22:07:27 5: OBIS (Stromzaehler) - Msg-Parse: 0.1.2*62(1210901000000)
2022.01.21 22:07:28 5: OBIS (Stromzaehler) - Msg-Parse: 0.1.2*61(1210801000000)
2022.01.21 22:07:28 5: OBIS (Stromzaehler) - Msg-Parse: 0.1.2*60(1210701000000)
2022.01.21 22:07:29 5: OBIS (Stromzaehler) - Msg-Parse: 0.1.2*59(1210601000000)
2022.01.21 22:07:30 5: OBIS (Stromzaehler) - Msg-Parse: 0.1.2*58(1210501000000)
2022.01.21 22:07:31 5: OBIS (Stromzaehler) - Msg-Parse: 0.1.2*57(1210401000000)
2022.01.21 22:07:32 5: OBIS (Stromzaehler) - Msg-Parse: 0.1.2*56(0210301000000)
2022.01.21 22:07:33 5: OBIS (Stromzaehler) - Msg-Parse: 0.1.2*55(0210201000000)
2022.01.21 22:07:33 5: OBIS (Stromzaehler) - Msg-Parse: 0.1.2*54(0210101000000)
2022.01.21 22:07:34 5: OBIS (Stromzaehler) - Msg-Parse: 0.1.2*53(0201201000000)
2022.01.21 22:07:35 5: OBIS (Stromzaehler) - Msg-Parse: 0.1.2*52(0201101000000)
2022.01.21 22:07:36 5: OBIS (Stromzaehler) - Msg-Parse: 0.2.0(23100000)
2022.01.21 22:07:36 5: OBIS (Stromzaehler) - Msg 0.2.0(23100000) is of type Channels2
2022.01.21 22:07:36 5: OBIS (Stromzaehler) - Msg-Parse: 0.2.1*01(12070444)
2022.01.21 22:07:37 5: OBIS (Stromzaehler) - Msg-Parse: 0.2.1*50(090922E2)
2022.01.21 22:07:37 5: OBIS (Stromzaehler) - Msg-Parse: 0.2.2(00000008)
2022.01.21 22:07:37 5: OBIS (Stromzaehler) - Msg 0.2.2(00000008) is of type Channels2
2022.01.21 22:07:38 5: OBIS (Stromzaehler) - Msg-Parse: 0.9.1(0220226)
2022.01.21 22:07:39 5: OBIS (Stromzaehler) - Msg-Parse: 0.9.2(0220121)
2022.01.21 22:07:39 5: OBIS (Stromzaehler) - Msg-Parse: 1.8.1(0000897.6*kWh)
2022.01.21 22:07:40 5: OBIS (Stromzaehler) - Msg-Parse: 1.8.1*66(0000857.5*kWh)
2022.01.21 22:07:40 5: OBIS (Stromzaehler) - Msg 1.8.1*66(0000857.5*kWh) is of type Counter
2022.01.21 22:07:40 4: OBIS (Stromzaehler) - Set total_consumption_Ch1.66 to 857.5
2022.01.21 22:07:41 5: OBIS (Stromzaehler) - Msg-Parse: 1.8.1*65(0000798.6*kWh)
2022.01.21 22:07:41 5: OBIS (Stromzaehler) - Msg 1.8.1*65(0000798.6*kWh) is of type Counter
2022.01.21 22:07:41 4: OBIS (Stromzaehler) - Set total_consumption_Ch1.65 to 798.6
2022.01.21 22:07:42 5: OBIS (Stromzaehler) - Msg-Parse: 1.8.1*64(0000754.6*kWh)
2022.01.21 22:07:42 5: OBIS (Stromzaehler) - Msg 1.8.1*64(0000754.6*kWh) is of type Counter
2022.01.21 22:07:42 4: OBIS (Stromzaehler) - Set total_consumption_Ch1.64 to 754.6
2022.01.21 22:07:43 5: OBIS (Stromzaehler) - Msg-Parse: 1.8.1*63(0000754.6*kWh)
2022.01.21 22:07:43 5: OBIS (Stromzaehler) - Msg 1.8.1*63(0000754.6*kWh) is of type Counter
2022.01.21 22:07:43 4: OBIS (Stromzaehler) - Set total_consumption_Ch1.63 to 754.6
2022.01.21 22:07:44 5: OBIS (Stromzaehler) - Msg-Parse: 1.8.1*62(0000754.6*kWh)
2022.01.21 22:07:44 5: OBIS (Stromzaehler) - Msg 1.8.1*62(0000754.6*kWh) is of type Counter
2022.01.21 22:07:44 4: OBIS (Stromzaehler) - Set total_consumption_Ch1.62 to 754.6
2022.01.21 22:07:44 5: OBIS (Stromzaehler) - Msg-Parse: 1.8.1*61(0000754.6*kWh)
2022.01.21 22:07:44 5: OBIS (Stromzaehler) - Msg 1.8.1*61(0000754.6*kWh) is of type Counter
2022.01.21 22:07:44 4: OBIS (Stromzaehler) - Set total_consumption_Ch1.61 to 754.6
2022.01.21 22:07:45 5: OBIS (Stromzaehler) - Msg-Parse: 1.8.1*60(0000754.6*kWh)
2022.01.21 22:07:45 5: OBIS (Stromzaehler) - Msg 1.8.1*60(0000754.6*kWh) is of type Counter
2022.01.21 22:07:45 4: OBIS (Stromzaehler) - Set total_consumption_Ch1.60 to 754.6
2022.01.21 22:07:46 5: OBIS (Stromzaehler) - Msg-Parse: 1.8.1*59(0000754.6*kWh)
2022.01.21 22:07:46 5: OBIS (Stromzaehler) - Msg 1.8.1*59(0000754.6*kWh) is of type Counter
2022.01.21 22:07:46 4: OBIS (Stromzaehler) - Set total_consumption_Ch1.59 to 754.6
2022.01.21 22:07:47 5: OBIS (Stromzaehler) - Msg-Parse: 1.8.1*58(0000754.6*kWh)
2022.01.21 22:07:47 5: OBIS (Stromzaehler) - Msg 1.8.1*58(0000754.6*kWh) is of type Counter
2022.01.21 22:07:47 4: OBIS (Stromzaehler) - Set total_consumption_Ch1.58 to 754.6
2022.01.21 22:07:48 5: OBIS (Stromzaehler) - Msg-Parse: 1.8.1*57(0000754.6*kWh)
2022.01.21 22:07:48 5: OBIS (Stromzaehler) - Msg 1.8.1*57(0000754.6*kWh) is of type Counter
2022.01.21 22:07:48 4: OBIS (Stromzaehler) - Set total_consumption_Ch1.57 to 754.6
2022.01.21 22:07:48 5: OBIS (Stromzaehler) - Msg-Parse: 1.8.1*56(0000754.6*kWh)
2022.01.21 22:07:48 5: OBIS (Stromzaehler) - Msg 1.8.1*56(0000754.6*kWh) is of type Counter
2022.01.21 22:07:48 4: OBIS (Stromzaehler) - Set total_consumption_Ch1.56 to 754.6
2022.01.21 22:07:49 5: OBIS (Stromzaehler) - Msg-Parse: 1.8.1*55(0000703.8*kWh)
2022.01.21 22:07:49 5: OBIS (Stromzaehler) - Msg 1.8.1*55(0000703.8*kWh) is of type Counter
2022.01.21 22:07:49 4: OBIS (Stromzaehler) - Set total_consumption_Ch1.55 to 703.8
2022.01.21 22:07:50 5: OBIS (Stromzaehler) - Msg-Parse: 1.8.1*54(0000636.0*kWh)
2022.01.21 22:07:50 5: OBIS (Stromzaehler) - Msg 1.8.1*54(0000636.0*kWh) is of type Counter
2022.01.21 22:07:50 4: OBIS (Stromzaehler) - Set total_consumption_Ch1.54 to 636
2022.01.21 22:07:51 5: OBIS (Stromzaehler) - Msg-Parse: 1.8.1*53(0000577.8*kWh)
2022.01.21 22:07:51 5: OBIS (Stromzaehler) - Msg 1.8.1*53(0000577.8*kWh) is of type Counter
2022.01.21 22:07:51 4: OBIS (Stromzaehler) - Set total_consumption_Ch1.53 to 577.8
2022.01.21 22:07:52 5: OBIS (Stromzaehler) - Msg-Parse: 1.8.1*52(0000543.4*kWh)
2022.01.21 22:07:52 5: OBIS (Stromzaehler) - Msg 1.8.1*52(0000543.4*kWh) is of type Counter
2022.01.21 22:07:52 4: OBIS (Stromzaehler) - Set total_consumption_Ch1.52 to 543.4
2022.01.21 22:07:53 5: OBIS (Stromzaehler) - Msg-Parse: 1.8.2(0015667.3*kWh)
2022.01.21 22:07:53 5: OBIS (Stromzaehler) - Msg-Parse: 1.8.2*66(0015326.8*kWh)
2022.01.21 22:07:53 5: OBIS (Stromzaehler) - Msg 1.8.2*66(0015326.8*kWh) is of type Counter
2022.01.21 22:07:53 4: OBIS (Stromzaehler) - Set total_consumption_Ch2.66 to 15326.8
2022.01.21 22:07:54 5: OBIS (Stromzaehler) - Msg-Parse: 1.8.2*65(0014803.2*kWh)
2022.01.21 22:07:54 5: OBIS (Stromzaehler) - Msg 1.8.2*65(0014803.2*kWh) is of type Counter
2022.01.21 22:07:54 4: OBIS (Stromzaehler) - Set total_consumption_Ch2.65 to 14803.2
2022.01.21 22:07:55 5: OBIS (Stromzaehler) - Msg-Parse: 1.8.2*64(0014435.0*kWh)
2022.01.21 22:07:55 5: OBIS (Stromzaehler) - Msg 1.8.2*64(0014435.0*kWh) is of type Counter
2022.01.21 22:07:55 4: OBIS (Stromzaehler) - Set total_consumption_Ch2.64 to 14435
2022.01.21 22:07:56 5: OBIS (Stromzaehler) - Msg-Parse: 1.8.2*63(0014267.8*kWh)
2022.01.21 22:07:56 5: OBIS (Stromzaehler) - Msg 1.8.2*63(0014267.8*kWh) is of type Counter
2022.01.21 22:07:56 4: OBIS (Stromzaehler) - Set total_consumption_Ch2.63 to 14267.8
2022.01.21 22:07:57 5: OBIS (Stromzaehler) - Msg-Parse: 1.8.2*62(0014221.4*kWh)
2022.01.21 22:07:57 5: OBIS (Stromzaehler) - Msg 1.8.2*62(0014221.4*kWh) is of type Counter
2022.01.21 22:07:57 4: OBIS (Stromzaehler) - Set total_consumption_Ch2.62 to 14221.4
2022.01.21 22:07:57 5: OBIS (Stromzaehler) - Msg-Parse: 1.8.2*61(0014193.6*kWh)
2022.01.21 22:07:57 5: OBIS (Stromzaehler) - Msg 1.8.2*61(0014193.6*kWh) is of type Counter
2022.01.21 22:07:57 4: OBIS (Stromzaehler) - Set total_consumption_Ch2.61 to 14193.6
2022.01.21 22:07:59 5: OBIS (Stromzaehler) - Msg-Parse: 1.8.2*60(0014181.8*kWh)
2022.01.21 22:07:59 5: OBIS (Stromzaehler) - Msg 1.8.2*60(0014181.8*kWh) is of type Counter
2022.01.21 22:07:59 4: OBIS (Stromzaehler) - Set total_consumption_Ch2.60 to 14181.8
2022.01.21 22:07:59 5: OBIS (Stromzaehler) - Msg-Parse: 1.8.2*59(0014155.3*kWh)
2022.01.21 22:07:59 5: OBIS (Stromzaehler) - Msg 1.8.2*59(0014155.3*kWh) is of type Counter
2022.01.21 22:07:59 4: OBIS (Stromzaehler) - Set total_consumption_Ch2.59 to 14155.3
2022.01.21 22:08:00 5: OBIS (Stromzaehler) - Msg-Parse: 1.8.2*58(0014034.2*kWh)
2022.01.21 22:08:00 5: OBIS (Stromzaehler) - Msg 1.8.2*58(0014034.2*kWh) is of type Counter
2022.01.21 22:08:00 4: OBIS (Stromzaehler) - Set total_consumption_Ch2.58 to 14034.2
2022.01.21 22:08:01 5: OBIS (Stromzaehler) - Msg-Parse: 1.8.2*57(0013702.0*kWh)
2022.01.21 22:08:01 5: OBIS (Stromzaehler) - Msg 1.8.2*57(0013702.0*kWh) is of type Counter
2022.01.21 22:08:01 4: OBIS (Stromzaehler) - Set total_consumption_Ch2.57 to 13702
2022.01.21 22:08:02 5: OBIS (Stromzaehler) - Msg-Parse: 1.8.2*56(0013268.2*kWh)
2022.01.21 22:08:02 5: OBIS (Stromzaehler) - Msg 1.8.2*56(0013268.2*kWh) is of type Counter
2022.01.21 22:08:02 4: OBIS (Stromzaehler) - Set total_consumption_Ch2.56 to 13268.2
2022.01.21 22:08:03 5: OBIS (Stromzaehler) - Msg-Parse: 1.8.2*55(0012745.0*kWh)
2022.01.21 22:08:03 5: OBIS (Stromzaehler) - Msg 1.8.2*55(0012745.0*kWh) is of type Counter
2022.01.21 22:08:03 4: OBIS (Stromzaehler) - Set total_consumption_Ch2.55 to 12745
2022.01.21 22:08:03 5: OBIS (Stromzaehler) - Msg-Parse: 1.8.2*54(0012066.5*kWh)
2022.01.21 22:08:03 5: OBIS (Stromzaehler) - Msg 1.8.2*54(0012066.5*kWh) is of type Counter
2022.01.21 22:08:03 4: OBIS (Stromzaehler) - Set total_consumption_Ch2.54 to 12066.5
2022.01.21 22:08:04 5: OBIS (Stromzaehler) - Msg-Parse: 1.8.2*53(0011607.5*kWh)
2022.01.21 22:08:04 5: OBIS (Stromzaehler) - Msg 1.8.2*53(0011607.5*kWh) is of type Counter
2022.01.21 22:08:04 4: OBIS (Stromzaehler) - Set total_consumption_Ch2.53 to 11607.5
2022.01.21 22:08:05 5: OBIS (Stromzaehler) - Msg-Parse: 1.8.2*52(0011278.7*kWh)
2022.01.21 22:08:05 5: OBIS (Stromzaehler) - Msg 1.8.2*52(0011278.7*kWh) is of type Counter
2022.01.21 22:08:05 4: OBIS (Stromzaehler) - Set total_consumption_Ch2.52 to 11278.7
2022.01.21 22:08:06 5: OBIS (Stromzaehler) - Msg-Parse: 14.25(49.96*Hz)
2022.01.21 22:08:06 5: OBIS (Stromzaehler) - Msg-Parse: 31.25(3.274*A)
2022.01.21 22:08:07 5: OBIS (Stromzaehler) - Msg-Parse: 51.25(0.010*A)
2022.01.21 22:08:07 5: OBIS (Stromzaehler) - Msg-Parse: 71.25(0.015*A)
2022.01.21 22:08:08 5: OBIS (Stromzaehler) - Msg-Parse: 32.25(234.12*V)
2022.01.21 22:08:08 5: OBIS (Stromzaehler) - Msg-Parse: 52.25(235.24*V)
2022.01.21 22:08:09 5: OBIS (Stromzaehler) - Msg-Parse: 72.25(236.17*V)
2022.01.21 22:08:09 5: OBIS (Stromzaehler) - Msg-Parse: 33.25(0.91*P/S)
2022.01.21 22:08:09 5: DevIo_SimpleWrite Stromzaehler: 063030300d0a
2022.01.21 22:08:10 5: OBIS (Stromzaehler) - Msg-Parse: 53.25(0.00*P/S)
2022.01.21 22:08:10 5: DevIo_SimpleWrite Stromzaehler: 063030300d0a
2022.01.21 22:08:11 5: OBIS (Stromzaehler) - Msg-Parse: 73.25(0.00*P/S)
2022.01.21 22:08:11 5: DevIo_SimpleWrite Stromzaehler: 063030300d0a
2022.01.21 22:08:11 5: OBIS (Stromzaehler) - Msg-Parse: 13.25(0.90*P/S)
2022.01.21 22:08:11 5: DevIo_SimpleWrite Stromzaehler: 063030300d0a
2022.01.21 22:08:12 5: OBIS (Stromzaehler) - Msg-Parse: C.3(00000000)
2022.01.21 22:08:12 5: OBIS (Stromzaehler) - Msg-Parse: C.4(00A00040)
2022.01.21 22:08:13 5: OBIS (Stromzaehler) - Msg-Parse: C.5(0020F4F0)
2022.01.21 22:08:13 5: OBIS (Stromzaehler) - Msg-Parse: C.52.0(3)
2022.01.21 22:08:14 5: OBIS (Stromzaehler) - Msg-Parse: C.86.1(00000000)
2022.01.21 22:08:14 5: OBIS (Stromzaehler) - Msg-Parse: C.7.0(0006)
2022.01.21 22:08:15 5: OBIS (Stromzaehler) - Msg-Parse: C.7.1(0001)
2022.01.21 22:08:15 5: OBIS (Stromzaehler) - Msg-Parse: C.7.2(0001)
2022.01.21 22:08:15 5: OBIS (Stromzaehler) - Msg-Parse: C.7.3(0000)
2022.01.21 22:08:16 5: OBIS (Stromzaehler) - Msg-Parse: F.F(00000000)
2022.01.21 22:08:16 5: OBIS (Stromzaehler) - Msg-Parse: !


Hier noch eine sehr umfangreiche Dokumentation des Stromzählers: https://downloads.nzr.de/wp-content/uploads/2021/05/LZQJ-XC_PHB_Stand_072020.pdf

Gruß

Omega

Hallo Zusammen,

nach langer Zeit habe ich mal wieder ein Update durchgeführt und danach leider folgende Probleme bei meinen OBIS-Zählern.
Beim Start von FHEM erhalte ich zunächst die Fehlermeldungen mit "Unknown Message: ..." und anschließend wird mir mein Log vollgeschrieben mit der Zeile: "2nd TL-byte != 0, reserved according spec".

Verbose habe ich jetzt erst einmal auf 2 gestellt, das ist aber sicher auf Dauer keine Lösung.

Danke schon mal für Unterstützung
Holger


2022.01.24 10:29:17 3: OBIS (sm.Heizungskeller) - Unknown Message: 1-0:96.1.0*255(HLYMv)
2022.01.24 10:29:17 3: OBIS (sm.Heizungskeller) - Unknown Message: 1-0:0.2.0*0(1.02.007)
2022.01.24 10:29:17 3: OBIS (sm.Heizungskeller) - Unknown Message: 1-0:96.90.2*1(A01A)
2022.01.24 10:29:17 3: OBIS (sm.Heizungskeller) - Unknown Message: 1-0:96.5.0*255(1841412)
2022.01.24 10:29:17 3: 2nd TL-byte != 0, reserved according spec
2022.01.24 10:29:17 3: OBIS (sm.Vorratskeller) - Unknown Message: 1-0:96.1.0*255(HLYMm)
2022.01.24 10:29:17 3: OBIS (sm.Vorratskeller) - Unknown Message: 1-0:0.2.0*0(1.02.007)
2022.01.24 10:29:17 3: OBIS (sm.Vorratskeller) - Unknown Message: 1-0:96.90.2*1(A01A)
2022.01.24 10:29:17 3: OBIS (sm.Vorratskeller) - Unknown Message: 1-0:96.5.0*255(1839364)
2022.01.24 10:29:19 3: 2nd TL-byte != 0, reserved according spec
2022.01.24 10:29:20 3: 2nd TL-byte != 0, reserved according spec
2022.01.24 10:29:29 3: 2nd TL-byte != 0, reserved according spec
2022.01.24 10:29:30 3: 2nd TL-byte != 0, reserved according spec
2022.01.24 10:29:39 3: 2nd TL-byte != 0, reserved according spec
2022.01.24 10:29:39 3: 2nd TL-byte != 0, reserved according spec


Und die Definition meiner Devices:

Internals:
   CRC_Errors 4
   DEF        /dev/serial/by-id/usb-FTDI_FT230X_Basic_UART_D308BMGU-if00-port0@@9600,8,N,1 SML
   DeviceName /dev/serial/by-id/usb-FTDI_FT230X_Basic_UART_D308BMGU-if00-port0@@9600,8,N,1
   FD         9
   FUUID      5ef72506-f33f-30fc-feb1-50cb5737f791fd36
   MeterType  SML
   NAME       sm.Heizungskeller
   NR         38
   PARTIAL   
   STATE      opened
   TYPE       OBIS
   READINGS:
     2022-01-24 10:55:39   ManufID2        HLY
     2022-01-24 10:55:39   current_L1      1.18
     2022-01-24 10:55:39   current_L2      0.68
     2022-01-24 10:55:39   current_L3      0.68
     2022-01-24 10:55:39   power           -242
     2022-01-24 10:28:57   state           opened
     2022-01-24 10:55:39   total_consumption 6222
     2022-01-24 10:55:39   total_feed      29304271.2
     2022-01-24 10:55:39   voltage_L1      220.2
     2022-01-24 10:55:39   voltage_L2      220.3
     2022-01-24 10:55:39   voltage_L3      220.6
   helper:
     BUFFER     
     DIRECTIONSUM <
     EoM        1
     HLYHACK    1
     LastPacketTime 1643018139.15934
     SPEED     
     SPEED2     
     TRIGGERTIME 1643016537.71384
     Channels:
     DEVICES:
       
       10
       
     RULECACHE:
       1-0:0.2.0*0 unknown
       1-0:1.8.0*255 Counter
       1-0:14.7.0*255 Channels
       1-0:16.7.0*255 Channels
       1-0:2.8.0*255 Counter
       1-0:31.7.0*255 Channels
       1-0:32.7.0*255 Channels
       1-0:51.7.0*255 Channels
       1-0:52.7.0*255 Channels
       1-0:71.7.0*255 Channels
       1-0:72.7.0*255 Channels
       1-0:81.7.1*255 Channels
       1-0:81.7.15*255 Channels
       1-0:81.7.2*255 Channels
       1-0:81.7.26*255 Channels
       1-0:81.7.4*255 Channels
       1-0:96.1.0*255 unknown
       1-0:96.5.0*255 unknown
       1-0:96.50.1*1 ManufID2
       1-0:96.90.2*1 unknown
     directions:
Attributes:
   event-on-change-reading .*
   event-on-update-reading .*
   icon       measure_power_meter
   ignoreUnknown on
   interval   10
   pollingMode on
   room       Smartmeter
   verbose    2



Internals:
   CRC_Errors 5
   DEF        /dev/serial/by-id/usb-FTDI_FT230X_Basic_UART_D307MAKR-if00-port0@@9600,8,N,1 SML
   DeviceName /dev/serial/by-id/usb-FTDI_FT230X_Basic_UART_D307MAKR-if00-port0@@9600,8,N,1
   FD         8
   FUUID      5e85ea23-f33f-30fc-325e-f2be200efd94d15b
   MeterType  SML
   NAME       sm.Vorratskeller
   NR         37
   PARTIAL   
   STATE      opened
   TYPE       OBIS
   READINGS:
     2022-01-24 10:56:20   ManufID2        HLY
     2022-01-24 10:56:20   current_L1      1.29
     2022-01-24 10:56:20   current_L2      2.06
     2022-01-24 10:56:20   current_L3      1.96
     2022-01-24 10:56:20   power           338
     2022-01-24 10:28:57   state           opened
     2022-01-24 10:56:20   total_consumption 1983288
     2022-01-24 10:56:20   total_feed      20507330
     2022-01-24 10:56:20   voltage_L1      220.3
     2022-01-24 10:56:20   voltage_L2      220.7
     2022-01-24 10:56:20   voltage_L3      220.6
   helper:
     BUFFER     
     DIRECTIONSUM >
     EoM        1
     HLYHACK    1
     LastPacketTime 1643018180.26624
     SPEED     
     SPEED2     
     TRIGGERTIME 1643016537.70134
     Channels:
     DEVICES:
       
       10
       
     RULECACHE:
       1-0:0.2.0*0 unknown
       1-0:1.8.0*255 Counter
       1-0:14.7.0*255 Channels
       1-0:16.7.0*255 Channels
       1-0:2.8.0*255 Counter
       1-0:31.7.0*255 Channels
       1-0:32.7.0*255 Channels
       1-0:51.7.0*255 Channels
       1-0:52.7.0*255 Channels
       1-0:71.7.0*255 Channels
       1-0:72.7.0*255 Channels
       1-0:81.7.1*255 Channels
       1-0:81.7.15*255 Channels
       1-0:81.7.2*255 Channels
       1-0:81.7.26*255 Channels
       1-0:81.7.4*255 Channels
       1-0:96.1.0*255 unknown
       1-0:96.5.0*255 unknown
       1-0:96.50.1*1 ManufID2
       1-0:96.90.2*1 unknown
     directions:
Attributes:
   event-on-change-reading .*
   event-on-update-reading .*
   icon       measure_power_meter
   ignoreUnknown on
   interval   10
   pollingMode on
   room       Smartmeter
   verbose    2
NUC6i3SYH (FHEM 5.8 in VM)
Homematic: HMLAN, HMUSB, HM-Sec-SD, HM-CC-RT-DN, HM-TC-IT, ... + diverse weitere
LaCrosseGateway, ESPEasy
ZWave

Bartel_12

Hallo,
immer wenn mein wert (einspeissung) über ca. -700W geht habe ich abnormale Werte grösser als 16000W !!!???

Das - Zeichen wird auch nicht angezeigt wobei ich das mit einem Userreading hinbekommen habe.

Hier noch zum vergleich aus meine Logfile.

zuerst der extrem hohe Wert.

2022.02.17 13:45:36 5: OBIS (Stromzaehler) - Msg-Parse: /
2022.02.17 13:45:36 5: OBIS (Stromzaehler) - Msg-Parse: 1-0:96.50.1*1(DZG*var)
2022.02.17 13:45:36 5: OBIS (Stromzaehler) - Msg 1-0:96.50.1*1(DZG*var) is of type ManufID2
2022.02.17 13:45:36 5: OBIS (Stromzaehler) - Msg-Parse: 1-0:96.1.0*255(DZGx*var)
2022.02.17 13:45:36 5: OBIS (Stromzaehler) - Msg-Parse: 1-0:1.8.0*255(<8719694.2*Wh)
2022.02.17 13:45:36 5: OBIS (Stromzaehler) - Msg-Parse: 1-0:2.8.0*255(1038728.9*Wh)
2022.02.17 13:45:36 5: OBIS (Stromzaehler) - Msg-Parse: 1-0:16.7.0*255(166651.37*W)
2022.02.17 13:45:36 5: OBIS (Stromzaehler) - Msg 1-0:16.7.0*255(166651.37*W) is of type Channels
2022.02.17 13:45:36 5: OBIS (Stromzaehler) - Msg-Parse: !
2022.02.17 13:45:37 5: OBIS (Stromzaehler) - SML-Parse 1B1B1B1B0101010176052099A009620062007263010176010102310B0A01445A47000394C2787262016505228C396202639E640076052199A009620062007263070177010B0A01445A47000394C278070100620AFFFF7262016505228C397577070100603201010172620162006200520004445A470177070100600100FF017262016200620052000B0A01445A47000394C2780177070100010800FF641C39047262016200621E52FF650532850E0177070100020800FF017262016200621E52FF649E7F5C0177070100100700FF017262016200621B52FE54FDEF7C01010163DD930076052299A00962006200726302017101638C9800001B1B1B1B1A010B61
2022.02.17 13:45:37 5: OBIS (Stromzaehler) - Full message-> 1B1B1B1B0101010176052099A009620062007263010176010102310B0A01445A47000394C2787262016505228C396202639E640076052199A009620062007263070177010B0A01445A47000394C278070100620AFFFF7262016505228C397577070100603201010172620162006200520004445A470177070100600100FF017262016200620052000B0A01445A47000394C2780177070100010800FF641C39047262016200621E52FF650532850E0177070100020800FF017262016200621E52FF649E7F5C0177070100100700FF017262016200621B52FE54FDEF7C01010163DD930076052299A00962006200726302017101638C9800001B1B1B1B1A010B61
2022.02.17 13:45:37 4: OBIS (Stromzaehler) - MSG IS:
/
1-0:96.50.1*1(DZG*var)
1-0:96.1.0*255(DZGx*var)
1-0:1.8.0*255(<8719694.2*Wh)
1-0:2.8.0*255(1038729.2*Wh)
1-0:16.7.0*255(166419.16*W)
!


jetzt wen ich unter ca. 700W einspeissung bin.


2022.02.17 10:59:17 5: OBIS (Stromzaehler) - Msg-Parse: /
2022.02.17 10:59:17 5: OBIS (Stromzaehler) - Msg-Parse: 1-0:96.50.1*1(DZG*var)
2022.02.17 10:59:17 5: OBIS (Stromzaehler) - Msg 1-0:96.50.1*1(DZG*var) is of type ManufID2
2022.02.17 10:59:17 5: OBIS (Stromzaehler) - Msg-Parse: 1-0:96.1.0*255(DZGx*var)
2022.02.17 10:59:17 5: OBIS (Stromzaehler) - Msg-Parse: 1-0:1.8.0*255(<8719277.5*Wh)
2022.02.17 10:59:17 5: OBIS (Stromzaehler) - Msg-Parse: 1-0:2.8.0*255(1037901.1*Wh)
2022.02.17 10:59:17 5: OBIS (Stromzaehler) - Msg-Parse: 1-0:16.7.0*255(558.2*W)
2022.02.17 10:59:17 5: OBIS (Stromzaehler) - Msg 1-0:16.7.0*255(558.2*W) is of type Channels
2022.02.17 10:59:17 5: OBIS (Stromzaehler) - Msg-Parse: !
2022.02.17 10:59:17 1: PERL WARNING: Useless use of a constant ("%.0f kWh") in void context at (eval 668) line 1.
2022.02.17 10:59:17 3: eval: "Einspeisung: ".sprintf("%.0f kWh", (ReadingsVal($name,"2.8.0_Einspeisung",0) / 1000) ) ." | Bezug: ".("%.0f kWh",(ReadingsVal($name,"1.8.0_Verbrauch",0))) . " | aktuelle Leistung: ". sprintf("%.0f W", ReadingsVal($name,"aktuelle_Leistung",0))
2022.02.17 10:59:18 5: OBIS (Stromzaehler) - SML-Parse 1B1B1B1B0101010176052F24A009620062007263010176010102310B0A01445A47000394C278726201650522653D620263071C0076053024A009620062007263070177010B0A01445A47000394C278070100620AFFFF726201650522653D7577070100603201010172620162006200520004445A470177070100600100FF017262016200620052000B0A01445A47000394C2780177070100010800FF641C39047262016200621E52FF65053274C70177070100020800FF017262016200621E52FF649E5F030177070100100700FF017262016200621B52FE53DC0D0101016329800076053124A0096200620072630201710163C6DA0000001B1B1B1B1A023B75
2022.02.17 10:59:18 5: OBIS (Stromzaehler) - Full message-> 1B1B1B1B0101010176052F24A009620062007263010176010102310B0A01445A47000394C278726201650522653D620263071C0076053024A009620062007263070177010B0A01445A47000394C278070100620AFFFF726201650522653D7577070100603201010172620162006200520004445A470177070100600100FF017262016200620052000B0A01445A47000394C2780177070100010800FF641C39047262016200621E52FF65053274C70177070100020800FF017262016200621E52FF649E5F030177070100100700FF017262016200621B52FE53DC0D0101016329800076053124A0096200620072630201710163C6DA0000001B1B1B1B1A023B75
2022.02.17 10:59:18 4: OBIS (Stromzaehler) - MSG IS:
/
1-0:96.50.1*1(DZG*var)
1-0:96.1.0*255(DZGx*var)
1-0:1.8.0*255(<8719277.5*Wh)
1-0:2.8.0*255(1037901.1*Wh)
1-0:16.7.0*255(563.33*W)
!


Hat hier villeich jemand eine Idee?
Danke schonmal im vorraus.
Raspberry 3 - 3* Siemens Logo fs8 (vollausbau) - IR leskeopf(Stromzähler)

Bartel_12

Zitat      if ($tltype==0x50 && $len<4 && $isobis && $cntdown==2 && $result[0]=~/^1-0:16\.7\.0/ && $hash->{helper}{DZGHACK}) {
                $tltype = 0x60;
      }


Genau diese Stelle scheint sich bei Dir zu rächen: Weil es ein DZG-Zähler ist, der "signed" sagt, eine kurze Länge hat (< 4), es um das Werte-Feld und OBIS-Zahl 1.0.16.7.0 geht ("if"-Statement in Worten), macht der Code aus dem int ein unsigned int und damit die hohe Zahl.

Den Hack habe ich vor 1-2 Jahren eingebaut, findest Du früher hier im Thread. Vorschlag: Kommentiere diese 3 Zeilen mal aus, und gucke, ob Du damit definitiv glücklicher bist. (FHEM neu starten o.ä. ist natürlich nötig, damit das Auskommentieren oder Löschen wirksam wird). Sollte DZG Zähler in Umlauf gesetzt haben, die den Bug nicht mehr haben, dann würde ich den Hack nicht fest verdrahten, sondern "wegkonfigurierbar" machen.

Also: Schuld ist ein alter Fehler in den DZG-Zählern. Vielleicht ist er inzwischen behoben.

So funktioniert es bis jetzt bei mir auch habe ich dann doch nach einmal schlafen auf der Seite 90 gefunden.
Manchmal ist es halt doch besser auf der letzten Seite anfangen zu lesen ;)
Raspberry 3 - 3* Siemens Logo fs8 (vollausbau) - IR leskeopf(Stromzähler)

gvzdus

Jetzt steht es m.E. 2:2 (2 DZG-Zähler mit Problem ohne Patch, 2 DZG-Zähler, die damit in Probleme kommen).
Vermutlich sollte ich den Hack als "automatisch einschaltend" ausbauen, und zu einer manuellen Option machen.

xismfd

Erstmal vielen Dank für das tolle Modul und die Arbeit; als Feedback wollte ich melden, dass auch ich seit Juli 2021 einen DZG-Zähler besitze und diesen jetzt auch endlich elektronisch erfassen wollte. Auch ich hatte diese komischen Ausreißer von ca. 166 KW Bezug, wenn es in den Negativbereich rutschte bzw. positive Werte um ca. 300-500 Watt, obwohl am Zähler ca. -300 Watt standen. Mit dem Auskommentieren der 3 Zeilen ist aber jetzt alles gut :-)

awex102

Hallo,

mein Zähler wurde getauscht (ED300L).

Zähler ist der gleiche wie vorher.

Was nun fehlt ist das reading dir_total_feed.

Vorher lief das. Gibts etwas zu beachten?

Danke!

gvzdus

Wofür soll das nötig sein?
total_feed = Wh eingespeist
total_consumption = Wh bezogen
M.E. kann es nur so sinnvoll wie ein "Plus" bei positiven Zahlen gewesen sein. Wirklich wichtig ist ja "power" für die Steuerung von Verbrauchern bei PV, sowie eben die beiden total_-Werte als absolute Zählerstände.

h002

Ich habe via USB einen Infrarotkopf (cp2102) an meinen Stromzähler (EFR SGM-DD) angeschlossen.

Die dSS Infoschnittstelle (siehe Kap. 13.1) funktioniert. Ich bekomme die Gesamwerte für Verbrauch und Einspeisung.

Bei der D0-Dialogschnittstelle komme ich nicht weiter, wenn ich diese im Zähler anstatt dSS aktiviere. Mittels dem Tool HTerm konnte ich in Windows zu Testzwecken über die verschiedenen Baudraten senden und empfangen. Damit konnte ich z.B. die Hex-Daten "2F 3F 21 0D 0A" übertragen und bekam den Hersteller zurückgeliert. Ich würde gerne wie in der Doku 13.2 die Vorwerte nach FHEM auslesen. Irgendwie komme ich aber nicht klar und verstehe nicht, wie man die spezifischen Kommandos aus FHEM sendet und die Start- und Kommunikationsbaudraten wechselt. Muss ich da zwei Devices mit verschiedenen Spezifikationen anlegen?

Hier mein Device mit der Startbaudrate. Wie kann ich das mit dem OBIS-Modul umsetzen?


Internals:
   DEF        /dev/ttyUSB3@9600,7,E,1 SML
   DeviceName /dev/ttyUSB3@9600,7,E,1
   FD         16
   FUUID      623c8b1f-f33f-8b20-8d99-ea29cd21b9dac621
   MeterType  SML
   NAME       test
   NR         65494
   PARTIAL   
   STATE      opened
   TYPE       OBIS
   READINGS:
     2022-03-24 16:25:13   state           opened
   helper:
     EoM        -1
     SPEED      5
     SPEED2     5
     TRIGGERTIME 1648135513.61469
     DEVICES:
       
       5
       
     RULECACHE:
Attributes:
   interval   5
   pollingMode on
   verbose    5