From 445c663850d95bdec8667e5de2aad49ce1d890a4 Mon Sep 17 00:00:00 2001 From: tjani8 <122315491+tjani8@users.noreply.github.com> Date: Sun, 7 Jan 2024 16:37:38 +0200 Subject: [PATCH] Add buffer tank switch Add missing switch for buffer tank --- custom_components/aquarea/definitions.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/custom_components/aquarea/definitions.py b/custom_components/aquarea/definitions.py index d215cbc..a4deefa 100644 --- a/custom_components/aquarea/definitions.py +++ b/custom_components/aquarea/definitions.py @@ -818,6 +818,14 @@ def build_switches(mqtt_prefix: str) -> list[HeishaMonSwitchEntityDescription]: entity_category=EntityCategory.CONFIG, state=bit_to_bool, ), + HeishaMonSwitchEntityDescription( + heishamon_topic_id="SET18", # corresponds to TOP99 + key=f"{mqtt_prefix}main/Buffer_Installed", + command_topic=f"{mqtt_prefix}commands/SetBuffer", + name="Aquarea Buffer tank", + entity_category=EntityCategory.CONFIG, + state=bit_to_bool, + ), ]