Skip to content

Commit 552386c

Browse files
committed
Regen diagnostics
1 parent 22e4678 commit 552386c

File tree

3 files changed

+114
-5
lines changed

3 files changed

+114
-5
lines changed

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

Lines changed: 52 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
"name": "_TZ3000_gwkzibhs TS004F",
1010
"quirk_applied": true,
1111
"quirk_class": "zhaquirks.tuya.ts004f.TuyaSmartRemote004FROK",
12-
"exposes_features": [],
12+
"exposes_features": [
13+
"tuya.plug_on_off_attributes"
14+
],
1315
"manufacturer_code": 4742,
1416
"power_source": "Battery or Unknown",
1517
"lqi": 182,
@@ -123,6 +125,11 @@
123125
"endpoint_attribute": "groups",
124126
"attributes": []
125127
},
128+
{
129+
"cluster_id": "0x0006",
130+
"endpoint_attribute": "on_off",
131+
"attributes": []
132+
},
126133
{
127134
"cluster_id": "0x1000",
128135
"endpoint_attribute": "lightlink",
@@ -437,6 +444,50 @@
437444
]
438445
}
439446
],
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+
],
440491
"update": [
441492
{
442493
"info_object": {

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

Lines changed: 52 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
"name": "_TZ3000_kjfzuycl TS004F",
1010
"quirk_applied": true,
1111
"quirk_class": "zhaquirks.tuya.ts004f.TuyaSmartRemote004FSK",
12-
"exposes_features": [],
12+
"exposes_features": [
13+
"tuya.plug_on_off_attributes"
14+
],
1315
"manufacturer_code": 4098,
1416
"power_source": "Battery or Unknown",
1517
"lqi": null,
@@ -99,6 +101,11 @@
99101
"endpoint_attribute": "groups",
100102
"attributes": []
101103
},
104+
{
105+
"cluster_id": "0x0006",
106+
"endpoint_attribute": "on_off",
107+
"attributes": []
108+
},
102109
{
103110
"cluster_id": "0x1000",
104111
"endpoint_attribute": "lightlink",
@@ -386,6 +393,50 @@
386393
]
387394
}
388395
],
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+
],
389440
"update": [
390441
{
391442
"info_object": {

tests/data/devices/tze200-2aaelwxk-ts0225.json

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,12 @@
456456
"id": "0x000e",
457457
"name": "state_text",
458458
"zcl_type": "unk",
459-
"value": ["None", "Large", "Small", "Static"]
459+
"value": [
460+
"None",
461+
"Large",
462+
"Small",
463+
"Static"
464+
]
460465
}
461466
]
462467
}
@@ -563,7 +568,9 @@
563568
"available": true,
564569
"group_id": null,
565570
"command": "identify",
566-
"args": [5],
571+
"args": [
572+
5
573+
],
567574
"kwargs": {}
568575
},
569576
"state": {
@@ -1472,4 +1479,4 @@
14721479
},
14731480
"neighbors": [],
14741481
"routes": []
1475-
}
1482+
}

0 commit comments

Comments
 (0)