Skip to content

Commit 83ea548

Browse files
committed
Add missing attribute read for on_off on input
1 parent 552386c commit 83ea548

File tree

2 files changed

+16
-90
lines changed

2 files changed

+16
-90
lines changed

tests/data/devices/tz3000-gwkzibhs-ts004f.json

Lines changed: 8 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,14 @@
128128
{
129129
"cluster_id": "0x0006",
130130
"endpoint_attribute": "on_off",
131-
"attributes": []
131+
"attributes": [
132+
{
133+
"id": "0x0000",
134+
"name": "on_off",
135+
"zcl_type": "bool",
136+
"unsupported": true
137+
}
138+
]
132139
},
133140
{
134141
"cluster_id": "0x1000",
@@ -444,50 +451,6 @@
444451
]
445452
}
446453
],
447-
"switch": [
448-
{
449-
"info_object": {
450-
"fallback_name": null,
451-
"unique_id": "ab:cd:ef:12:e5:79:a6:00-1-6",
452-
"migrate_unique_ids": [],
453-
"platform": "switch",
454-
"class_name": "Switch",
455-
"translation_key": "switch",
456-
"translation_placeholders": null,
457-
"device_class": null,
458-
"state_class": null,
459-
"entity_category": null,
460-
"entity_registry_enabled_default": true,
461-
"enabled": true,
462-
"primary": true,
463-
"cluster_handlers": [
464-
{
465-
"class_name": "OnOffClusterHandler",
466-
"generic_id": "cluster_handler_0x0006",
467-
"endpoint_id": 1,
468-
"cluster": {
469-
"id": 6,
470-
"name": "On/Off",
471-
"type": "server"
472-
},
473-
"id": "1:0x0006",
474-
"unique_id": "ab:cd:ef:12:e5:79:a6:00:1:0x0006",
475-
"status": "INITIALIZED",
476-
"value_attribute": "on_off"
477-
}
478-
],
479-
"device_ieee": "ab:cd:ef:12:e5:79:a6:00",
480-
"endpoint_id": 1,
481-
"available": true,
482-
"group_id": null
483-
},
484-
"state": {
485-
"class_name": "Switch",
486-
"state": false,
487-
"available": true
488-
}
489-
}
490-
],
491454
"update": [
492455
{
493456
"info_object": {

tests/data/devices/tz3000-kjfzuycl-ts004f.json

Lines changed: 8 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,14 @@
104104
{
105105
"cluster_id": "0x0006",
106106
"endpoint_attribute": "on_off",
107-
"attributes": []
107+
"attributes": [
108+
{
109+
"id": "0x0000",
110+
"name": "on_off",
111+
"zcl_type": "bool",
112+
"unsupported": true
113+
}
114+
]
108115
},
109116
{
110117
"cluster_id": "0x1000",
@@ -393,50 +400,6 @@
393400
]
394401
}
395402
],
396-
"switch": [
397-
{
398-
"info_object": {
399-
"fallback_name": null,
400-
"unique_id": "38:5b:44:ff:fe:36:af:0f-1-6",
401-
"migrate_unique_ids": [],
402-
"platform": "switch",
403-
"class_name": "Switch",
404-
"translation_key": "switch",
405-
"translation_placeholders": null,
406-
"device_class": null,
407-
"state_class": null,
408-
"entity_category": null,
409-
"entity_registry_enabled_default": true,
410-
"enabled": true,
411-
"primary": true,
412-
"cluster_handlers": [
413-
{
414-
"class_name": "OnOffClusterHandler",
415-
"generic_id": "cluster_handler_0x0006",
416-
"endpoint_id": 1,
417-
"cluster": {
418-
"id": 6,
419-
"name": "On/Off",
420-
"type": "server"
421-
},
422-
"id": "1:0x0006",
423-
"unique_id": "38:5b:44:ff:fe:36:af:0f:1:0x0006",
424-
"status": "INITIALIZED",
425-
"value_attribute": "on_off"
426-
}
427-
],
428-
"device_ieee": "38:5b:44:ff:fe:36:af:0f",
429-
"endpoint_id": 1,
430-
"available": true,
431-
"group_id": null
432-
},
433-
"state": {
434-
"class_name": "Switch",
435-
"state": false,
436-
"available": true
437-
}
438-
}
439-
],
440403
"update": [
441404
{
442405
"info_object": {

0 commit comments

Comments
 (0)