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

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

Vorheriges Thema - Nächstes Thema

Frostie

Thank you both for your quick answers!

@ Markus: I got the message that only p01-p12 can be set.

@ Immi: Great. Thanks a lot. I will try it as soon as possible and give feedback!

P.S. I ask my self how i survived without that module  ;) Just yesterday evening the THZ continously switched between making hot water and heating.
A syndrome appearing when the one-way velve doens't close correctly due to particles of dirt. Thus after switching the return water of the heat circuit can flow through the water circuit and cools it down in some seconds. I had the same situation last year and realized it after one week!
It is really so helpful to have the possibility to monitor the functionality!

MfG
Dominik

micomat

Yep, i know. I control my air vent with the THZ module better in winter mode to avoid humidity from being too low.
Thats not possible without THZ :)

Have you ever had a look at all the THZ info in fhemwiki? There are some more ReadingsGroups examples and so...

Best,
Markus
Synology DS218+ with fhem+iobroker in docker, 2x RasPi w. ser2net, CUL433+868, IT, EGPM2LAN, THZ/LWZ, FB_Callmonitor, HMS100TF, Homematic, 2x TX3-TH, Pushover, USB-IR-SML-Head, SONOS, GHoma, MBus, KLF200

Frostie

That's true. The vent control is also a great benefit.
Yes, i already read the information in fhemwiki. Unfortunately e.g. the vent timeout for 60 min didn't work.
I suppose that there are some more functionalities that won't work with my firmware version. As Immi already stated, the module is primarily proved for newer versions.
The main parameters can be set and all paramters can be read. That's already more I ever had before and as I just started to use this module there is certainly a lot of time and room for experiments  ;) E.g. i like the idea to control the vent due to the status of presence (via mobile phone registration in the wlan) or in dependency of the air quality measured by a co2 usb stick.

micomat

You can create your own timevent off for 60mins with DOIF or AT and notify if you need that ;)
p07fanStageDay and p08FanStageNight should be writeable. i do it automatically.

if you want to, i can send the config.
Synology DS218+ with fhem+iobroker in docker, 2x RasPi w. ser2net, CUL433+868, IT, EGPM2LAN, THZ/LWZ, FB_Callmonitor, HMS100TF, Homematic, 2x TX3-TH, Pushover, USB-IR-SML-Head, SONOS, GHoma, MBus, KLF200

immi

Zitat von: Frostie am 21 Januar 2016, 13:16:48
@ Immi: Great. Thanks a lot. I will try it as soon as possible and give feedback!
Dominik, you are welcome
The only condition (gentlemen-agreement) for the support here, is that when you have a working solution for the old firmware, you share your experience with the forum and wiki.
Clearly depending on your time and know-how :)
immi

Frostie

Gute Idee. Gerne  :) Wer würde da schon nein sagen ;)
Sollte ich mal etwas Zeit haben und etwas lohnendes dabei entstehen werde ich den Ball natürlich gerne auch zurückspielen ;)

Frostie

Was just answering in that way  ;D as soon as i have some more experience to share i will of couse do that... ;)

Frostie

Hello Immi,

just tried the new file. The entry appears and I can set p80 in FHEM. Unfortunately it doesn't work. In the moment I set the parameter the network connection to the Raspi gets lost and I have to take it from the energy source. The follwoing entry is written in the Log File. Any idea?

2016.01.21 22:19:03 1: PERL WARNING: Use of uninitialized value $cmd in concatenation (.) or string at ./FHEM/00_THZ.pm line 1280.
2016.01.21 22:19:03 1: PERL WARNING: Use of uninitialized value in hash element at ./FHEM/00_THZ.pm line 916.
Can't use an undefined value as an ARRAY reference at ./FHEM/00_THZ.pm line 928.

Thank you!

Frostie

Perhaps in addition:

in the single reading and entry is displayed: "p80EnableSolar argument"
while in the reading pSolar "p80EnableSolar 0" is written

immi

Hi dominik
sorry there was a stupid error, which has been fixed.

If this new version still has problems please post the log with verbose level of the THZ module to 5
immi

Frostie

Again what learned ... as Loddar Matthäus would say ;)

Here you are:

