From a1ae4ecd917da40ee5782276b5e6ec00f6a1aea1 Mon Sep 17 00:00:00 2001 From: sti0 Date: Wed, 3 Jul 2024 21:36:12 +0000 Subject: [PATCH] add dewpoint for LWZ --- .../stiebel_eltron_isg/lwz_coordinator.py | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/custom_components/stiebel_eltron_isg/lwz_coordinator.py b/custom_components/stiebel_eltron_isg/lwz_coordinator.py index 6563d45..b79e4c9 100644 --- a/custom_components/stiebel_eltron_isg/lwz_coordinator.py +++ b/custom_components/stiebel_eltron_isg/lwz_coordinator.py @@ -38,6 +38,8 @@ CONSUMED_WATER_HEATING, CONSUMED_WATER_HEATING_TODAY, CONSUMED_WATER_HEATING_TOTAL, + DEWPOINT_TEMPERATURE_HK1, + DEWPOINT_TEMPERATURE_HK2, ECO_TEMPERATURE_TARGET_HK1, ECO_TEMPERATURE_TARGET_HK2, ECO_WATER_TEMPERATURE_TARGET, @@ -222,11 +224,20 @@ async def read_modbus_system_values(self) -> dict: result[EXTRACT_AIR_ACTUAL_FAN_SPEED] = decoder.decode_16bit_uint() result[EXTRACT_AIR_TARGET_FLOW_RATE] = decoder.decode_16bit_uint() result[EXTRACT_AIR_HUMIDITY] = decoder.decode_16bit_uint() - # skip 23-30 - decoder.skip_bytes(16) # + # skip 23-24 + decoder.skip_bytes(4) + # 25-26 + result[DEWPOINT_TEMPERATURE_HK1] = get_isg_scaled_value( + decoder.decode_16bit_int() + ) + result[DEWPOINT_TEMPERATURE_HK2] = get_isg_scaled_value( + decoder.decode_16bit_int() + ) + # skip 27-30 + decoder.skip_bytes(8) # 31 compressor_starts_high = decoder.decode_16bit_uint() - decoder.skip_bytes(4) # + decoder.skip_bytes(4) compressor_starts_low = decoder.decode_16bit_uint() if compressor_starts_high == 32768: result[COMPRESSOR_STARTS] = compressor_starts_high