python-qube-heatpump 1.2.2__py3-none-any.whl → 1.3.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,269 @@
1
+ """Binary sensor entity definitions for Qube Heat Pump."""
2
+
3
+ from .base import EntityDef, InputType, Platform
4
+
5
+ _BINARY_SENSOR_DEFS: tuple[EntityDef, ...] = (
6
+ EntityDef(
7
+ key="dout_srcpmp_val",
8
+ name="Source pump power supply",
9
+ address=0,
10
+ input_type=InputType.DISCRETE_INPUT,
11
+ platform=Platform.BINARY_SENSOR,
12
+ ),
13
+ EntityDef(
14
+ key="dout_usrpmp_val",
15
+ name="User pump power supply",
16
+ address=1,
17
+ input_type=InputType.DISCRETE_INPUT,
18
+ platform=Platform.BINARY_SENSOR,
19
+ ),
20
+ EntityDef(
21
+ key="dout_fourwayvlv_val",
22
+ name="Four-way valve control",
23
+ address=2,
24
+ input_type=InputType.DISCRETE_INPUT,
25
+ platform=Platform.BINARY_SENSOR,
26
+ ),
27
+ EntityDef(
28
+ key="dout_cooling_val",
29
+ name="Cooling active output",
30
+ address=3,
31
+ input_type=InputType.DISCRETE_INPUT,
32
+ platform=Platform.BINARY_SENSOR,
33
+ ),
34
+ EntityDef(
35
+ key="dout_threewayvlv_val",
36
+ name="Three-way valve output (CV/DHW)",
37
+ address=4,
38
+ input_type=InputType.DISCRETE_INPUT,
39
+ platform=Platform.BINARY_SENSOR,
40
+ ),
41
+ EntityDef(
42
+ key="dout_bufferpmp_val",
43
+ name="Buffer pump output",
44
+ address=5,
45
+ input_type=InputType.DISCRETE_INPUT,
46
+ platform=Platform.BINARY_SENSOR,
47
+ ),
48
+ EntityDef(
49
+ key="dout_heaterstep1_val",
50
+ name="Heater 1 output",
51
+ address=6,
52
+ input_type=InputType.DISCRETE_INPUT,
53
+ platform=Platform.BINARY_SENSOR,
54
+ ),
55
+ EntityDef(
56
+ key="dout_heaterstep2_val",
57
+ name="Heater 2 output",
58
+ address=7,
59
+ input_type=InputType.DISCRETE_INPUT,
60
+ platform=Platform.BINARY_SENSOR,
61
+ ),
62
+ EntityDef(
63
+ key="dout_heaterstep3_val",
64
+ name="Heater 3 output",
65
+ address=8,
66
+ input_type=InputType.DISCRETE_INPUT,
67
+ platform=Platform.BINARY_SENSOR,
68
+ ),
69
+ EntityDef(
70
+ key="keybonoff",
71
+ name="Heat pump keypad status",
72
+ address=9,
73
+ input_type=InputType.DISCRETE_INPUT,
74
+ platform=Platform.BINARY_SENSOR,
75
+ ),
76
+ EntityDef(
77
+ key="al_maxtime_antileg_active",
78
+ name="Alarm: Max time anti-legionella exceeded",
79
+ address=10,
80
+ input_type=InputType.DISCRETE_INPUT,
81
+ platform=Platform.BINARY_SENSOR,
82
+ ),
83
+ EntityDef(
84
+ key="al_maxtime_dhw_active",
85
+ name="Alarm: Max time DHW exceeded",
86
+ address=11,
87
+ input_type=InputType.DISCRETE_INPUT,
88
+ platform=Platform.BINARY_SENSOR,
89
+ ),
90
+ EntityDef(
91
+ key="al_dewpoint_active",
92
+ name="Alarm: Dewpoint activated",
93
+ address=12,
94
+ input_type=InputType.DISCRETE_INPUT,
95
+ platform=Platform.BINARY_SENSOR,
96
+ ),
97
+ EntityDef(
98
+ key="al_underfloorsafety_active",
99
+ name="Alarm: Supply too hot (CV)",
100
+ address=13,
101
+ input_type=InputType.DISCRETE_INPUT,
102
+ platform=Platform.BINARY_SENSOR,
103
+ ),
104
+ EntityDef(
105
+ key="alrm_flw",
106
+ name="Alarm: Flow CV",
107
+ address=15,
108
+ input_type=InputType.DISCRETE_INPUT,
109
+ platform=Platform.BINARY_SENSOR,
110
+ ),
111
+ EntityDef(
112
+ key="usralrms",
113
+ name="Alarm: Collective alarm CV",
114
+ address=16,
115
+ input_type=InputType.DISCRETE_INPUT,
116
+ platform=Platform.BINARY_SENSOR,
117
+ ),
118
+ EntityDef(
119
+ key="coolingalrms",
120
+ name="Alarm: Collective alarm cooling",
121
+ address=17,
122
+ input_type=InputType.DISCRETE_INPUT,
123
+ platform=Platform.BINARY_SENSOR,
124
+ ),
125
+ EntityDef(
126
+ key="heatingalrms",
127
+ name="Alarm: Collective alarm heating",
128
+ address=18,
129
+ input_type=InputType.DISCRETE_INPUT,
130
+ platform=Platform.BINARY_SENSOR,
131
+ ),
132
+ EntityDef(
133
+ key="alarmmng_al_workinghour",
134
+ name="Alarm: Working hours",
135
+ address=19,
136
+ input_type=InputType.DISCRETE_INPUT,
137
+ platform=Platform.BINARY_SENSOR,
138
+ ),
139
+ EntityDef(
140
+ key="srsalrm",
141
+ name="Alarm: Collective alarm source",
142
+ address=20,
143
+ input_type=InputType.DISCRETE_INPUT,
144
+ platform=Platform.BINARY_SENSOR,
145
+ ),
146
+ EntityDef(
147
+ key="glbal",
148
+ name="Global Alarm",
149
+ address=21,
150
+ input_type=InputType.DISCRETE_INPUT,
151
+ platform=Platform.BINARY_SENSOR,
152
+ ),
153
+ EntityDef(
154
+ key="alarmmng_al_pwrplus",
155
+ name="Alarm: Collective alarm compressor",
156
+ address=22,
157
+ input_type=InputType.DISCRETE_INPUT,
158
+ platform=Platform.BINARY_SENSOR,
159
+ ),
160
+ EntityDef(
161
+ key="roomprb_en",
162
+ name="Room sensor activated",
163
+ address=23,
164
+ input_type=InputType.DISCRETE_INPUT,
165
+ platform=Platform.BINARY_SENSOR,
166
+ ),
167
+ EntityDef(
168
+ key="plantdemand",
169
+ name="Plant sensor demand",
170
+ address=25,
171
+ input_type=InputType.DISCRETE_INPUT,
172
+ platform=Platform.BINARY_SENSOR,
173
+ ),
174
+ EntityDef(
175
+ key="en_dhwpid",
176
+ name="DHW controller enabled",
177
+ address=26,
178
+ input_type=InputType.DISCRETE_INPUT,
179
+ platform=Platform.BINARY_SENSOR,
180
+ ),
181
+ EntityDef(
182
+ key="plantprb_en",
183
+ name="Plant sensor activated",
184
+ address=27,
185
+ input_type=InputType.DISCRETE_INPUT,
186
+ platform=Platform.BINARY_SENSOR,
187
+ ),
188
+ EntityDef(
189
+ key="bufferprb_en",
190
+ name="Buffer sensor activated",
191
+ address=28,
192
+ input_type=InputType.DISCRETE_INPUT,
193
+ platform=Platform.BINARY_SENSOR,
194
+ ),
195
+ EntityDef(
196
+ key="id_demand",
197
+ name="Digital input demand",
198
+ address=29,
199
+ input_type=InputType.DISCRETE_INPUT,
200
+ platform=Platform.BINARY_SENSOR,
201
+ ),
202
+ EntityDef(
203
+ key="id_summerwinter",
204
+ name="Digital input summer mode activated",
205
+ address=30,
206
+ input_type=InputType.DISCRETE_INPUT,
207
+ platform=Platform.BINARY_SENSOR,
208
+ ),
209
+ EntityDef(
210
+ key="dewpoint",
211
+ name="Digital input dewpoint activated",
212
+ address=31,
213
+ input_type=InputType.DISCRETE_INPUT,
214
+ platform=Platform.BINARY_SENSOR,
215
+ ),
216
+ EntityDef(
217
+ key="boostersecurity",
218
+ name="Digital input booster activated",
219
+ address=32,
220
+ input_type=InputType.DISCRETE_INPUT,
221
+ platform=Platform.BINARY_SENSOR,
222
+ ),
223
+ EntityDef(
224
+ key="srcflw",
225
+ name="Digital input source flow activated",
226
+ address=34,
227
+ input_type=InputType.DISCRETE_INPUT,
228
+ platform=Platform.BINARY_SENSOR,
229
+ ),
230
+ EntityDef(
231
+ key="daynightmode",
232
+ name="Day/night mode status",
233
+ address=37,
234
+ input_type=InputType.DISCRETE_INPUT,
235
+ platform=Platform.BINARY_SENSOR,
236
+ ),
237
+ EntityDef(
238
+ key="thermostatdemand",
239
+ name="Internal thermostat demand",
240
+ address=38,
241
+ input_type=InputType.DISCRETE_INPUT,
242
+ platform=Platform.BINARY_SENSOR,
243
+ ),
244
+ EntityDef(
245
+ key="req_antileg_1",
246
+ name="Anti-legionella enabled",
247
+ address=39,
248
+ input_type=InputType.DISCRETE_INPUT,
249
+ platform=Platform.BINARY_SENSOR,
250
+ ),
251
+ # Coil-based binary sensors
252
+ EntityDef(
253
+ key="bms_demand",
254
+ name="Heat demand active",
255
+ address=19,
256
+ input_type=InputType.COIL,
257
+ platform=Platform.BINARY_SENSOR,
258
+ ),
259
+ EntityDef(
260
+ key="surplus_pv",
261
+ name="PV surplus active",
262
+ address=64,
263
+ input_type=InputType.COIL,
264
+ platform=Platform.BINARY_SENSOR,
265
+ ),
266
+ )
267
+
268
+ # Export as dict for easy lookup by key
269
+ BINARY_SENSORS: dict[str, EntityDef] = {e.key: e for e in _BINARY_SENSOR_DEFS}