Skip to content

Commit

Permalink
Merge pull request #272 from sti0/feature/lwz-dewpoint
Browse files Browse the repository at this point in the history
Add dewpoint temperatures for LWZ
  • Loading branch information
pail23 authored Jul 4, 2024
2 parents c68e370 + a1ae4ec commit e548b9c
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions custom_components/stiebel_eltron_isg/lwz_coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e548b9c

Please sign in to comment.