2016.01.21 23:33:14 5: Cmd: >set Mythz p80EnableSolar 1<
2016.01.21 23:33:14 1: PERL WARNING: Use of uninitialized value $cmd in concatenation (.) or string at ./FHEM/00_THZ.pm line 1280.
2016.01.21 23:33:14 5: THZ_Get_Comunication: Check if port is open. State = '(opened)'
2016.01.21 23:33:15 5: Mythz sending 02
2016.01.21 23:33:15 5: SW: 02
2016.01.21 23:33:15 5: Mythz start Funktion THZ_ReadAnswer
2016.01.21 23:33:15 5: THZ_ReadAnswer: uc unpack: '10'
2016.01.21 23:33:15 5: Mythz sending 0100011003
2016.01.21 23:33:15 5: SW: 0100011003
2016.01.21 23:33:15 5: Mythz start Funktion THZ_ReadAnswer
2016.01.21 23:33:15 5: THZ_ReadAnswer: uc unpack: '10'
2016.01.21 23:33:15 5: Mythz start Funktion THZ_ReadAnswer
2016.01.21 23:33:15 5: THZ_ReadAnswer: uc unpack: '02'
2016.01.21 23:33:15 5: Mythz sending 10
2016.01.21 23:33:15 5: SW: 10
2016.01.21 23:33:15 5: Mythz start Funktion THZ_ReadAnswer
2016.01.21 23:33:15 5: double read 1 activated 01
2016.01.21 23:33:15 5: double read 1 result with buf1  0100
2016.01.21 23:33:15 5: double read 2 activated 0100
2016.01.21 23:33:15 5: double read 2 result with buf1  01009F
2016.01.21 23:33:15 5: double read 3 activated 01009F
2016.01.21 23:33:15 5: double read 3 result with buf1  01009FF3
2016.01.21 23:33:15 5: double read 4 activated 01009FF3
2016.01.21 23:33:15 5: double read 4 result with buf1  01009FF301
2016.01.21 23:33:15 5: double read 5 activated 01009FF301
2016.01.21 23:33:15 5: double read 5 result with buf1  01009FF301DF
2016.01.21 23:33:15 5: double read 6 activated 01009FF301DF
2016.01.21 23:33:15 5: double read 6 result with buf1  01009FF301DFFF
2016.01.21 23:33:15 5: double read 7 activated 01009FF301DFFF
2016.01.21 23:33:15 5: double read 7 result with buf1  01009FF301DFFF4F
2016.01.21 23:33:15 5: double read 8 activated 01009FF301DFFF4F
2016.01.21 23:33:15 5: double read 8 result with buf1  01009FF301DFFF4F01
2016.01.21 23:33:15 5: double read 9 activated 01009FF301DFFF4F01
2016.01.21 23:33:15 5: double read 9 result with buf1  01009FF301DFFF4F01C2
2016.01.21 23:33:15 5: double read 10 activated 01009FF301DFFF4F01C2
2016.01.21 23:33:15 5: double read 10 result with buf1  01009FF301DFFF4F01C200
2016.01.21 23:33:15 5: double read 11 activated 01009FF301DFFF4F01C200
2016.01.21 23:33:15 5: double read 11 result with buf1  01009FF301DFFF4F01C20000
2016.01.21 23:33:15 5: double read 12 activated 01009FF301DFFF4F01C20000
2016.01.21 23:33:15 5: double read 12 result with buf1  01009FF301DFFF4F01C2000031
2016.01.21 23:33:15 5: double read 13 activated 01009FF301DFFF4F01C2000031
2016.01.21 23:33:15 5: double read 13 result with buf1  01009FF301DFFF4F01C200003118
2016.01.21 23:33:15 5: double read 14 activated 01009FF301DFFF4F01C200003118
2016.01.21 23:33:15 5: double read 14 result with buf1  01009FF301DFFF4F01C20000311800
2016.01.21 23:33:15 5: double read 15 activated 01009FF301DFFF4F01C20000311800
2016.01.21 23:33:15 5: double read 15 result with buf1  01009FF301DFFF4F01C2000031180000
2016.01.21 23:33:15 5: double read 16 activated 01009FF301DFFF4F01C2000031180000
2016.01.21 23:33:15 5: double read 16 result with buf1  01009FF301DFFF4F01C200003118000000
2016.01.21 23:33:15 5: double read 17 activated 01009FF301DFFF4F01C200003118000000
2016.01.21 23:33:15 5: double read 17 result with buf1  01009FF301DFFF4F01C20000311800000001
2016.01.21 23:33:15 5: double read 18 activated 01009FF301DFFF4F01C20000311800000001
2016.01.21 23:33:15 5: double read 18 result with buf1  01009FF301DFFF4F01C2000031180000000100
2016.01.21 23:33:15 5: double read 19 activated 01009FF301DFFF4F01C2000031180000000100
2016.01.21 23:33:15 5: double read 19 result with buf1  01009FF301DFFF4F01C200003118000000010001
2016.01.21 23:33:15 5: double read 20 activated 01009FF301DFFF4F01C200003118000000010001
2016.01.21 23:33:15 5: double read 20 result with buf1  01009FF301DFFF4F01C200003118000000010001B0
2016.01.21 23:33:15 5: double read 21 activated 01009FF301DFFF4F01C200003118000000010001B0
2016.01.21 23:33:15 5: double read 21 result with buf1  01009FF301DFFF4F01C200003118000000010001B0BF
2016.01.21 23:33:15 5: double read 22 activated 01009FF301DFFF4F01C200003118000000010001B0BF
2016.01.21 23:33:15 5: double read 22 result with buf1  01009FF301DFFF4F01C200003118000000010001B0BF10
2016.01.21 23:33:15 5: double read 23 activated 01009FF301DFFF4F01C200003118000000010001B0BF10
2016.01.21 23:33:15 5: double read 23 result with buf1  01009FF301DFFF4F01C200003118000000010001B0BF1003
2016.01.21 23:33:15 5: THZ_ReadAnswer: uc unpack: '01009FF301DFFF4F01C200003118000000010001B0BF1003'
2016.01.21 23:33:15 5: Mythz sending 10
2016.01.21 23:33:15 5: SW: 10
2016.01.21 23:33:15 5: read before write from THZ: F301DFFF4F01C200003118000000010001B0BF
2016.01.21 23:33:15 1: PERL WARNING: Use of uninitialized value in hash element at ./FHEM/00_THZ.pm line 916.
Can't use an undefined value as an ARRAY reference at ./FHEM/00_THZ.pm line 928.

