13
13
Thermostat ,
14
14
UserInterface ,
15
15
)
16
- from zigpy .zcl .foundation import ZCLAttributeDef , ZCLCommandDef
16
+ from zigpy .zcl .foundation import Direction , ZCLAttributeDef , ZCLCommandDef
17
17
18
18
"""Bosch specific thermostat attribute ids."""
19
19
@@ -128,9 +128,9 @@ class BoschControlSequenceOfOperation(t.enum8):
128
128
BoschDisplayOrientation .Flipped : 0x01 ,
129
129
}
130
130
131
- """Battery saving Reporting Configuration"""
132
- REPORT_CONFIG_BATTERY_SAVE = ReportingConfig (
133
- min_interval = 3600 , max_interval = 10800 , reportable_change = 1
131
+ """Bosch Attributes Reporting Configuration"""
132
+ BOSCH_ATTR_REPORT_CONFIG = ReportingConfig (
133
+ min_interval = 10 , max_interval = 10800 , reportable_change = 1
134
134
)
135
135
136
136
@@ -175,7 +175,10 @@ class ServerCommandDefs(Thermostat.ServerCommandDefs):
175
175
"""Bosch thermostat manufacturer specific server commands."""
176
176
177
177
calibrate_valve : Final = ZCLCommandDef (
178
- id = CALIBRATE_VALVE_CMD_ID , schema = {}, direction = False
178
+ id = CALIBRATE_VALVE_CMD_ID ,
179
+ schema = {},
180
+ direction = Direction .Client_to_Server ,
181
+ is_manufacturer_specific = True ,
179
182
)
180
183
181
184
async def write_attributes (
@@ -471,7 +474,7 @@ async def write_attributes(
471
474
BoschThermostatCluster .cluster_id ,
472
475
entity_platform = EntityPlatform .SENSOR ,
473
476
entity_type = EntityType .DIAGNOSTIC ,
474
- reporting_config = REPORT_CONFIG_BATTERY_SAVE ,
477
+ reporting_config = BOSCH_ATTR_REPORT_CONFIG ,
475
478
translation_key = "operating_mode" ,
476
479
fallback_name = "Operating mode" ,
477
480
)
@@ -482,15 +485,15 @@ async def write_attributes(
482
485
BoschThermostatCluster .cluster_id ,
483
486
entity_platform = EntityPlatform .SENSOR ,
484
487
entity_type = EntityType .DIAGNOSTIC ,
485
- reporting_config = REPORT_CONFIG_BATTERY_SAVE ,
488
+ reporting_config = BOSCH_ATTR_REPORT_CONFIG ,
486
489
translation_key = "valve_adapt_status" ,
487
490
fallback_name = "Valve adaptation status" ,
488
491
)
489
492
# Fast heating/boost.
490
493
.switch (
491
494
BoschThermostatCluster .AttributeDefs .boost_heating .name ,
492
495
BoschThermostatCluster .cluster_id ,
493
- reporting_config = REPORT_CONFIG_BATTERY_SAVE ,
496
+ reporting_config = BOSCH_ATTR_REPORT_CONFIG ,
494
497
translation_key = "boost_heating" ,
495
498
fallback_name = "Boost" ,
496
499
)
0 commit comments