Skip to content

Commit a0040c8

Browse files
authored
Configure local temperature calibration range for Bosch thermostats (#329)
1 parent c013c5b commit a0040c8

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

zha/application/platforms/number/__init__.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -867,6 +867,24 @@ class SonoffThermostatLocalTempCalibration(ThermostatLocalTempCalibration):
867867
_attr_native_step: float = 0.1
868868

869869

870+
@CONFIG_DIAGNOSTIC_MATCH(
871+
cluster_handler_names=CLUSTER_HANDLER_THERMOSTAT,
872+
models={
873+
"RBSH-RTH0-ZB-EU",
874+
"RBSH-TRV0-ZB-EU",
875+
"RBSH-TRV1-ZB-EU",
876+
"RBSH-RTH0-BAT-ZB-EU",
877+
},
878+
stop_on_match_group=CLUSTER_HANDLER_THERMOSTAT,
879+
)
880+
class BoschThermostatLocalTempCalibration(ThermostatLocalTempCalibration):
881+
"""Local temperature calibration for the Bosch TRV/RTH."""
882+
883+
_attr_native_min_value: float = -5.0
884+
_attr_native_max_value: float = 5.0
885+
_attr_native_step: float = 0.1
886+
887+
870888
@CONFIG_DIAGNOSTIC_MATCH(
871889
cluster_handler_names=CLUSTER_HANDLER_OCCUPANCY, models={"SNZB-06P", "SNZB-03P"}
872890
)

0 commit comments

Comments
 (0)