THZ Tecalor (LWZ Stiebel Eltron) module support and code improvement.

Begonnen von immi, 02 Februar 2015, 11:42:16

Vorheriges Thema - Nächstes Thema

börni

Dear Immi,

No unfortunately not solved ....
Outputs in some values are in binary code or something :(

Thanks and best Regards
Fabian
Loxberry auf RPi3 mit FHEM / LWZ303i V.2.06 / Loxone / eisfair Server (LMS/NAS/cloud/et.) / Fronius WR mit 9,3 kwp

ioT4db

Zitat von: immi am 25 Januar 2018, 16:10:50
This is what I highlighted as open point last week.
Andre took care about the interpretation of the registers (F2 and E8) for very old firmwares.
Now it has to be done for newer firmwares.
I remember you that if you want to see the registers before interpretation you have to set the verbose to 5
immi

hi immi,

thanks for the hint.

What can I do now with this message or otherwise can someone give me an idea haow to decrypt this parse message?

2018.01.25 23:14:32 5: THZ_Get: Try to get 'sGlobal'
2018.01.25 23:14:32 5: THZ_Get_Comunication: Check if port is open. State = '(opened)'
2018.01.25 23:14:32 5: Mythz sending 02
2018.01.25 23:14:32 5: SW: 02
2018.01.25 23:14:32 5: Mythz start Function THZ_ReadAnswer
2018.01.25 23:14:32 5: THZ_ReadAnswer: uc unpack: '10'
2018.01.25 23:14:32 5: Mythz sending 0100FCFB1003
2018.01.25 23:14:32 5: SW: 0100FCFB1003
2018.01.25 23:14:32 5: Mythz start Function THZ_ReadAnswer
2018.01.25 23:14:32 5: THZ_ReadAnswer: uc unpack: '10'
2018.01.25 23:14:32 5: Mythz start Function THZ_ReadAnswer
2018.01.25 23:14:32 5: THZ_ReadAnswer: uc unpack: '02'
2018.01.25 23:14:32 5: Mythz sending 10
2018.01.25 23:14:32 5: SW: 10
2018.01.25 23:14:32 5: Mythz start Function THZ_ReadAnswer
2018.01.25 23:14:32 5: double read 1 activated 01008BFBFDA80056010C
2018.01.25 23:14:32 5: double read 1 result with buf1  01008BFBFDA80056010C0100012A0203FDA8FDA8010A01020000
2018.01.25 23:14:32 5: double read 2 activated 01008BFBFDA80056010C0100012A0203FDA8FDA8010A01020000
2018.01.25 23:14:32 5: double read 2 result with buf1  01008BFBFDA80056010C0100012A0203FDA8FDA8010A0102000001015E015E0000001600150000005800
2018.01.25 23:14:32 5: double read 3 activated 01008BFBFDA80056010C0100012A0203FDA8FDA8010A0102000001015E015E0000001600150000005800
2018.01.25 23:14:32 5: double read 3 result with buf1  01008BFBFDA80056010C0100012A0203FDA8FDA8010A0102000001015E015E000000160015000000580000000002B7047200000000000000000000
2018.01.25 23:14:32 5: double read 4 activated 01008BFBFDA80056010C0100012A0203FDA8FDA8010A0102000001015E015E000000160015000000580000000002B7047200000000000000000000
2018.01.25 23:14:32 5: double read 4 result with buf1  01008BFBFDA80056010C0100012A0203FDA8FDA8010A0102000001015E015E000000160015000000580000000002B704720000000000000000000000710000000001050101010D00E800EF
2018.01.25 23:14:32 5: double read 5 activated 01008BFBFDA80056010C0100012A0203FDA8FDA8010A0102000001015E015E000000160015000000580000000002B704720000000000000000000000710000000001050101010D00E800EF
2018.01.25 23:14:32 5: double read 5 result with buf1  01008BFBFDA80056010C0100012A0203FDA8FDA8010A0102000001015E015E000000160015000000580000000002B704720000000000000000000000710000000001050101010D00E800EF0000000010101F1003
2018.01.25 23:14:32 5: THZ_ReadAnswer: uc unpack: '01008BFBFDA80056010C0100012A0203FDA8FDA8010A0102000001015E015E000000160015000000580000000002B704720000000000000000000000710000000001050101010D00E800EF0000000010101F1003'
2018.01.25 23:14:32 5: Mythz sending 10
2018.01.25 23:14:32 5: SW: 10
2018.01.25 23:14:32 5: Parse message: 8BFBFDA80056010C0100012A0203FDA8FDA8010A0102000001015E015E000000160015000000580000000002B704720000000000000000000000710000000001050101010D00E800EF00000000101F
2018.01.25 23:14:32 5: Message length: 158
2018.01.25 23:14:34 5: THZ_Get: Try to get 'sFan'
2018.01.25 23:14:34 5: THZ_Get_Comunication: Check if port is open. State = '(opened)'
2018.01.25 23:14:34 5: Mythz sending 02
2018.01.25 23:14:34 5: SW: 02
2018.01.25 23:14:34 5: Mythz start Function THZ_ReadAnswer
2018.01.25 23:14:34 5: THZ_ReadAnswer: uc unpack: '10'
2018.01.25 23:14:34 5: Mythz sending 0100E9E81003
2018.01.25 23:14:34 5: SW: 0100E9E81003
2018.01.25 23:14:34 5: Mythz start Function THZ_ReadAnswer
2018.01.25 23:14:34 5: THZ_ReadAnswer: uc unpack: '10'
2018.01.25 23:14:34 5: Mythz start Function THZ_ReadAnswer
2018.01.25 23:14:34 5: THZ_ReadAnswer: uc unpack: '02'
2018.01.25 23:14:34 5: Mythz sending 10
2018.01.25 23:14:34 5: SW: 10
2018.01.25 23:14:34 5: Mythz start Function THZ_ReadAnswer
2018.01.25 23:14:34 5: double read 1 activated 0100D7E80200013647000122C50001
2018.01.25 23:14:34 5: double read 1 result with buf1  0100D7E80200013647000122C500013C68000152E800000000000000000E10
2018.01.25 23:14:34 5: double read 2 activated 0100D7E80200013647000122C500013C68000152E800000000000000000E10
2018.01.25 23:14:34 5: double read 2 result with buf1  0100D7E80200013647000122C500013C68000152E800000000000000000E10101416008C008C2323001003
2018.01.25 23:14:34 5: THZ_ReadAnswer: uc unpack: '0100D7E80200013647000122C500013C68000152E800000000000000000E10101416008C008C2323001003'
2018.01.25 23:14:34 5: Mythz sending 10
2018.01.25 23:14:34 5: SW: 10
2018.01.25 23:14:34 5: Parse message: D7E80200013647000122C500013C68000152E800000000000000000E101416008C008C232300
2018.01.25 23:14:34 5: Message length: 76


cheers...
FHEM auf Synology mittels Docker,  Jeelink-Clone 1x für PCA301 und 1x für Lacrosse, THZ304SOL, Homematic: CUL_HM / M-MOD-RPI-PCB, Pushover, Xiaomi s50

immi

Hi Fabian
I will have a look in the week-end

HI  friesenjung
taking your message of register E8

2018.01.25 23:14:34 5: Parse message: D7E80200013647000122C500013C68000152E800000000000000000E101416008C008C232300


you try to make sense of it like Andre did here
https://forum.fhem.de/index.php/topic,33211.msg752272.html#msg752272
immi

börni

Hi Immi,

Can I do something in between?
The software of the LWZ303i is 2.06. - that is correct. This is also mentioned in the readings.

Thanks for your Support and best Regards
Fabian
Loxberry auf RPi3 mit FHEM / LWZ303i V.2.06 / Loxone / eisfair Server (LMS/NAS/cloud/et.) / Fronius WR mit 9,3 kwp

börni

Why I'm having some/a lot of these parameters double?
Like this:


p05DHWsetNightTemp

EF0A01012000BE00C8003C °C

2018-01-27 18:17:01
p05DHWsetTempNight

45 °C

2018-01-28 10:38:30
p06DHWsetStandbyTemp

EF0A01012000BE00C8003C °C

2018-01-27 18:16:37
p06DHWsetTempStandby

10 °C


Thanks
Fabian
Loxberry auf RPi3 mit FHEM / LWZ303i V.2.06 / Loxone / eisfair Server (LMS/NAS/cloud/et.) / Fronius WR mit 9,3 kwp

immi

Hi Fabian
this look like you have some old stuff.

Delete all readings starting with "p" with this command

deletereading Mythz p.*

update and restart
immi

börni

Yes - I've deleted everything - just starting from the scratch :)
I guess due to some testings there where some mismatch - but now I'm seeing kind of this stuff:


2018.01.29 20:55:32 0: Server started with 9 defined entities (fhem.pl:16017/2018-01-27 perl:5.020002 os:linux user:loxberry pid:2072)
2018.01.29 20:57:38 3: Opening Mythz device /dev/ttyUSB0
2018.01.29 20:57:38 3: Setting Mythz serial parameters to 9600,8,N,1
2018.01.29 20:57:38 3: Mythz device opened
2018.01.29 20:58:17 1: PERL WARNING: Argument "EF0A01012000BE00C8003C" isn't numeric in multiplication (*) at ./FHEM/00_THZ.pm line 1449.
2018.01.29 20:58:17 1: PERL WARNING: Argument "EF0A01012000BE00C8003C" isn't numeric in addition (+) at ./FHEM/00_THZ.pm line 1449.
2018.01.29 20:58:21 3: THZ_Get: Error msg2:  THZ_ReadAnswer: InterfaceNotRespondig. Maybe too slow THZ_Get_Com: error found at step1  -- 0A1772 ->
2018.01.29 20:59:05 3: THZ_Get: Error msg2:  decode: CRC error in request -- 0A0576 -> 01020F0C1003
2018.01.29 20:59:30 1: PERL WARNING: Use of uninitialized value in string eq at ./FHEM/00_THZ.pm line 1118.
2018.01.29 20:59:30 1: PERL WARNING: Use of uninitialized value in string eq at ./FHEM/00_THZ.pm line 1125.
2018.01.29 20:59:46 3: THZ_Get: Error msg2:  THZ_ReadAnswer: InterfaceNotRespondig. Maybe too slow THZ_Get_Com: error found at step1  -- 0B ->
2018.01.29 20:59:46 1: PERL WARNING: Use of uninitialized value $msg2 in concatenation (.) or string at ./FHEM/00_THZ.pm line 1426.
2018.01.29 20:59:50 3: THZ_Get: Error msg2:  THZ_ReadAnswer: InterfaceNotRespondig. Maybe too slow THZ_Get_Com: error found at step2 -- FB ->
2018.01.29 20:59:53 3: THZ_Get: Error msg2:   THZ_Get_Com: error found at step0 15 NAK!! -- 17 -> 15
2018.01.29 20:59:53 1: PERL WARNING: Use of uninitialized value $err in concatenation (.) or string at ./FHEM/00_THZ.pm line 1016.
2018.01.29 20:59:53 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/00_THZ.pm line 1016.
2018.01.29 20:59:53 3: Mythz/RAW: 02 -  -
2018.01.29 21:00:45 3: THZ_Get: Error msg2:  THZ_ReadAnswer: Interface max repeat limited to 60  THZ_Get_Com: error found at step2 -- D1 -> 010009D101010017072D05E50000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
2018.01.29 21:00:45 3: Mythz/RAW: 02000000001003 -  -
2018.01.29 21:00:53 3: THZ_Get: Error msg2:  decode: command not known -- FE -> 010302FE1003
2018.01.29 21:01:46 3: THZ_Get: Error msg2:  THZ_ReadAnswer: InterfaceNotRespondig. Maybe too slow THZ_Get_Com: error found at step1  -- 0C ->
2018.01.29 21:01:49 3: THZ_Get: Error msg2:  THZ_ReadAnswer: InterfaceNotRespondig. Maybe too slow THZ_Get_Com: error found at step1  -- 0F ->
2018.01.29 21:02:46 3: THZ_Get: Error msg2:  THZ_ReadAnswer: Interface max repeat limited to 60  THZ_Get_Com: error found at step2 -- D1 -> 010009D101010017072D05E500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
2018.01.29 21:02:46 3: Mythz/RAW: 0200000000100300000000001003 -  -
2018.01.29 21:02:52 3: THZ_Get: Error msg2:  decode: command not known -- 16 -> 01031A161003
2018.01.29 21:03:07 3: THZ_Get: Error msg2:  THZ_ReadAnswer: InterfaceNotRespondig. Maybe too slow THZ_Get_Com: error found at step1  -- 17 ->
2018.01.29 21:03:09 3: THZ_Parsing: offset(20) + length(4) is longer then message : '58080000160D1412000105'
2018.01.29 21:03:30 3: THZ_Get: Error msg2:  THZ_ReadAnswer: InterfaceNotRespondig. Maybe too slow THZ_Get_Com: error found at step1  -- 10 ->
2018.01.29 21:04:46 3: THZ_Get: Error msg2:  THZ_ReadAnswer: Interface max repeat limited to 60  THZ_Get_Com: error found at step2 -- D1 -> 010009D101010017072D05E500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
2018.01.29 21:04:46 3: Mythz/RAW: 020000000010030000000000100300000000001003 -  -


Thanks
Fabian
Loxberry auf RPi3 mit FHEM / LWZ303i V.2.06 / Loxone / eisfair Server (LMS/NAS/cloud/et.) / Fronius WR mit 9,3 kwp

The Spirit

seit gestern habe ich auch probleme mit dem Modul.
bei mir kommt auch andauern im log:
THZ_Get: Error msg2:  THZ_ReadAnswer: InterfaceNotRespondig. Maybe too slow THZ_Get_Com: error found at step0
gibt es hier schon einen hinweis was das problem sein könnte?
habe in letzter zeit nichts an der anlage verändert.
THZ 304 Eco Baujahr 2015

andre.k

Hallo Fabian,

die beiden Logeinträge

2018.01.29 21:00:53 3: THZ_Get: Error msg2:  decode: command not known -- FE -> 010302FE1003
...
2018.01.29 21:02:52 3: THZ_Get: Error msg2:  decode: command not known -- 16 -> 01031A161003

sagen, dass die beiden Register FE und 16 offensichtlich bei deiner Anlage nicht implementiert sind.
Register 16 ist sSol, welches bestimmt nur bei Anlagen mit Solar existiert. Das würde auch zu Deiner FW 2.06 passen, diese ist m.E. nicht für Solar vorgesehen. Die Lösung wäre im sSol im Perl-Code von %getsonly2xx nach %getsonly214 zu verschieben. Oder du ignorierst den Fehler einfach. Du brauchst das Register ja nicht regelmäßig abfragen.
Das Register EF (sFirmware-Id) ist wahrscheinlich erst ab höheren FW-Versionen >2.x implementiert. Bei meiner FW 2.14 existiert auch kein Register EF. Mich wundert nur, dass das bisher noch niemendem außer Dir aufgefallen ist. Es gibt ja noch andere User mit FW 2.06. Vielleicht kann das mal jemand mit FW 2.06 überprüfen. Wenn sich mein Verdacht bestätigt, könnte  immi sFirmware-Id aus der %getsonly206 entfernen.

Andre


peter456

Zitat von: andre.k am 31 Januar 2018, 20:17:33
Hallo Fabian,

die beiden Logeinträge

2018.01.29 21:00:53 3: THZ_Get: Error msg2:  decode: command not known -- FE -> 010302FE1003
...
2018.01.29 21:02:52 3: THZ_Get: Error msg2:  decode: command not known -- 16 -> 01031A161003

sagen, dass die beiden Register FE und 16 offensichtlich bei deiner Anlage nicht implementiert sind.
Register 16 ist sSol, welches bestimmt nur bei Anlagen mit Solar existiert. Das würde auch zu Deiner FW 2.06 passen, diese ist m.E. nicht für Solar vorgesehen. Die Lösung wäre im sSol im Perl-Code von %getsonly2xx nach %getsonly214 zu verschieben. Oder du ignorierst den Fehler einfach. Du brauchst das Register ja nicht regelmäßig abfragen.
Das Register EF (sFirmware-Id) ist wahrscheinlich erst ab höheren FW-Versionen >2.x implementiert. Bei meiner FW 2.14 existiert auch kein Register EF. Mich wundert nur, dass das bisher noch niemendem außer Dir aufgefallen ist. Es gibt ja noch andere User mit FW 2.06. Vielleicht kann das mal jemand mit FW 2.06 überprüfen. Wenn sich mein Verdacht bestätigt, könnte  immi sFirmware-Id aus der %getsonly206 entfernen.

Andre

Hallo,
bei meiner LWZ303i Firmware 2.06 können diese beiden Register auch nicht dekodiert werden.
Error msg2:  decode: command not known -- FE -> 010302FE1003
Error msg2:  decode: command not known -- 16 -> 01031A161003

andre.k

#700
Hallo Peter,

danke fürs Testen. Dann bestätigt sich meine Theorie, dass Register sFirmwareID (EF) erst nach 2.06 realisiert wurde. Und sSol (16) gibt es offensichtlich nur bei den Solarversionen 2.1x und nicht bei 2.0x.


börni

I'm seeing in the log file after start the following Information:


2018.02.03 18:53:47 1: PERL WARNING: Use of uninitialized value in string eq at ./FHEM/00_THZ.pm line 1118.
2018.02.03 18:53:47 1: PERL WARNING: Use of uninitialized value in string eq at ./FHEM/00_THZ.pm line 1125.


failure or Feature  :o ;D

Thanks
Fabian
Loxberry auf RPi3 mit FHEM / LWZ303i V.2.06 / Loxone / eisfair Server (LMS/NAS/cloud/et.) / Fronius WR mit 9,3 kwp

andre.k

It's a minor bug ;)
line 1118 should be
if (defined($value->{type}) and ($value->{type} eq "0clean" or $value->{type} eq "1clean")) {
and line 1125
elsif (defined($value->{type}) and ($value->{type} eq "2opmode")){

Hi Immi please could you change this.

immi

Hi Andre
this means that you have a problem also in line 1164 when you when you e.g. set p01RoomTempDay?
immi

andre.k

Hi immi,

yes.

2018.02.03 21:06:58 1: PERL WARNING: Use of uninitialized value in pattern match (m//) at ./FHEM/00_THZ.pm line 1164.
2018.02.03 21:06:58 1: PERL WARNING: Use of uninitialized value in string eq at ./FHEM/00_THZ.pm line 1168.