Autor Thema: THZ Tecalor (LWZ Stiebel Eltron) module support and code improvement.  (Gelesen 103110 mal)

Offline immi

  • Developer
  • Sr. Member
  • ****
  • Beiträge: 912
Has anyone ever tried setting "pClockHour" with FHEM?
I tried it, but it's always returning the actual hour and does not change the time.
"pClockMinutes" seems to work properly.
I just googled
https://forum.fhem.de/index.php/topic,33211.msg260851.html#msg260851
toggle found out the registers.
immi

Offline TheTrumpeter

  • Full Member
  • ***
  • Beiträge: 380
So then maybe toggle can cross-check if changing the hour (still) works.
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)

Offline immi

  • Developer
  • Sr. Member
  • ****
  • Beiträge: 912
Hi Andre
would you mind xchecking line 820?
"sControl"           => {cmd2=>"F2", type =>"F2type", unit =>""},
why it is defined F2type?
actually line 820 can be deleted, because sControl already in %getsonly2xx.
thanks immi

Offline LeJoke

  • New Member
  • *
  • Beiträge: 5
Antw:THZ Tecalor (LWZ Stiebel Eltron) module support and code improvement.
« Antwort #753 am: 28 August 2018, 14:30:34 »
Hi,

looks like I found the "humidityAirOut" (Abluftfeuchte)in sGlobal (and on the way to there a couple other parameters as well. The other values appear to relate mostly to the P and B sensors from the electrical circuit layout from the installation manual. FowRate in sGlobal is returned as value when the parameter is not shown as a favorite ...).

On my device (304 integral SW 5.09) teh "Abluftfeuchte" is always displayed as "0" on the iPod display, so I could only do an indirect sanity check (increasing / decreasing humidityMin in humidity protection in order to trigger / untrigger the ventilation output decrease) - may be some one with a device where "humidityAirOut" is displayed can verfiy ...

"FBglob" => [
["outsideTemp: ",    8, 4, "hex2int", 10],
[" flowTemp: ",         12, 4, "hex2int", 10],
        [" returnTemp: ",     16, 4, "hex2int", 10],
        [" hotGasTemp: ",         20, 4, "hex2int", 10],
        [" dhwTemp: ",     24, 4, "hex2int", 10],
[" flowTempHC2: ",         28, 4, "hex2int", 10],
        [" evaporatorTemp: ",     36, 4, "hex2int", 10],
[" condenserTemp: ",     40, 4, "hex2int", 10],
        [" dhwPump: ",     44, 1, "bit0", 1],
[" heatingCircuitPump: ", 44, 1, "bit1", 1],
        [" solarPump: ",     44, 1, "bit3", 1],
        [" mixerOpen: ",     45, 1, "bit0", 1],
[" mixerClosed: ",     45, 1, "bit1", 1],
        [" heatPipeValve: ",     45, 1, "bit2", 1],
[" diverterValve: ",     45, 1, "bit3", 1],
        [" boosterStage3: ",     46, 1, "bit0", 1],
[" boosterStage2: ", 46, 1, "bit1", 1],
        [" boosterStage1: ",     46, 1, "bit2", 1],
[" compressor: ",     47, 1, "bit3", 1],
[" evuRelease: ",     48, 1, "bit0", 1], #X15-5
        [" ovenFireplace: ",     48, 1, "bit1", 1], #X15-6
[" STB: ",      48, 1, "bit2", 1], #X15-7
[" highPressureSensor: ", 49, 1, "nbit0", 1], # Wächter X15-1 is on per default - should be bit instead of nbit to match display
        [" lowPressureSensor: ", 49, 1, "nbit1", 1], # Wächter X15-2 not in 304 integral
[" evaporatorIceMonitor: ", 49, 1, "bit2", 1], #X15-3
        [" signalAnode: ",     49, 1, "bit3", 1], #X15-4
        [" outputVentilatorPower: ",50, 4, "hex", 10],
[" inputVentilatorPower: ", 54, 4, "hex", 10],
[" mainVentilatorPower: ", 58, 4, "hex", 10],
        [" outputVentilatorSpeed: ",62, 4, "hex", 1],
[" inputVentilatorSpeed: ", 66, 4, "hex", 1],
[" mainVentilatorSpeed: ", 70, 4, "hex", 1],
        [" outside_tempFiltered: ",74, 4, "hex2int", 10],
[" relHumidity: ",     78, 4, "hex2int", 10],
      [" dewPoint: ",     82, 4, "hex2int", 10],
      [" P_Nd: ",         86, 4, "hex2int", 100],
[" P_Hd: ",         90, 4, "hex2int", 100],
      [" actualPower_Qc: ",     94, 8, "esp_mant", 1],
[" actualPower_Pel: ", 102, 8, "esp_mant", 1],
      [" collectorTemp: ",     4,  4, "hex2int", 10], ##### parameters added later ...
  [" insideTemp: ",     32, 4, "hex2int", 10],
[" x44b2: ",     44, 1, "bit2", 1], ## LeJoke trial additons +++++++++++++++++++
  [" x46b3: ",     46, 1, "bit3", 1],
  [" x47b0: ",     47, 1, "bit0", 1],
  [" x47b1: ",     47, 1, "bit1", 1],
  [" windowOpen: ",     47, 1, "bit2", 1], # board X18-1 clamp X4-FA (FensterAuf): window open - signal out 230V
  [" quickAirVent: ", 48, 1, "bit3", 1], # board X15-8 clamp X4-SL (SchnellLüftung): quickAirVent - signal in 230V
  [" flowRate: ",    110, 4, "hex", 10], # board X51 sensor P5 (on newer models B1 flow temp as well)
  [" p_HCw: ",    114, 4, "hex", 100],# board X4-1..3 sensor P4 HC water pressure
  [" x118: ",    118, 4, "hex2int", 10], # ??? Ventilöffnung / Druck ??
  [" x122: ",    122, 4, "raw", 1],
  [" x126: ",    126, 4, "hex2int", 10], # vvvvvv Bxx temp sensors vvvvvvvvv
  [" x130: ",    130, 4, "hex2int", 10], # ?? WP flow ?
  [" x134: ",    134, 4, "hex2int", 10], # ??
  [" x138: ",    138, 4, "hex2int", 10], # ??
  [" x142: ",    142, 4, "hex2int", 10], # ??
  [" x146: ",    146, 4, "raw", 1],
  [" x150: ",    150, 4, "raw", 1],
  [" humidityAirOut: ", 154, 4, "hex", 100] # board X4-4..6 sensor B15
      ],
 

