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

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

Vorheriges Thema - Nächstes Thema

TheTrumpeter

Hello immi,

Two more values for FW5.39:
0A0027 is max. flow temp HC1 ("Max. Vorlauftemp. HZ" (Heigrundeinstellungen))
0A0580 is p11DHWsetManualTemp

Both of them use type "5temp".
FHEM auf RPi3, THZ (LWZ404SOL), RPII2C & I2C_MCP342x (ADCPiZero), PowerMap, CustomReadings, RPI_GPIO, Twilight, nanoCUL (WMBus für Diehl Wasserzähler & Regenerationszähler für BWT AqaSmart), ESPEasy, TPLinkHS110

immi

Zitat von: TheTrumpeter am 12 Februar 2017, 16:01:09
Hello immi,
Two more values for FW5.39:
0A0027 is max. flow temp HC1 ("Max. Vorlauftemp. HZ" (Heigrundeinstellungen))
0A0580 is p11DHWsetManualTemp
Both of them use type "5temp".

Hi Trumpeter
0A0580 is implemented since years; I do not understand

for 0A0027 it looks like also my older firmware is getting an answer, please check if it is plausible
0A0027-5A0A00270226
immi

TheTrumpeter

Sorry, I have overseen 0A0580 when parsing your code. (Cursor was below the line where it appears and I did not search in both directions.)

0A0027 does definitly work for my 5.39.
I changed it on the heatpump and read it in FHEM. The changed value is there in FHEM then.
Maybe it also works for other firmwares.

Zitat von: immi am 14 Februar 2017, 10:41:06
0A0027-5A0A00270226
I take 0x0226 as value. This is 550d and comes to 55,0°C.
FHEM auf RPi3, THZ (LWZ404SOL), RPII2C & I2C_MCP342x (ADCPiZero), PowerMap, CustomReadings, RPI_GPIO, Twilight, nanoCUL (WMBus für Diehl Wasserzähler & Regenerationszähler für BWT AqaSmart), ESPEasy, TPLinkHS110

TheTrumpeter

One more:

0A0180 is p36, DHWMaxTime. Unit "1clean" works for my FW5.39.
FHEM auf RPi3, THZ (LWZ404SOL), RPII2C & I2C_MCP342x (ADCPiZero), PowerMap, CustomReadings, RPI_GPIO, Twilight, nanoCUL (WMBus für Diehl Wasserzähler & Regenerationszähler für BWT AqaSmart), ESPEasy, TPLinkHS110

immi

Hi Trumpeter
ok  I will implement 0A0027 "5temp" and 0A0180 "1clean"
please suggest a name and an acceptable value range for both
immi

TheTrumpeter

Zitat von: immi am 15 Februar 2017, 00:42:34
0A0027 "5temp"
Range as per manual is 10-75°C.
Suggested name: p99HC1maxFlowTemp
Zitat von: immi am 15 Februar 2017, 00:42:34
0A0180 "1clean"
Range as per manual is 6-12h
Suggested name: p36DHWMaxTime

I'm still looking for some other readings/parameter, so there might be additional ones now and then.
FHEM auf RPi3, THZ (LWZ404SOL), RPII2C & I2C_MCP342x (ADCPiZero), PowerMap, CustomReadings, RPI_GPIO, Twilight, nanoCUL (WMBus für Diehl Wasserzähler & Regenerationszähler für BWT AqaSmart), ESPEasy, TPLinkHS110

immi

Zitat von: TheTrumpeter am 15 Februar 2017, 09:33:12
Range as per manual is 10-75°C.
Suggested name: p99HC1maxFlowTempRange as per manual is 6-12h
Suggested name: p36DHWMaxTime
done 0.156 committed
Zitat
I'm still looking for some other readings/parameter, so there might be additional ones now and then.
no problem, take yout time
immi

TheTrumpeter

Thanks.