Frostie

@ Markus, now I understand your hint to verbose 5 ;) Always thought LogFile is LogFile

Frostie

with the new PM the edit "argument" has gone. But the situation stays. Here is the Log:

2016.01.21 23:33:14 5: Cmd: >set Mythz p80EnableSolar 1<
2016.01.21 23:33:14 1: PERL WARNING: Use of uninitialized value $cmd in concatenation (.) or string at ./FHEM/00_THZ.pm line 1280.
2016.01.21 23:33:14 5: THZ_Get_Comunication: Check if port is open. State = '(opened)'
2016.01.21 23:33:15 5: Mythz sending 02
2016.01.21 23:33:15 5: SW: 02
2016.01.21 23:33:15 5: Mythz start Funktion THZ_ReadAnswer
2016.01.21 23:33:15 5: THZ_ReadAnswer: uc unpack: '10'
2016.01.21 23:33:15 5: Mythz sending 0100011003
2016.01.21 23:33:15 5: SW: 0100011003
2016.01.21 23:33:15 5: Mythz start Funktion THZ_ReadAnswer
2016.01.21 23:33:15 5: THZ_ReadAnswer: uc unpack: '10'
2016.01.21 23:33:15 5: Mythz start Funktion THZ_ReadAnswer
2016.01.21 23:33:15 5: THZ_ReadAnswer: uc unpack: '02'
2016.01.21 23:33:15 5: Mythz sending 10
2016.01.21 23:33:15 5: SW: 10
2016.01.21 23:33:15 5: Mythz start Funktion THZ_ReadAnswer
2016.01.21 23:33:15 5: double read 1 activated 01
2016.01.21 23:33:15 5: double read 1 result with buf1  0100
2016.01.21 23:33:15 5: double read 2 activated 0100
2016.01.21 23:33:15 5: double read 2 result with buf1  01009F
2016.01.21 23:33:15 5: double read 3 activated 01009F
2016.01.21 23:33:15 5: double read 3 result with buf1  01009FF3
2016.01.21 23:33:15 5: double read 4 activated 01009FF3
2016.01.21 23:33:15 5: double read 4 result with buf1  01009FF301
2016.01.21 23:33:15 5: double read 5 activated 01009FF301
2016.01.21 23:33:15 5: double read 5 result with buf1  01009FF301DF
2016.01.21 23:33:15 5: double read 6 activated 01009FF301DF
2016.01.21 23:33:15 5: double read 6 result with buf1  01009FF301DFFF
2016.01.21 23:33:15 5: double read 7 activated 01009FF301DFFF
2016.01.21 23:33:15 5: double read 7 result with buf1  01009FF301DFFF4F
2016.01.21 23:33:15 5: double read 8 activated 01009FF301DFFF4F
2016.01.21 23:33:15 5: double read 8 result with buf1  01009FF301DFFF4F01
2016.01.21 23:33:15 5: double read 9 activated 01009FF301DFFF4F01
2016.01.21 23:33:15 5: double read 9 result with buf1  01009FF301DFFF4F01C2
2016.01.21 23:33:15 5: double read 10 activated 01009FF301DFFF4F01C2
2016.01.21 23:33:15 5: double read 10 result with buf1  01009FF301DFFF4F01C200
2016.01.21 23:33:15 5: double read 11 activated 01009FF301DFFF4F01C200
2016.01.21 23:33:15 5: double read 11 result with buf1  01009FF301DFFF4F01C20000
2016.01.21 23:33:15 5: double read 12 activated 01009FF301DFFF4F01C20000
2016.01.21 23:33:15 5: double read 12 result with buf1  01009FF301DFFF4F01C2000031
2016.01.21 23:33:15 5: double read 13 activated 01009FF301DFFF4F01C2000031
2016.01.21 23:33:15 5: double read 13 result with buf1  01009FF301DFFF4F01C200003118
2016.01.21 23:33:15 5: double read 14 activated 01009FF301DFFF4F01C200003118
2016.01.21 23:33:15 5: double read 14 result with buf1  01009FF301DFFF4F01C20000311800
2016.01.21 23:33:15 5: double read 15 activated 01009FF301DFFF4F01C20000311800
2016.01.21 23:33:15 5: double read 15 result with buf1  01009FF301DFFF4F01C2000031180000
2016.01.21 23:33:15 5: double read 16 activated 01009FF301DFFF4F01C2000031180000
2016.01.21 23:33:15 5: double read 16 result with buf1  01009FF301DFFF4F01C200003118000000
2016.01.21 23:33:15 5: double read 17 activated 01009FF301DFFF4F01C200003118000000
2016.01.21 23:33:15 5: double read 17 result with buf1  01009FF301DFFF4F01C20000311800000001
2016.01.21 23:33:15 5: double read 18 activated 01009FF301DFFF4F01C20000311800000001
2016.01.21 23:33:15 5: double read 18 result with buf1  01009FF301DFFF4F01C2000031180000000100
2016.01.21 23:33:15 5: double read 19 activated 01009FF301DFFF4F01C2000031180000000100
2016.01.21 23:33:15 5: double read 19 result with buf1  01009FF301DFFF4F01C200003118000000010001
2016.01.21 23:33:15 5: double read 20 activated 01009FF301DFFF4F01C200003118000000010001
2016.01.21 23:33:15 5: double read 20 result with buf1  01009FF301DFFF4F01C200003118000000010001B0
2016.01.21 23:33:15 5: double read 21 activated 01009FF301DFFF4F01C200003118000000010001B0
2016.01.21 23:33:15 5: double read 21 result with buf1  01009FF301DFFF4F01C200003118000000010001B0BF
2016.01.21 23:33:15 5: double read 22 activated 01009FF301DFFF4F01C200003118000000010001B0BF
2016.01.21 23:33:15 5: double read 22 result with buf1  01009FF301DFFF4F01C200003118000000010001B0BF10
2016.01.21 23:33:15 5: double read 23 activated 01009FF301DFFF4F01C200003118000000010001B0BF10
2016.01.21 23:33:15 5: double read 23 result with buf1  01009FF301DFFF4F01C200003118000000010001B0BF1003
2016.01.21 23:33:15 5: THZ_ReadAnswer: uc unpack: '01009FF301DFFF4F01C200003118000000010001B0BF1003'
2016.01.21 23:33:15 5: Mythz sending 10
2016.01.21 23:33:15 5: SW: 10
2016.01.21 23:33:15 5: read before write from THZ: F301DFFF4F01C200003118000000010001B0BF
2016.01.21 23:33:15 1: PERL WARNING: Use of uninitialized value in hash element at ./FHEM/00_THZ.pm line 916.
Can't use an undefined value as an ARRAY reference at ./FHEM/00_THZ.pm line 928.

micomat

Synology DS218+ with fhem+iobroker in docker, 2x RasPi w. ser2net, CUL433+868, IT, EGPM2LAN, THZ/LWZ, FB_Callmonitor, HMS100TF, Homematic, 2x TX3-TH, Pushover, USB-IR-SML-Head, SONOS, GHoma, MBus, KLF200

immi

Hi Dominik
thanks for the logs
another update here
Just to be sure:
always make sure

  • stopping FHEM
  • changing the pm-file
  • restarting FHEM
than post the logs
immi