1
1
"""Device handler for Bosch RBSH-RTH0-ZB-EU thermostat."""
2
2
3
- """
4
- There are some more undocumented values that have not been figured out what they do.
5
- In Thermostat cluster:
6
- 0x4023: Valid values 0-7
7
- 0x4024: Valid values 0-23
8
- 0x4025: Valid values 0-100
9
- 0x4050: Valid values 5-10
10
- 0x405b: Valid values 0-255
11
- 0x4063: Valid values 0-3 (turns on display when changed, probably the UFH/Boiler/Radiator setting, but the values are unknown)
12
-
13
- In UserInterface cluster:
14
- 0x4032: Valid values 0-15
15
- 0x406a: Valid values 0-255
16
- 0x406b: Valid values 0-255
17
- 0x406c: Valid values 0-255
18
- 0x406d: Valid values 0-255
19
- """
20
-
21
3
from zigpy .quirks import CustomCluster
22
4
from zigpy .quirks .v2 import QuirkBuilder
23
5
from zigpy .quirks .v2 .homeassistant import PERCENTAGE , EntityType , UnitOfTemperature
56
38
# External sensor connection config.
57
39
SENSOR_CONNECTION_ATTR_ID = 0x4062
58
40
41
+ """
42
+ There are some more undocumented attributes that have not been figured out what they do.
43
+
44
+ 0x4023: Valid range 0-7
45
+ 0x4024: Valid range 0-23
46
+ 0x4025: Valid range 0-100
47
+ 0x4050: Valid range 5-10
48
+ 0x405b: Valid range 0-255
49
+ 0x4063: Valid range 0-3 (turns on display when changed, probably the UFH/Boiler/Radiator setting, but the values are unknown)
50
+ """
51
+
59
52
"""Bosch specific user interface attribute ids."""
60
53
61
54
# Valve status LED config.
67
60
# Display brightness (0 - 10).
68
61
SCREEN_BRIGHTNESS_ATTR_ID = 0x403B
69
62
63
+ """
64
+ More undocumented and unknown attributes in the UserInterface cluster.
65
+
66
+ 0x4032: Valid range 0-15
67
+ 0x406a: Valid range 0-255
68
+ 0x406b: Valid range 0-255
69
+ 0x406c: Valid range 0-255
70
+ 0x406d: Valid range 0-255
71
+ """
72
+
70
73
71
74
class BoschOperatingMode (t .enum8 ):
72
75
"""Bosch operating mode attribute values."""
@@ -91,15 +94,15 @@ class BoschActuatorType(t.enum8):
91
94
92
95
93
96
class BoschValveStatusLed (t .enum8 ):
94
- """Valve status LED (dot next to heat/cool icon) functionality"""
97
+ """Valve status LED (dot next to heat/cool icon) functionality. """
95
98
96
99
AlwaysOff = 0x00
97
100
Normal = 0x01
98
101
AlwaysOn = 0x02
99
102
100
103
101
104
class BoschSensorConnection (t .enum8 ):
102
- """Sensor connection setting (for external 10K NTC sensor on S1/S2)"""
105
+ """Sensor connection setting (for external 10K NTC sensor on S1/S2). """
103
106
104
107
NotUsed = 0x00
105
108
WithoutRegulation = 0xB0
0 commit comments