Do you have an overview of all possible addresses/registers?
I think line 1489 gives more or less the possible registers starting with 0A, but what about any others?
I tried to read the first 256 starting with 0B, it returns a few new ones. How far to go there?
FHEM auf RPi3, THZ (LWZ404SOL), RPII2C & I2C_MCP342x (ADCPiZero), PowerMap, CustomReadings, RPI_GPIO, Twilight, nanoCUL (WMBus für Diehl Wasserzähler & Regenerationszähler für BWT AqaSmart), ESPEasy, TPLinkHS110

immi

Zitat von: TheTrumpeter am 15 Februar 2017, 21:29:41
Do you have an overview of all possible addresses/registers?
no
use with "0A", "0B" and "0C"
--
my @numbers = (1..65535);
....
my $cmd = "0A" . sprintf("%04X",  $indice);

--
pay attention that sometimes the heatpump stops reacting (for 1 or 2 seconds) if you you make too many requests too fast
immi

TheTrumpeter

OK thanks, that's what I already did for 0A when I then found out that line 1489 contains almost all the numbers of the registers that were responding.
Therefore I asked.

Zitat von: immi am 16 Februar 2017, 11:28:05
pay attention that sometimes the heatpump stops reacting (for 1 or 2 seconds) if you you make too many requests too fast
No response means, that some of the registers would be missing in the data.txt?

When I get "unknown request", the heatpump responds but does not give the data back. So these registers are not readable and could be skipped next time?
FHEM auf RPi3, THZ (LWZ404SOL), RPII2C & I2C_MCP342x (ADCPiZero), PowerMap, CustomReadings, RPI_GPIO, Twilight, nanoCUL (WMBus für Diehl Wasserzähler & Regenerationszähler für BWT AqaSmart), ESPEasy, TPLinkHS110

immi

Zitat von: TheTrumpeter am 16 Februar 2017, 13:15:03
OK thanks, that's what I already did for 0A when I then found out that line 1489 contains almost all the numbers of the registers that were responding.
Therefore I asked.
No response means, that some of the registers would be missing in the data.txt?
I do not remember exactly; I remember that I compared 2 runs  to be sure.
When I noticed different size of the files (more than 10%), I knew something got lost and I deleted the files.
Maybe with your newer tecalor, you do not have the issue.

TheTrumpeter

Well, maybe I try that then also.
I started a run on 0B just after lunch today; it stopped after only 24000 lines, but I do not know why.
Restarted it then, so I'll see when it stopps now.

One more point:
It seems that the run sometimes restarts itself just after it's already finished. Is that a wanted behaviour?
(I deactivated the line that deletes the data.txt, so it does not get deleted and I can stop the run when I see it was already finished for one time.)
FHEM auf RPi3, THZ (LWZ404SOL), RPII2C & I2C_MCP342x (ADCPiZero), PowerMap, CustomReadings, RPI_GPIO, Twilight, nanoCUL (WMBus für Diehl Wasserzähler & Regenerationszähler für BWT AqaSmart), ESPEasy, TPLinkHS110

immi

Zitat von: TheTrumpeter am 16 Februar 2017, 15:53:02
It seems that the run sometimes restarts itself just after it's already finished. Is that a wanted behaviour?
no.

the most reliable way to dump all register, is to wait 1 second in between;
but if you do it, it will take so long that you cannot compare the dump with the display, which has already changed.

TheTrumpeter

Another point... why is the lower limit for p04-p06 and p11 set to 14°C?
As per installation manual the lower limit is 10°C.

Same is for upper limit; it's set to 50°C although 55°C would be allowed as per manual.
FHEM auf RPi3, THZ (LWZ404SOL), RPII2C & I2C_MCP342x (ADCPiZero), PowerMap, CustomReadings, RPI_GPIO, Twilight, nanoCUL (WMBus für Diehl Wasserzähler & Regenerationszähler für BWT AqaSmart), ESPEasy, TPLinkHS110

immi

Zitat von: TheTrumpeter am 06 März 2017, 16:43:19
Another point... why is the lower limit for p04-p06 and p11 set to 14°C?
As per installation manual the lower limit is 10°C.
Same is for upper limit; it's set to 50°C although 55°C would be allowed as per manual.
I do not remember, why.
Please test them (change them in the code line 317...).
If it works, I will implement your proposal.
immi