SOme screenshots of the paraemters attached

Offline LeJoke

  • New Member
  • *
  • Beiträge: 5
Antw:THZ Tecalor (LWZ Stiebel Eltron) module support and code improvement.
« Antwort #754 am: 28 August 2018, 14:42:17 »
... and some more commands (so far only read via "debug_read_...") - LLWT = LuftLuftWärmeTauscher - CrossSectionAirFlowHeatExchanger

0A057C   Ofen / Kamin (0=Aus … 4= Öffner - Überwachung)
0A057D   LLWT_MaxTimeDefrost (min)
0A057E   LLWT_Abtaubeginnschwelle (%) - StartDefrostTreshold
0A057F   LLWT_DrehzahlFilter (%) - increase in VentSpeed to indicate dirt / replacement needed
F7      diverse temp B sensors / P sensors also found in sGlobal

Offline immi

  • Developer
  • Sr. Member
  • ****
  • Beiträge: 912
Antw:THZ Tecalor (LWZ Stiebel Eltron) module support and code improvement.
« Antwort #755 am: 29 August 2018, 16:27:35 »
hi    LeJoke
thanks for sharing, I will test this night or tomorrow: I am the whole week on the seaside.
immi

Offline TheTrumpeter

  • Full Member
  • ***
  • Beiträge: 380
Antw:THZ Tecalor (LWZ Stiebel Eltron) module support and code improvement.
« Antwort #756 am: 02 September 2018, 20:14:37 »
On my device (304 integral SW 5.09) teh "Abluftfeuchte" is always displayed as "0" on the iPod display, so I could only do an indirect sanity check (increasing / decreasing humidityMin in humidity protection in order to trigger / untrigger the ventilation output decrease) - may be some one with a device where "humidityAirOut" is displayed can verfiy ...
Also my display always shows it as "0", but I have an external sensor just before the LWZ. Attached you'll find the comparison of external sensor and your reading. It's definitely the "Abluftfeuchte". Well done!


One more point:
Did you change the order of the readings in "sGlobal"?
I've just overtaken your code, today's DHW-cycle shows useage of "booster-stage 1" although it definitely was not activated.
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)

Offline immi

  • Developer
  • Sr. Member
  • ****
  • Beiträge: 912
Antw:THZ Tecalor (LWZ Stiebel Eltron) module support and code improvement.
« Antwort #757 am: 03 September 2018, 11:25:25 »
Hi LeJoke
I implemented your suggestions and committed
immi

