Skip to content

Commit 1ede699

Browse files
committed
Adds LevelControl event entities for client clusters
- Add event entities for LevelControl client clusters - Adjust registries to support ClientCluster handlers
1 parent 4c4d59f commit 1ede699

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+2114
-13
lines changed

tests/data/devices/awox-tlsr82xx.json

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,49 @@
199199
}
200200
}
201201
],
202+
"event": [
203+
{
204+
"info_object": {
205+
"fallback_name": null,
206+
"unique_id": "a4:c1:38:01:9c:d6:df:d1-1-8",
207+
"migrate_unique_ids": [],
208+
"platform": "event",
209+
"class_name": "LevelControlEvent",
210+
"translation_key": "level_control",
211+
"translation_placeholders": null,
212+
"device_class": null,
213+
"state_class": null,
214+
"entity_category": null,
215+
"entity_registry_enabled_default": true,
216+
"enabled": true,
217+
"primary": true,
218+
"cluster_handlers": [
219+
{
220+
"class_name": "LevelControlClientClusterHandler",
221+
"generic_id": "cluster_handler_0x0008_client",
222+
"endpoint_id": 1,
223+
"cluster": {
224+
"id": 8,
225+
"name": "Level control",
226+
"type": "client"
227+
},
228+
"id": "1:0x0008_client",
229+
"unique_id": "a4:c1:38:01:9c:d6:df:d1:1:0x0008_CLIENT",
230+
"status": "INITIALIZED",
231+
"value_attribute": null
232+
}
233+
],
234+
"device_ieee": "a4:c1:38:01:9c:d6:df:d1",
235+
"endpoint_id": 1,
236+
"available": true,
237+
"group_id": null
238+
},
239+
"state": {
240+
"class_name": "LevelControlEvent",
241+
"available": true
242+
}
243+
}
244+
],
202245
"sensor": [
203246
{
204247
"info_object": {

tests/data/devices/hobeian-zg-101zl.json

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,49 @@
390390
}
391391
}
392392
],
393+
"event": [
394+
{
395+
"info_object": {
396+
"fallback_name": null,
397+
"unique_id": "ab:cd:ef:12:41:15:95:9c-1-8",
398+
"migrate_unique_ids": [],
399+
"platform": "event",
400+
"class_name": "LevelControlEvent",
401+
"translation_key": "level_control",
402+
"translation_placeholders": null,
403+
"device_class": null,
404+
"state_class": null,
405+
"entity_category": null,
406+
"entity_registry_enabled_default": true,
407+
"enabled": true,
408+
"primary": false,
409+
"cluster_handlers": [
410+
{
411+
"class_name": "LevelControlClientClusterHandler",
412+
"generic_id": "cluster_handler_0x0008_client",
413+
"endpoint_id": 1,
414+
"cluster": {
415+
"id": 8,
416+
"name": "Level control",
417+
"type": "client"
418+
},
419+
"id": "1:0x0008_client",
420+
"unique_id": "ab:cd:ef:12:41:15:95:9c:1:0x0008_CLIENT",
421+
"status": "INITIALIZED",
422+
"value_attribute": null
423+
}
424+
],
425+
"device_ieee": "ab:cd:ef:12:41:15:95:9c",
426+
"endpoint_id": 1,
427+
"available": true,
428+
"group_id": null
429+
},
430+
"state": {
431+
"class_name": "LevelControlEvent",
432+
"available": true
433+
}
434+
}
435+
],
393436
"select": [
394437
{
395438
"info_object": {
@@ -596,7 +639,7 @@
596639
"entity_category": null,
597640
"entity_registry_enabled_default": true,
598641
"enabled": true,
599-
"primary": true,
642+
"primary": false,
600643
"cluster_handlers": [
601644
{
602645
"class_name": "OnOffClusterHandler",

tests/data/devices/ikea-of-sweden-remote-control-n2.json

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,49 @@
194194
}
195195
}
196196
],
197+
"event": [
198+
{
199+
"info_object": {
200+
"fallback_name": null,
201+
"unique_id": "ab:cd:ef:12:6b:e7:d0:70-1-8",
202+
"migrate_unique_ids": [],
203+
"platform": "event",
204+
"class_name": "LevelControlEvent",
205+
"translation_key": "level_control",
206+
"translation_placeholders": null,
207+
"device_class": null,
208+
"state_class": null,
209+
"entity_category": null,
210+
"entity_registry_enabled_default": true,
211+
"enabled": true,
212+
"primary": true,
213+
"cluster_handlers": [
214+
{
215+
"class_name": "LevelControlClientClusterHandler",
216+
"generic_id": "cluster_handler_0x0008_client",
217+
"endpoint_id": 1,
218+
"cluster": {
219+
"id": 8,
220+
"name": "Level control",
221+
"type": "client"
222+
},
223+
"id": "1:0x0008_client",
224+
"unique_id": "ab:cd:ef:12:6b:e7:d0:70:1:0x0008_CLIENT",
225+
"status": "INITIALIZED",
226+
"value_attribute": null
227+
}
228+
],
229+
"device_ieee": "ab:cd:ef:12:6b:e7:d0:70",
230+
"endpoint_id": 1,
231+
"available": true,
232+
"group_id": null
233+
},
234+
"state": {
235+
"class_name": "LevelControlEvent",
236+
"available": true
237+
}
238+
}
239+
],
197240
"sensor": [
198241
{
199242
"info_object": {

tests/data/devices/ikea-of-sweden-rodret-dimmer.json

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,49 @@
243243
}
244244
}
245245
],
246+
"event": [
247+
{
248+
"info_object": {
249+
"fallback_name": null,
250+
"unique_id": "5c:c7:c1:ff:fe:cc:19:d9-1-8",
251+
"migrate_unique_ids": [],
252+
"platform": "event",
253+
"class_name": "LevelControlEvent",
254+
"translation_key": "level_control",
255+
"translation_placeholders": null,
256+
"device_class": null,
257+
"state_class": null,
258+
"entity_category": null,
259+
"entity_registry_enabled_default": true,
260+
"enabled": true,
261+
"primary": true,
262+
"cluster_handlers": [
263+
{
264+
"class_name": "LevelControlClientClusterHandler",
265+
"generic_id": "cluster_handler_0x0008_client",
266+
"endpoint_id": 1,
267+
"cluster": {
268+
"id": 8,
269+
"name": "Level control",
270+
"type": "client"
271+
},
272+
"id": "1:0x0008_client",
273+
"unique_id": "5c:c7:c1:ff:fe:cc:19:d9:1:0x0008_CLIENT",
274+
"status": "INITIALIZED",
275+
"value_attribute": null
276+
}
277+
],
278+
"device_ieee": "5c:c7:c1:ff:fe:cc:19:d9",
279+
"endpoint_id": 1,
280+
"available": true,
281+
"group_id": null
282+
},
283+
"state": {
284+
"class_name": "LevelControlEvent",
285+
"available": true
286+
}
287+
}
288+
],
246289
"sensor": [
247290
{
248291
"info_object": {

tests/data/devices/ikea-of-sweden-rodret-wireless-dimmer.json

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,49 @@
260260
}
261261
}
262262
],
263+
"event": [
264+
{
265+
"info_object": {
266+
"fallback_name": null,
267+
"unique_id": "ab:cd:ef:12:07:f8:aa:b7-1-8",
268+
"migrate_unique_ids": [],
269+
"platform": "event",
270+
"class_name": "LevelControlEvent",
271+
"translation_key": "level_control",
272+
"translation_placeholders": null,
273+
"device_class": null,
274+
"state_class": null,
275+
"entity_category": null,
276+
"entity_registry_enabled_default": true,
277+
"enabled": true,
278+
"primary": true,
279+
"cluster_handlers": [
280+
{
281+
"class_name": "LevelControlClientClusterHandler",
282+
"generic_id": "cluster_handler_0x0008_client",
283+
"endpoint_id": 1,
284+
"cluster": {
285+
"id": 8,
286+
"name": "Level control",
287+
"type": "client"
288+
},
289+
"id": "1:0x0008_client",
290+
"unique_id": "ab:cd:ef:12:07:f8:aa:b7:1:0x0008_CLIENT",
291+
"status": "INITIALIZED",
292+
"value_attribute": null
293+
}
294+
],
295+
"device_ieee": "ab:cd:ef:12:07:f8:aa:b7",
296+
"endpoint_id": 1,
297+
"available": true,
298+
"group_id": null
299+
},
300+
"state": {
301+
"class_name": "LevelControlEvent",
302+
"available": true
303+
}
304+
}
305+
],
263306
"sensor": [
264307
{
265308
"info_object": {

tests/data/devices/ikea-of-sweden-somrig-shortcut-button.json

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,90 @@
321321
}
322322
}
323323
],
324+
"event": [
325+
{
326+
"info_object": {
327+
"fallback_name": null,
328+
"unique_id": "ab:cd:ef:12:6d:e6:02:47-1-8",
329+
"migrate_unique_ids": [],
330+
"platform": "event",
331+
"class_name": "LevelControlEvent",
332+
"translation_key": "level_control",
333+
"translation_placeholders": null,
334+
"device_class": null,
335+
"state_class": null,
336+
"entity_category": null,
337+
"entity_registry_enabled_default": true,
338+
"enabled": true,
339+
"primary": false,
340+
"cluster_handlers": [
341+
{
342+
"class_name": "LevelControlClientClusterHandler",
343+
"generic_id": "cluster_handler_0x0008_client",
344+
"endpoint_id": 1,
345+
"cluster": {
346+
"id": 8,
347+
"name": "Level control",
348+
"type": "client"
349+
},
350+
"id": "1:0x0008_client",
351+
"unique_id": "ab:cd:ef:12:6d:e6:02:47:1:0x0008_CLIENT",
352+
"status": "INITIALIZED",
353+
"value_attribute": null
354+
}
355+
],
356+
"device_ieee": "ab:cd:ef:12:6d:e6:02:47",
357+
"endpoint_id": 1,
358+
"available": true,
359+
"group_id": null
360+
},
361+
"state": {
362+
"class_name": "LevelControlEvent",
363+
"available": true
364+
}
365+
},
366+
{
367+
"info_object": {
368+
"fallback_name": null,
369+
"unique_id": "ab:cd:ef:12:6d:e6:02:47-2-8",
370+
"migrate_unique_ids": [],
371+
"platform": "event",
372+
"class_name": "LevelControlEvent",
373+
"translation_key": "level_control",
374+
"translation_placeholders": null,
375+
"device_class": null,
376+
"state_class": null,
377+
"entity_category": null,
378+
"entity_registry_enabled_default": true,
379+
"enabled": true,
380+
"primary": false,
381+
"cluster_handlers": [
382+
{
383+
"class_name": "LevelControlClientClusterHandler",
384+
"generic_id": "cluster_handler_0x0008_client",
385+
"endpoint_id": 2,
386+
"cluster": {
387+
"id": 8,
388+
"name": "Level control",
389+
"type": "client"
390+
},
391+
"id": "2:0x0008_client",
392+
"unique_id": "ab:cd:ef:12:6d:e6:02:47:2:0x0008_CLIENT",
393+
"status": "INITIALIZED",
394+
"value_attribute": null
395+
}
396+
],
397+
"device_ieee": "ab:cd:ef:12:6d:e6:02:47",
398+
"endpoint_id": 2,
399+
"available": true,
400+
"group_id": null
401+
},
402+
"state": {
403+
"class_name": "LevelControlEvent",
404+
"available": true
405+
}
406+
}
407+
],
324408
"sensor": [
325409
{
326410
"info_object": {

tests/data/devices/ikea-of-sweden-symfonisk-sound-remote-gen2.json

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,49 @@
236236
}
237237
}
238238
],
239+
"event": [
240+
{
241+
"info_object": {
242+
"fallback_name": null,
243+
"unique_id": "ab:cd:ef:12:52:61:2b:43-1-8",
244+
"migrate_unique_ids": [],
245+
"platform": "event",
246+
"class_name": "LevelControlEvent",
247+
"translation_key": "level_control",
248+
"translation_placeholders": null,
249+
"device_class": null,
250+
"state_class": null,
251+
"entity_category": null,
252+
"entity_registry_enabled_default": true,
253+
"enabled": true,
254+
"primary": true,
255+
"cluster_handlers": [
256+
{
257+
"class_name": "LevelControlClientClusterHandler",
258+
"generic_id": "cluster_handler_0x0008_client",
259+
"endpoint_id": 1,
260+
"cluster": {
261+
"id": 8,
262+
"name": "Level control",
263+
"type": "client"
264+
},
265+
"id": "1:0x0008_client",
266+
"unique_id": "ab:cd:ef:12:52:61:2b:43:1:0x0008_CLIENT",
267+
"status": "INITIALIZED",
268+
"value_attribute": null
269+
}
270+
],
271+
"device_ieee": "ab:cd:ef:12:52:61:2b:43",
272+
"endpoint_id": 1,
273+
"available": true,
274+
"group_id": null
275+
},
276+
"state": {
277+
"class_name": "LevelControlEvent",
278+
"available": true
279+
}
280+
}
281+
],
239282
"sensor": [
240283
{
241284
"info_object": {

0 commit comments

Comments
 (0)