Skip to content

Commit

Permalink
Added buffer tank delta control logic
Browse files Browse the repository at this point in the history
  • Loading branch information
geduxas authored and kamaradclimber committed Dec 22, 2022
1 parent 607ab4d commit 4ac448f
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions custom_components/aquarea/definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,20 @@ def build_numbers(mqtt_prefix: str) -> list[HeishaMonNumberEntityDescription]:
state=int,
state_to_mqtt=int,
),
HeishaMonNumberEntityDescription(
heishamon_topic_id="SET27", # also corresponds to TOP113
key=f"{mqtt_prefix}main/Buffer_Tank_Delta",
command_topic=f"{mqtt_prefix}commands/SetBufferDelta",
name="Aquarea Buffer tank delta",
entity_category=EntityCategory.CONFIG,
device_class=SensorDeviceClass.TEMPERATURE,
native_unit_of_measurement="°C",
native_min_value=0,
native_max_value=10,
state=int,
state_to_mqtt=int,
entity_registry_enabled_default=False, # by default we hide all options related to less common setup (cooling, buffer, solar and pool)
),
]


Expand Down Expand Up @@ -1269,6 +1283,15 @@ def build_sensors(mqtt_prefix: str) -> list[HeishaMonSensorEntityDescription]:
state=read_solar_mode,
entity_registry_enabled_default=False, # by default we hide all options related to less common setup (cooling, buffer, solar and pool)
),
HeishaMonSensorEntityDescription(
heishamon_topic_id="TOP113",
key=f"{mqtt_prefix}main/Buffer_Tank_Delta",
state_class=SensorStateClass.MEASUREMENT,
name="Aquarea Buffer tank delta",
device_class=SensorDeviceClass.TEMPERATURE,
native_unit_of_measurement="°C",
entity_registry_enabled_default=False, # by default we hide all options related to less common setup (cooling, buffer, solar and pool)
),
HeishaMonSensorEntityDescription(
heishamon_topic_id="STAT1_rssi",
key=f"{mqtt_prefix}stats",
Expand Down

0 comments on commit 4ac448f

Please sign in to comment.