Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ dependencies = [
"zigpy-deconz==0.25.3",
"zigpy-xbee==0.21.0",
"zigpy-zigate==0.13.3",
"zha-quirks==0.0.146",
"zha-quirks==0.0.147",
"pyserial==3.5",
"pyserial-asyncio-fast",
]
Expand Down
59 changes: 57 additions & 2 deletions tests/data/devices/frient-a-s-emizb-141.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"friendly_manufacturer": "frient A/S",
"friendly_model": "EMIZB-141",
"name": "frient A/S EMIZB-141",
"quirk_applied": false,
"quirk_class": "zigpy.device.Device",
"quirk_applied": true,
"quirk_class": "zhaquirks.develco.ManufacturerDeviceV2",
"quirk_id": null,
"manufacturer_code": 4117,
"power_source": "Battery or Unknown",
Expand Down Expand Up @@ -243,6 +243,11 @@
"cluster_id": "0x0b05",
"endpoint_attribute": "diagnostic",
"attributes": []
},
{
"cluster_id": "0xfd10",
"endpoint_attribute": null,
"attributes": []
}
],
"out_clusters": [
Expand Down Expand Up @@ -271,6 +276,7 @@
]
}
},
"original_signature": {},
"zha_lib_entities": {
"button": [
{
Expand Down Expand Up @@ -320,6 +326,55 @@
}
}
],
"number": [
{
"info_object": {
"fallback_name": "Pulse configuration",
"unique_id": "00:15:bc:00:1b:10:01:5c-2-pulse_configuration",
"migrate_unique_ids": [],
"platform": "number",
"class_name": "NumberConfigurationEntity",
"translation_key": "pulse_configuration",
"translation_placeholders": null,
"device_class": null,
"state_class": null,
"entity_category": "config",
"entity_registry_enabled_default": true,
"enabled": true,
"primary": false,
"cluster_handlers": [
{
"class_name": "ClusterHandler",
"generic_id": "cluster_handler_0xfd10",
"endpoint_id": 2,
"cluster": {
"id": 64784,
"name": "ManufacturerMetering",
"type": "server"
},
"id": "2:0xfd10",
"unique_id": "00:15:bc:00:1b:10:01:5c:2:0xfd10",
"status": "INITIALIZED",
"value_attribute": null
}
],
"device_ieee": "00:15:bc:00:1b:10:01:5c",
"endpoint_id": 2,
"available": true,
"group_id": null,
"mode": "box",
"native_max_value": 10000,
"native_min_value": 50,
"native_step": 1,
"native_unit_of_measurement": "pulses/kWh"
},
"state": {
"class_name": "NumberConfigurationEntity",
"available": true,
"state": null
}
}
],
"sensor": [
{
"info_object": {
Expand Down
98 changes: 97 additions & 1 deletion tests/data/devices/ikea-of-sweden-inspelning-smart-plug.json
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@
},
{
"cluster_id": "0xfc85",
"endpoint_attribute": "manufacturer_specific",
"endpoint_attribute": null,
"attributes": []
}
],
Expand Down Expand Up @@ -895,6 +895,102 @@
"state": 0,
"available": true
}
},
{
"info_object": {
"fallback_name": "Child lock",
"unique_id": "d4:48:67:ff:fe:13:d6:f8-1-child_lock",
"migrate_unique_ids": [],
"platform": "switch",
"class_name": "ConfigurableAttributeSwitch",
"translation_key": "child_lock",
"translation_placeholders": null,
"device_class": null,
"state_class": null,
"entity_category": "config",
"entity_registry_enabled_default": true,
"enabled": true,
"primary": false,
"cluster_handlers": [
{
"class_name": "ClusterHandler",
"generic_id": "cluster_handler_0xfc85",
"endpoint_id": 1,
"cluster": {
"id": 64645,
"name": "IkeaSmartPlugCluster",
"type": "server"
},
"id": "1:0xfc85",
"unique_id": "d4:48:67:ff:fe:13:d6:f8:1:0xfc85",
"status": "INITIALIZED",
"value_attribute": null
}
],
"device_ieee": "d4:48:67:ff:fe:13:d6:f8",
"endpoint_id": 1,
"available": true,
"group_id": null,
"attribute_name": "child_lock",
"invert_attribute_name": null,
"force_inverted": false,
"off_value": 0,
"on_value": 1
},
"state": {
"class_name": "ConfigurableAttributeSwitch",
"available": true,
"state": false,
"inverted": false
}
},
{
"info_object": {
"fallback_name": "Disable LED",
"unique_id": "d4:48:67:ff:fe:13:d6:f8-1-enable_led",
"migrate_unique_ids": [],
"platform": "switch",
"class_name": "ConfigurableAttributeSwitch",
"translation_key": "disable_led",
"translation_placeholders": null,
"device_class": null,
"state_class": null,
"entity_category": "config",
"entity_registry_enabled_default": true,
"enabled": true,
"primary": false,
"cluster_handlers": [
{
"class_name": "ClusterHandler",
"generic_id": "cluster_handler_0xfc85",
"endpoint_id": 1,
"cluster": {
"id": 64645,
"name": "IkeaSmartPlugCluster",
"type": "server"
},
"id": "1:0xfc85",
"unique_id": "d4:48:67:ff:fe:13:d6:f8:1:0xfc85",
"status": "INITIALIZED",
"value_attribute": null
}
],
"device_ieee": "d4:48:67:ff:fe:13:d6:f8",
"endpoint_id": 1,
"available": true,
"group_id": null,
"attribute_name": "enable_led",
"invert_attribute_name": null,
"force_inverted": false,
"off_value": 1,
"on_value": 0
},
"state": {
"class_name": "ConfigurableAttributeSwitch",
"available": true,
"state": false,
"inverted": false
}
}
],
"update": [
Expand Down
59 changes: 57 additions & 2 deletions tests/data/devices/third-reality-inc-3rds17bz.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"friendly_manufacturer": "Third Reality, Inc",
"friendly_model": "3RDS17BZ",
"name": "Third Reality, Inc 3RDS17BZ",
"quirk_applied": false,
"quirk_class": "zigpy.device.Device",
"quirk_applied": true,
"quirk_class": "zigpy.quirks.v2.CustomDeviceV2",
"quirk_id": null,
"manufacturer_code": 4659,
"power_source": "Battery or Unknown",
Expand Down Expand Up @@ -118,6 +118,11 @@
"value": 21
}
]
},
{
"cluster_id": "0xff01",
"endpoint_attribute": null,
"attributes": []
}
],
"out_clusters": [
Expand All @@ -129,6 +134,7 @@
]
}
},
"original_signature": {},
"zha_lib_entities": {
"binary_sensor": [
{
Expand Down Expand Up @@ -175,6 +181,55 @@
}
}
],
"number": [
{
"info_object": {
"fallback_name": "Open delay time",
"unique_id": "28:2c:02:bf:ff:e7:b2:eb-1-open_delay_time",
"migrate_unique_ids": [],
"platform": "number",
"class_name": "NumberConfigurationEntity",
"translation_key": "open_delay_time",
"translation_placeholders": null,
"device_class": "duration",
"state_class": null,
"entity_category": "config",
"entity_registry_enabled_default": true,
"enabled": true,
"primary": false,
"cluster_handlers": [
{
"class_name": "ClusterHandler",
"generic_id": "cluster_handler_0xff01",
"endpoint_id": 1,
"cluster": {
"id": 65281,
"name": "ThirdRealityDoorCluster",
"type": "server"
},
"id": "1:0xff01",
"unique_id": "28:2c:02:bf:ff:e7:b2:eb:1:0xff01",
"status": "INITIALIZED",
"value_attribute": null
}
],
"device_ieee": "28:2c:02:bf:ff:e7:b2:eb",
"endpoint_id": 1,
"available": true,
"group_id": null,
"mode": "auto",
"native_max_value": 3600,
"native_min_value": 0,
"native_step": 1.0,
"native_unit_of_measurement": "s"
},
"state": {
"class_name": "NumberConfigurationEntity",
"available": true,
"state": null
}
}
],
"sensor": [
{
"info_object": {
Expand Down
96 changes: 96 additions & 0 deletions tests/data/devices/third-reality-inc-3rsp02028bz.json
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,102 @@
}
}
],
"number": [
{
"info_object": {
"fallback_name": "Turn on delay",
"unique_id": "28:2c:02:bf:ff:eb:4f:2f-1-off_to_on_delay",
"migrate_unique_ids": [],
"platform": "number",
"class_name": "NumberConfigurationEntity",
"translation_key": "turn_on_delay",
"translation_placeholders": null,
"device_class": "duration",
"state_class": null,
"entity_category": "config",
"entity_registry_enabled_default": true,
"enabled": true,
"primary": false,
"cluster_handlers": [
{
"class_name": "ClusterHandler",
"generic_id": "cluster_handler_0xff03",
"endpoint_id": 1,
"cluster": {
"id": 65283,
"name": "ThirdRealityPlugCluster",
"type": "server"
},
"id": "1:0xff03",
"unique_id": "28:2c:02:bf:ff:eb:4f:2f:1:0xff03",
"status": "INITIALIZED",
"value_attribute": null
}
],
"device_ieee": "28:2c:02:bf:ff:eb:4f:2f",
"endpoint_id": 1,
"available": true,
"group_id": null,
"mode": "box",
"native_max_value": 65535,
"native_min_value": 0,
"native_step": 1.0,
"native_unit_of_measurement": "s"
},
"state": {
"class_name": "NumberConfigurationEntity",
"available": true,
"state": null
}
},
{
"info_object": {
"fallback_name": "Turn off delay",
"unique_id": "28:2c:02:bf:ff:eb:4f:2f-1-on_to_off_delay",
"migrate_unique_ids": [],
"platform": "number",
"class_name": "NumberConfigurationEntity",
"translation_key": "turn_off_delay",
"translation_placeholders": null,
"device_class": "duration",
"state_class": null,
"entity_category": "config",
"entity_registry_enabled_default": true,
"enabled": true,
"primary": false,
"cluster_handlers": [
{
"class_name": "ClusterHandler",
"generic_id": "cluster_handler_0xff03",
"endpoint_id": 1,
"cluster": {
"id": 65283,
"name": "ThirdRealityPlugCluster",
"type": "server"
},
"id": "1:0xff03",
"unique_id": "28:2c:02:bf:ff:eb:4f:2f:1:0xff03",
"status": "INITIALIZED",
"value_attribute": null
}
],
"device_ieee": "28:2c:02:bf:ff:eb:4f:2f",
"endpoint_id": 1,
"available": true,
"group_id": null,
"mode": "box",
"native_max_value": 65535,
"native_min_value": 0,
"native_step": 1.0,
"native_unit_of_measurement": "s"
},
"state": {
"class_name": "NumberConfigurationEntity",
"available": true,
"state": null
}
}
],
"select": [
{
"info_object": {
Expand Down
Loading
Loading