Offline TheTrumpeter

  • Full Member
  • ***
  • Beiträge: 380
Antw:THZ Tecalor (LWZ Stiebel Eltron) module support and code improvement.
« Antwort #758 am: 03 September 2018, 12:56:39 »
Hi LeJoke
I implemented your suggestions and committed
immi
Are you sure you uploaded your changes?
I just did an update, but sGlobal is unchanged.

EDIT: Just crosschecked https://github.com/mhop/fhem-mirror/blob/master/fhem/FHEM/00_THZ.pm, it's unchanged there.
« Letzte Änderung: 03 September 2018, 13:21:30 von TheTrumpeter »
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)

Offline immi

  • Developer
  • Sr. Member
  • ****
  • Beiträge: 912
Antw:THZ Tecalor (LWZ Stiebel Eltron) module support and code improvement.
« Antwort #759 am: 03 September 2018, 16:09:49 »
Are you sure you uploaded your changes?
I just did an update, but sGlobal is unchanged.
EDIT: Just crosschecked https://github.com/mhop/fhem-mirror/blob/master/fhem/FHEM/00_THZ.pm, it's unchanged there.
it takes up to 12h for git and the fhem update function to sinc from fhem original repository
https://svn.fhem.de/trac/browser/trunk/fhem/FHEM

Offline LeJoke

  • New Member
  • *
  • Beiträge: 5
Antw:THZ Tecalor (LWZ Stiebel Eltron) module support and code improvement.
« Antwort #760 am: 04 September 2018, 10:34:57 »

One more point:
Did you change the order of the readings in "sGlobal"?
I've just overtaken your code, today's DHW-cycle shows useage of "booster-stage 1" although it definitely was not activated.

... sorry, not on purpose, but you are right - I had accidentally posted a sGlobal where the previously known parameters were mostly reordered according to their position in the response string ...
to be on the save side, only the additions starting at   [" x44b2: ",     44, 1, "bit2", 1], ## LeJoke trial additons +++++++++++++++++++
  [" x46b3: ",     46, 1, "bit3", 1],
  [" x47b0: ",     47, 1, "bit0", 1],
  [" x47b1: ",     47, 1, "bit1", 1],
  [" windowOpen: ",     47, 1, "bit2", 1], # board X18-1 clamp X4-FA (FensterAuf): window open - signal out 230V
  [" quickAirVent: ", 48, 1, "bit3", 1], # board X15-8 clamp X4-SL (SchnellLüftung): quickAirVent - signal in 230V
  [" flowRate: ",    110, 4, "hex", 10], # board X51 sensor P5 (on newer models B1 flow temp as well)
  [" p_HCw: ",    114, 4, "hex", 100],# board X4-1..3 sensor P4 HC water pressure
  [" x118: ",    118, 4, "hex2int", 10], # ??? Ventilöffnung / Druck ??
  [" x122: ",    122, 4, "raw", 1],
  [" x126: ",    126, 4, "hex2int", 10], # vvvvvv Bxx temp sensors vvvvvvvvv
  [" x130: ",    130, 4, "hex2int", 10], # ?? WP flow ?
  [" x134: ",    134, 4, "hex2int", 10], # ??
  [" x138: ",    138, 4, "hex2int", 10], # ??
  [" x142: ",    142, 4, "hex2int", 10], # ??
  [" x146: ",    146, 4, "raw", 1],
  [" x150: ",    150, 4, "raw", 1],
  [" humidityAirOut: ", 154, 4, "hex", 100] # board X4-4..6 sensor B15

should be added ...

Best Regards

Offline TheTrumpeter

  • Full Member
  • ***
  • Beiträge: 380
Antw:THZ Tecalor (LWZ Stiebel Eltron) module support and code improvement.
« Antwort #761 am: 04 September 2018, 14:26:41 »
Today in the morning I tried another FHEM-update, now immi's new version is there. He already took care about the order of the signals.
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)

Offline andre.k

  • Full Member
  • ***
  • Beiträge: 107
Antw:THZ Tecalor (LWZ Stiebel Eltron) module support and code improvement.
« Antwort #762 am: 07 September 2018, 20:19:09 »
Hi Andre
would you mind xchecking line 820?
"sControl"           => {cmd2=>"F2", type =>"F2type", unit =>""},
why it is defined F2type?
actually line 820 can be deleted, because sControl already in %getsonly2xx.
thanks immi
hi immi,
sorry for my late answer.

And yes the line with F2type can be deleted. I'm not 100% sure, if the register F2 is implemented in all 2xx versions.

 

decade-submarginal