Skip to content

Add DHW sensor selection read topic and SET command#847

Merged
IgorYbema merged 1 commit intoheishamon:mainfrom
hubertciebiada:feature/dhw-sensor-selection
Apr 1, 2026
Merged

Add DHW sensor selection read topic and SET command#847
IgorYbema merged 1 commit intoheishamon:mainfrom
hubertciebiada:feature/dhw-sensor-selection

Conversation

@hubertciebiada
Copy link
Copy Markdown
Contributor

@hubertciebiada hubertciebiada commented Mar 31, 2026

Summary

  • Adds a new read topic TOP143 (DHW_Sensor_Selection) that decodes byte 11, bits 7-8, reporting which DHW tank sensor is active (0 = Top, 1 = Center)
  • Adds a new SET command SetDHWSensorSelection (SET43) to switch between Top and Center DHW tank sensors via MQTT
  • Updates MQTT-Topics.md and ProtocolByteDecrypt.md documentation accordingly

This is applicable to K/L series All-In-One units only, where the DHW tank has both a top and center temperature sensor. The byte 11 bits 7-8 layout was already documented in ProtocolByteDecrypt.md but had no corresponding read topic or SET command.

Changes

File Change
HeishaMon/decode.h Added TOP143 entry to topics[], topicBytes[] (byte 11), topicFunctions[] (getBit7and8), topicDescription[] (DHWSensorType), and incremented NUMBER_OF_TOPICS to 144
HeishaMon/commands.h Added set_dhw_sensor_selection declaration and SetDHWSensorSelection entry in commands[] array
HeishaMon/commands.cpp Added set_dhw_sensor_selection() implementation (writes to byte 11, bits 7-8: 0b01 = Top, 0b10 = Center)
MQTT-Topics.md Added TOP143 sensor topic and SET43 command documentation
ProtocolByteDecrypt.md Updated byte 11 reference to include TOP143

Adds read support for DHW sensor selection (byte 11, bits 7-8) as a new
topic (TOP143), and a SetDHWSensorSelection command to switch between
Top and Center tank sensors via MQTT.

This enables automation scenarios where the active DHW sensor can be
toggled programmatically (e.g., alternating between top and center
readings for monitoring both tank positions).

Applicable to K/L series All-In-One units only.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Member

@IgorYbema IgorYbema left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks ok

@IgorYbema IgorYbema merged commit b975d8a into heishamon:main Apr 1, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants