From 02c9eeae612727771497a4353567345c8d9ffd51 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 29 Jul 2026 04:17:16 +0000 Subject: [PATCH 1/2] Bump zha-quirks from 2.1.1 to 2.2.0 Bumps [zha-quirks](https://github.com/zigpy/zha-device-handlers) from 2.1.1 to 2.2.0. - [Release notes](https://github.com/zigpy/zha-device-handlers/releases) - [Commits](https://github.com/zigpy/zha-device-handlers/compare/2.1.1...2.2.0) --- updated-dependencies: - dependency-name: zha-quirks dependency-version: 2.2.0 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- uv.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/uv.lock b/uv.lock index 512f265c9..334ef4f8c 100644 --- a/uv.lock +++ b/uv.lock @@ -4107,15 +4107,15 @@ testing = [ [[package]] name = "zha-quirks" -version = "2.1.1" +version = "2.2.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "zha" }, { name = "zigpy" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/e0/66/1445f5210e467a81be38f725819fa46ebd899934147c5d65a3658a0d8e3e/zha_quirks-2.1.1.tar.gz", hash = "sha256:58310f47ba56c9c8bcb0c13e71cd7fe456d9b9fc225a39dde5f29be9e1d1cdf1", size = 470597, upload-time = "2026-07-10T00:11:29.88Z" } +sdist = { url = "https://files.pythonhosted.org/packages/35/df/17e876c0c83f2b1f6e95f96bbc1145141d01b2fe3136b75c4c3a532def88/zha_quirks-2.2.0.tar.gz", hash = "sha256:58c4d99131b7a668f5ce6c49c977e93968c209dbeed0c5f77b6903e305873e97", size = 486115, upload-time = "2026-07-29T04:12:50.75Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/50/e3/caf8ad9ab5232f78e07298a03ef460e291809efabaca0ecd669a211f0278/zha_quirks-2.1.1-py3-none-any.whl", hash = "sha256:4d8c6d28035dd55913d7eb04427609a130d3200c5bf382fbed2aba756a75dd00", size = 575775, upload-time = "2026-07-10T00:11:28.306Z" }, + { url = "https://files.pythonhosted.org/packages/f9/7e/4be197ba9a46ba74ae07c186ea35d0ac232259c00dc1855f6a2d39677ab2/zha_quirks-2.2.0-py3-none-any.whl", hash = "sha256:0bc9249479d32c05a7a4888e440f1f2700153fd86f79ef74a12a3b765ba2247e", size = 591044, upload-time = "2026-07-29T04:12:49.484Z" }, ] [[package]] From 0ae365f6436d3798e990940c56c167214dc5eb9b Mon Sep 17 00:00:00 2001 From: TheJulianJES Date: Wed, 29 Jul 2026 06:22:45 +0200 Subject: [PATCH 2/2] Regenerate diagnostics --- .../devices/inovelli-vzm30-sn-0x01100100.json | 949 ++++++++++++++++++ tests/data/devices/inovelli-vzm30-sn.json | 582 +++++++++++ .../devices/inovelli-vzm31-sn-0x01020212.json | 185 ++++ .../devices/inovelli-vzm35-sn-0x02020107.json | 27 + ...rd-reality-inc-3rsp02028bz-0x10013058.json | 40 +- ...ird-reality-inc-3rsp02064z-0x0000002f.json | 142 ++- .../tz3000-wn65ixz9-ts0001-0x00000051.json | 182 +--- .../tz3210-7vgttna6-ts0001-0x00000073.json | 228 ++++- .../tz3210-a04acm9s-ts0001-0x00000077.json | 228 ++++- 9 files changed, 2361 insertions(+), 202 deletions(-) diff --git a/tests/data/devices/inovelli-vzm30-sn-0x01100100.json b/tests/data/devices/inovelli-vzm30-sn-0x01100100.json index 117cd08c9..2ff4f6749 100644 --- a/tests/data/devices/inovelli-vzm30-sn-0x01100100.json +++ b/tests/data/devices/inovelli-vzm30-sn-0x01100100.json @@ -833,6 +833,578 @@ } ], "number": [ + { + "fallback_name": "Automatic switch shutoff timer", + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-auto_off_timer", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "auto_off_timer", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 32767, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + { + "fallback_name": "Button delay", + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-button_delay", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "button_delay", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 9, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + { + "fallback_name": "Local default dimming level", + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-default_level_local", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "default_level_local", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + { + "fallback_name": "Remote default dimming level", + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-default_level_remote", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "default_level_remote", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + { + "fallback_name": "Local dimming down speed", + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-dimming_speed_down_local", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "dimming_speed_down_local", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 127, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + { + "fallback_name": "Remote dimming down speed", + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-dimming_speed_down_remote", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "dimming_speed_down_remote", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 127, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + { + "fallback_name": "Local dimming up speed", + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-dimming_speed_up_local", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "dimming_speed_up_local", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 127, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + { + "fallback_name": "Remote dimming up speed", + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-dimming_speed_up_remote", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "dimming_speed_up_remote", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 126, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + { + "fallback_name": "Double tap down level", + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-double_tap_down_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "double_tap_down_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 254, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + { + "fallback_name": "Double tap up level", + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-double_tap_up_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "double_tap_up_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 254, + "native_min_value": 2, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + { + "fallback_name": "Default all LED off color", + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-led_color_when_off", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "led_color_when_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + { + "fallback_name": "Default all LED on color", + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-led_color_when_on", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "led_color_when_on", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + { + "fallback_name": "Default all LED off intensity", + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-led_intensity_when_off", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "led_intensity_when_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 100, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + { + "fallback_name": "Default all LED on intensity", + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-led_intensity_when_on", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "led_intensity_when_on", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 100, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + { + "fallback_name": "Load level indicator timeout", + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-load_level_indicator_timeout", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "load_level_indicator_timeout", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 11, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + { + "fallback_name": "Maximum load dimming level", + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-maximum_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "maximum_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 2, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + { + "fallback_name": "Minimum load dimming level", + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-minimum_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "minimum_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 254, + "native_min_value": 1, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + { + "fallback_name": "Local ramp rate off to on", + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-ramp_rate_off_to_on_local", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "ramp_rate_off_to_on_local", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 127, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + { + "fallback_name": "Remote ramp rate off to on", + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-ramp_rate_off_to_on_remote", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "ramp_rate_off_to_on_remote", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 127, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + { + "fallback_name": "Local ramp rate on to off", + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-ramp_rate_on_to_off_local", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "ramp_rate_on_to_off_local", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 127, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + { + "fallback_name": "Remote ramp rate on to off", + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-ramp_rate_on_to_off_remote", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "ramp_rate_on_to_off_remote", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 127, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + { + "fallback_name": "Start-up default dimming level", + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-state_after_power_restored", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "state_after_power_restored", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, { "fallback_name": null, "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-8-default_move_rate", @@ -966,6 +1538,84 @@ "Toggle", "PreviousValue" ] + }, + { + "fallback_name": "Increased non-neutral output", + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-increased_non_neutral_output", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "increased_non_neutral_output", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "InovelliNonNeutralOutput", + "options": [ + "Low", + "High" + ] + }, + { + "fallback_name": "LED scaling mode", + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-led_scaling_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "led_scaling_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "InovelliLedScalingMode", + "options": [ + "VZM31SN", + "LZW31SN" + ] + }, + { + "fallback_name": "Output mode", + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-output_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "output_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "InovelliOutputMode", + "options": [ + "Dimmer", + "OnOff" + ] } ], "sensor": [ @@ -1229,6 +1879,305 @@ "unit": "%" } ], + "switch": [ + { + "fallback_name": "Aux switch scenes", + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-aux_switch_scenes", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "aux_switch_scenes", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "aux_switch_scenes", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + { + "fallback_name": "Binding off to on sync level", + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-binding_off_to_on_sync_level", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "binding_off_to_on_sync_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "binding_off_to_on_sync_level", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + { + "fallback_name": "Disable config 2x tap to clear notifications", + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-disable_clear_notifications_double_tap", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "disable_clear_notifications_double_tap", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "disable_clear_notifications_double_tap", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + { + "fallback_name": "Double tap down enabled", + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-double_tap_down_enabled", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "double_tap_down_enabled", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "double_tap_down_enabled", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + { + "fallback_name": "Double tap up enabled", + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-double_tap_up_enabled", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "double_tap_up_enabled", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "double_tap_up_enabled", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + { + "fallback_name": "Firmware progress LED", + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-firmware_progress_led", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "firmware_progress_led", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "firmware_progress_led", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + { + "fallback_name": "Invert switch", + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-invert_switch", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "invert_switch", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "invert_switch", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + { + "fallback_name": "Local protection", + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-local_protection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "local_protection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "local_protection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + { + "fallback_name": "Only 1 LED mode", + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-on_off_led_mode", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "one_led_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "on_off_led_mode", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + { + "fallback_name": "Disable relay click in on off mode", + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-relay_click_in_on_off_mode", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "relay_click_in_on_off_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "relay_click_in_on_off_mode", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + { + "fallback_name": "Smart bulb mode", + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-smart_bulb_mode", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "smart_bulb_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "smart_bulb_mode", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + } + ], "update": [ { "fallback_name": null, diff --git a/tests/data/devices/inovelli-vzm30-sn.json b/tests/data/devices/inovelli-vzm30-sn.json index c505053a7..d4665f770 100644 --- a/tests/data/devices/inovelli-vzm30-sn.json +++ b/tests/data/devices/inovelli-vzm30-sn.json @@ -1009,6 +1009,32 @@ "native_step": 1.0, "native_unit_of_measurement": null }, + { + "fallback_name": "Button delay", + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-button_delay", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "button_delay", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 9, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, { "fallback_name": null, "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-default_level_local", @@ -1165,6 +1191,162 @@ "native_step": 1.0, "native_unit_of_measurement": null }, + { + "fallback_name": "Double tap down level", + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-double_tap_down_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "double_tap_down_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 254, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + { + "fallback_name": "Double tap up level", + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-double_tap_up_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "double_tap_up_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 254, + "native_min_value": 2, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + { + "fallback_name": "Default all LED off color", + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-led_color_when_off", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "led_color_when_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + { + "fallback_name": "Default all LED on color", + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-led_color_when_on", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "led_color_when_on", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + { + "fallback_name": "Default all LED off intensity", + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-led_intensity_when_off", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "led_intensity_when_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 100, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + { + "fallback_name": "Default all LED on intensity", + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-led_intensity_when_on", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "led_intensity_when_on", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 100, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, { "fallback_name": null, "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-load_level_indicator_timeout", @@ -1191,6 +1373,58 @@ "native_step": 1.0, "native_unit_of_measurement": null }, + { + "fallback_name": "Maximum load dimming level", + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-maximum_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "maximum_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 255, + "native_min_value": 2, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + { + "fallback_name": "Minimum load dimming level", + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-minimum_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "minimum_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 254, + "native_min_value": 1, + "native_step": 1.0, + "native_unit_of_measurement": null + }, { "fallback_name": null, "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-ramp_rate_off_to_on_local", @@ -1454,6 +1688,84 @@ "Toggle", "PreviousValue" ] + }, + { + "fallback_name": "Increased non-neutral output", + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-increased_non_neutral_output", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "increased_non_neutral_output", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "InovelliNonNeutralOutput", + "options": [ + "Low", + "High" + ] + }, + { + "fallback_name": "LED scaling mode", + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-led_scaling_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "led_scaling_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "InovelliLedScalingMode", + "options": [ + "VZM31SN", + "LZW31SN" + ] + }, + { + "fallback_name": "Output mode", + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-output_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "output_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "InovelliOutputMode", + "options": [ + "Dimmer", + "OnOff" + ] } ], "sensor": [ @@ -1718,6 +2030,168 @@ } ], "switch": [ + { + "fallback_name": "Aux switch scenes", + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-aux_switch_scenes", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "aux_switch_scenes", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "aux_switch_scenes", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + { + "fallback_name": "Binding off to on sync level", + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-binding_off_to_on_sync_level", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "binding_off_to_on_sync_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "binding_off_to_on_sync_level", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + { + "fallback_name": "Disable config 2x tap to clear notifications", + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-disable_clear_notifications_double_tap", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "disable_clear_notifications_double_tap", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "disable_clear_notifications_double_tap", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + { + "fallback_name": "Double tap down enabled", + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-double_tap_down_enabled", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "double_tap_down_enabled", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "double_tap_down_enabled", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + { + "fallback_name": "Double tap up enabled", + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-double_tap_up_enabled", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "double_tap_up_enabled", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "double_tap_up_enabled", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + { + "fallback_name": "Firmware progress LED", + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-firmware_progress_led", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "firmware_progress_led", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "firmware_progress_led", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, { "fallback_name": null, "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-invert_switch", @@ -1744,6 +2218,114 @@ "force_inverted": false, "off_value": 0, "on_value": 1 + }, + { + "fallback_name": "Local protection", + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-local_protection", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "local_protection", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "local_protection", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + { + "fallback_name": "Only 1 LED mode", + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-on_off_led_mode", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "one_led_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "on_off_led_mode", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + { + "fallback_name": "Disable relay click in on off mode", + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-relay_click_in_on_off_mode", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "relay_click_in_on_off_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "relay_click_in_on_off_mode", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + { + "fallback_name": "Smart bulb mode", + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-1-64561-smart_bulb_mode", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "smart_bulb_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:9a:d6:cb:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "smart_bulb_mode", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ diff --git a/tests/data/devices/inovelli-vzm31-sn-0x01020212.json b/tests/data/devices/inovelli-vzm31-sn-0x01020212.json index 56a735340..f8f9c10e5 100644 --- a/tests/data/devices/inovelli-vzm31-sn-0x01020212.json +++ b/tests/data/devices/inovelli-vzm31-sn-0x01020212.json @@ -1169,6 +1169,58 @@ "native_step": 1.0, "native_unit_of_measurement": null }, + { + "fallback_name": "Double tap down level", + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-double_tap_down_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "double_tap_down_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 254, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": null + }, + { + "fallback_name": "Double tap up level", + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-double_tap_up_level", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "double_tap_up_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 254, + "native_min_value": 2, + "native_step": 1.0, + "native_unit_of_measurement": null + }, { "fallback_name": null, "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-led_color_when_off", @@ -1589,6 +1641,32 @@ "PreviousValue" ] }, + { + "fallback_name": "Increased non-neutral output", + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-increased_non_neutral_output", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "increased_non_neutral_output", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "InovelliNonNeutralOutput", + "options": [ + "Low", + "High" + ] + }, { "fallback_name": null, "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-leading_or_trailing_edge", @@ -1615,6 +1693,32 @@ "TrailingEdge" ] }, + { + "fallback_name": "LED scaling mode", + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-led_scaling_mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "led_scaling_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "InovelliLedScalingMode", + "options": [ + "VZM31SN", + "LZW31SN" + ] + }, { "fallback_name": null, "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-output_mode", @@ -1828,6 +1932,60 @@ } ], "switch": [ + { + "fallback_name": "Aux switch scenes", + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-aux_switch_scenes", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "aux_switch_scenes", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "aux_switch_scenes", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, + { + "fallback_name": "Binding off to on sync level", + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-binding_off_to_on_sync_level", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "binding_off_to_on_sync_level", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "binding_off_to_on_sync_level", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, { "fallback_name": null, "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-disable_clear_notifications_double_tap", @@ -1855,6 +2013,33 @@ "off_value": 0, "on_value": 1 }, + { + "fallback_name": "Double tap down enabled", + "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-double_tap_down_enabled", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "double_tap_down_enabled", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:dc:41:3c:40", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "double_tap_down_enabled", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, { "fallback_name": null, "unique_id": "ab:cd:ef:12:dc:41:3c:40-1-64561-double_tap_up_enabled", diff --git a/tests/data/devices/inovelli-vzm35-sn-0x02020107.json b/tests/data/devices/inovelli-vzm35-sn-0x02020107.json index 0f1c6c349..d556761ee 100644 --- a/tests/data/devices/inovelli-vzm35-sn-0x02020107.json +++ b/tests/data/devices/inovelli-vzm35-sn-0x02020107.json @@ -1542,6 +1542,33 @@ "off_value": 0, "on_value": 1 }, + { + "fallback_name": "Disable config 2x tap to clear notifications", + "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-disable_clear_notifications_double_tap", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "disable_clear_notifications_double_tap", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:03:3d:90:21", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "disable_clear_notifications_double_tap", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 + }, { "fallback_name": null, "unique_id": "ab:cd:ef:12:03:3d:90:21-1-64561-double_tap_down_enabled", diff --git a/tests/data/devices/third-reality-inc-3rsp02028bz-0x10013058.json b/tests/data/devices/third-reality-inc-3rsp02028bz-0x10013058.json index 64928fc9c..a7a4ab83f 100644 --- a/tests/data/devices/third-reality-inc-3rsp02028bz-0x10013058.json +++ b/tests/data/devices/third-reality-inc-3rsp02028bz-0x10013058.json @@ -424,12 +424,12 @@ "kwargs": {} }, { - "fallback_name": "Reset summation delivered", + "fallback_name": "Reset total energy", "unique_id": "28:2c:02:bf:ff:eb:4f:2f-1-reset_summation_delivered", "migrate_unique_ids": [], "platform": "button", "class_name": "WriteAttributeButton", - "translation_key": "reset_summation_delivered", + "translation_key": "reset_total_energy", "translation_placeholders": null, "device_class": null, "state_class": null, @@ -442,18 +442,18 @@ "endpoint_id": 1, "available": true, "group_id": null, - "attribute_name": "reset_summation_delivered", + "attribute_name": "reset_total_energy", "attribute_value": 1 } ], "number": [ { - "fallback_name": "Turn on delay", + "fallback_name": "Countdown to turn on", "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_key": "countdown_to_turn_on", "translation_placeholders": null, "device_class": "duration", "state_class": null, @@ -474,12 +474,12 @@ "native_unit_of_measurement": "s" }, { - "fallback_name": "Turn off delay", + "fallback_name": "Countdown to turn off", "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_key": "countdown_to_turn_off", "translation_placeholders": null, "device_class": "duration", "state_class": null, @@ -498,6 +498,32 @@ "native_min_value": 0, "native_step": 1.0, "native_unit_of_measurement": "s" + }, + { + "fallback_name": "Red LED brightness", + "unique_id": "28:2c:02:bf:ff:eb:4f:2f-1-red_led_brightness", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "red_led_brightness", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:eb:4f:2f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "box", + "native_max_value": 100, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": "%" } ], "select": [ diff --git a/tests/data/devices/third-reality-inc-3rsp02064z-0x0000002f.json b/tests/data/devices/third-reality-inc-3rsp02064z-0x0000002f.json index 3b063437e..aa8763f79 100644 --- a/tests/data/devices/third-reality-inc-3rsp02064z-0x0000002f.json +++ b/tests/data/devices/third-reality-inc-3rsp02064z-0x0000002f.json @@ -8,7 +8,7 @@ "friendly_model": "3RSP02064Z", "name": "Third Reality, Inc 3RSP02064Z", "quirk_applied": true, - "quirk_class": "zhaquirks.thirdreality.plug:(Third Reality, Inc / 3RSP02028BZ)", + "quirk_class": "zhaquirks.thirdreality.plug:(Third Reality, Inc / 3RSP02064Z)", "exposes_features": [], "manufacturer_code": 5127, "power_source": "Mains", @@ -485,26 +485,7 @@ { "cluster_id": "0xff03", "endpoint_attribute": null, - "attributes": [ - { - "id": "0x0002", - "name": "off_to_on_delay", - "zcl_type": "uint16", - "unsupported": true - }, - { - "id": "0x0001", - "name": "on_to_off_delay", - "zcl_type": "uint16", - "unsupported": true - }, - { - "id": "0x0000", - "name": "reset_summation_delivered", - "zcl_type": "uint8", - "unsupported": true - } - ] + "attributes": [] } ], "out_clusters": [ @@ -619,12 +600,12 @@ "kwargs": {} }, { - "fallback_name": "Reset summation delivered", + "fallback_name": "Reset total energy", "unique_id": "ab:cd:ef:12:bb:32:67:ac-1-reset_summation_delivered", "migrate_unique_ids": [], "platform": "button", "class_name": "WriteAttributeButton", - "translation_key": "reset_summation_delivered", + "translation_key": "reset_total_energy", "translation_placeholders": null, "device_class": null, "state_class": null, @@ -637,18 +618,18 @@ "endpoint_id": 1, "available": true, "group_id": null, - "attribute_name": "reset_summation_delivered", + "attribute_name": "reset_total_energy", "attribute_value": 1 } ], "number": [ { - "fallback_name": "Turn on delay", + "fallback_name": "Countdown to turn on", "unique_id": "ab:cd:ef:12:bb:32:67:ac-1-off_to_on_delay", "migrate_unique_ids": [], "platform": "number", "class_name": "NumberConfigurationEntity", - "translation_key": "turn_on_delay", + "translation_key": "countdown_to_turn_on", "translation_placeholders": null, "device_class": "duration", "state_class": null, @@ -669,12 +650,12 @@ "native_unit_of_measurement": "s" }, { - "fallback_name": "Turn off delay", + "fallback_name": "Countdown to turn off", "unique_id": "ab:cd:ef:12:bb:32:67:ac-1-on_to_off_delay", "migrate_unique_ids": [], "platform": "number", "class_name": "NumberConfigurationEntity", - "translation_key": "turn_off_delay", + "translation_key": "countdown_to_turn_off", "translation_placeholders": null, "device_class": "duration", "state_class": null, @@ -693,6 +674,84 @@ "native_min_value": 0, "native_step": 1.0, "native_unit_of_measurement": "s" + }, + { + "fallback_name": "Power drop threshold", + "unique_id": "ab:cd:ef:12:bb:32:67:ac-1-power_drop_threshold", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "power_drop_threshold", + "translation_placeholders": null, + "device_class": "power", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:bb:32:67:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "box", + "native_max_value": 3277, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": "W" + }, + { + "fallback_name": "Power rise threshold", + "unique_id": "ab:cd:ef:12:bb:32:67:ac-1-power_rise_threshold", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "power_rise_threshold", + "translation_placeholders": null, + "device_class": "power", + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:bb:32:67:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "box", + "native_max_value": 3277, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": "W" + }, + { + "fallback_name": "Red LED brightness", + "unique_id": "ab:cd:ef:12:bb:32:67:ac-1-red_led_brightness", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "red_led_brightness", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:bb:32:67:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "box", + "native_max_value": 100, + "native_min_value": 0, + "native_step": 1.0, + "native_unit_of_measurement": "%" } ], "select": [ @@ -968,6 +1027,33 @@ "available": true, "group_id": null, "is_on": 0 + }, + { + "fallback_name": "Metering only mode", + "unique_id": "ab:cd:ef:12:bb:32:67:ac-1-metering_only_mode", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "metering_only_mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:bb:32:67:ac", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "metering_only_mode", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ diff --git a/tests/data/devices/tz3000-wn65ixz9-ts0001-0x00000051.json b/tests/data/devices/tz3000-wn65ixz9-ts0001-0x00000051.json index 9afd7b1b2..9d83cfe11 100644 --- a/tests/data/devices/tz3000-wn65ixz9-ts0001-0x00000051.json +++ b/tests/data/devices/tz3000-wn65ixz9-ts0001-0x00000051.json @@ -8,10 +8,8 @@ "friendly_model": "TS0001", "name": "_TZ3000_wn65ixz9 TS0001", "quirk_applied": true, - "quirk_class": "zhaquirks.tuya.ts000x:Switch_1G_GPP", - "exposes_features": [ - "tuya.plug_on_off_attributes" - ], + "quirk_class": "zhaquirks.tuya.tuya_repeater:(_TZ3000_wn65ixz9 / TS0001)", + "exposes_features": [], "manufacturer_code": 4098, "power_source": "Mains", "lqi": 120, @@ -39,8 +37,8 @@ "1": { "profile_id": 260, "device_type": { - "name": "ON_OFF_LIGHT", - "id": 256 + "name": "RANGE_EXTENDER", + "id": 8 }, "in_clusters": [ { @@ -90,72 +88,14 @@ "endpoint_attribute": "identify", "attributes": [] }, - { - "cluster_id": "0x0004", - "endpoint_attribute": "groups", - "attributes": [] - }, - { - "cluster_id": "0x0005", - "endpoint_attribute": "scenes", - "attributes": [] - }, - { - "cluster_id": "0x0006", - "endpoint_attribute": "on_off", - "attributes": [ - { - "id": "0x8001", - "name": "backlight_mode", - "zcl_type": "enum8", - "value": 1 - }, - { - "id": "0x8000", - "name": "child_lock", - "zcl_type": "bool", - "unsupported": true - }, - { - "id": "0x4002", - "name": "off_wait_time", - "zcl_type": "uint16", - "value": 0 - }, - { - "id": "0x0000", - "name": "on_off", - "zcl_type": "bool", - "value": 1 - }, - { - "id": "0x4001", - "name": "on_time", - "zcl_type": "uint16", - "value": 0 - }, - { - "id": "0x8002", - "name": "power_on_state", - "zcl_type": "enum8", - "value": 1 - }, - { - "id": "0x4003", - "name": "start_up_on_off", - "zcl_type": "enum8", - "unsupported": true - } - ] - }, { "cluster_id": "0xe000", - "endpoint_attribute": "tuya_manufacturer_specific_57344", + "endpoint_attribute": null, "attributes": [] }, { "cluster_id": "0xe001", - "endpoint_attribute": "tuya_external_switch_type", + "endpoint_attribute": null, "attributes": [] } ], @@ -178,6 +118,21 @@ ] } ] + }, + "242": { + "profile_id": 41440, + "device_type": { + "name": "PROXY_BASIC", + "id": 97 + }, + "in_clusters": [], + "out_clusters": [ + { + "cluster_id": "0x0021", + "endpoint_attribute": "green_power", + "attributes": [] + } + ] } }, "original_signature": { @@ -254,101 +209,6 @@ "kwargs": {} } ], - "light": [ - { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:82:5f:a1-1", - "migrate_unique_ids": [], - "platform": "light", - "class_name": "Light", - "translation_key": "light", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": null, - "entity_registry_enabled_default": true, - "enabled": true, - "primary": true, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ab:82:5f:a1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "on": true, - "brightness": null, - "xy_color": null, - "color_temp": null, - "effect_list": [ - "off" - ], - "effect": "off", - "supported_features": 8, - "color_mode": "onoff", - "supported_color_modes": [ - "onoff" - ], - "off_with_transition": false, - "off_brightness": null, - "min_mireds": 153, - "max_mireds": 500 - } - ], - "select": [ - { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:82:5f:a1-1-6-backlight_mode", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "TuyaBacklightModeSelectEntity", - "translation_key": "backlight_mode", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ab:82:5f:a1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "LightWhenOn", - "enum": "TuyaBacklightMode", - "options": [ - "Off", - "LightWhenOn", - "LightWhenOff" - ] - }, - { - "fallback_name": null, - "unique_id": "ab:cd:ef:12:ab:82:5f:a1-1-6-power_on_state", - "migrate_unique_ids": [], - "platform": "select", - "class_name": "TuyaPowerOnStateSelectEntity", - "translation_key": "power_on_state", - "translation_placeholders": null, - "device_class": null, - "state_class": null, - "entity_category": "config", - "entity_registry_enabled_default": true, - "enabled": true, - "primary": false, - "extra_state_attribute_names": [], - "device_ieee": "ab:cd:ef:12:ab:82:5f:a1", - "endpoint_id": 1, - "available": true, - "group_id": null, - "current_option": "On", - "enum": "TuyaPowerOnState", - "options": [ - "Off", - "On", - "LastState" - ] - } - ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/tz3210-7vgttna6-ts0001-0x00000073.json b/tests/data/devices/tz3210-7vgttna6-ts0001-0x00000073.json index 62d3ac645..28b4516ab 100644 --- a/tests/data/devices/tz3210-7vgttna6-ts0001-0x00000073.json +++ b/tests/data/devices/tz3210-7vgttna6-ts0001-0x00000073.json @@ -7,8 +7,8 @@ "friendly_manufacturer": "_TZ3210_7vgttna6", "friendly_model": "TS0001", "name": "_TZ3210_7vgttna6 TS0001", - "quirk_applied": false, - "quirk_class": "zigpy.device.Device", + "quirk_applied": true, + "quirk_class": "zhaquirks.tuya.builder:(_TZ3210_dse8ogfy / TS0001)", "exposes_features": [], "manufacturer_code": 4417, "power_source": "Battery or Unknown", @@ -59,6 +59,36 @@ } ] }, + { + "cluster_id": "0x0001", + "endpoint_attribute": "power", + "attributes": [ + { + "id": "0x0033", + "name": "battery_quantity", + "zcl_type": "uint8", + "value": 1 + }, + { + "id": "0x0034", + "name": "battery_rated_voltage", + "zcl_type": "uint8", + "value": 30 + }, + { + "id": "0x0031", + "name": "battery_size", + "zcl_type": "enum8", + "value": 7 + }, + { + "id": "0x0020", + "name": "battery_voltage", + "zcl_type": "uint8", + "unsupported": true + } + ] + }, { "cluster_id": "0x0006", "endpoint_attribute": "on_off", @@ -79,7 +109,7 @@ }, { "cluster_id": "0xef00", - "endpoint_attribute": null, + "endpoint_attribute": "tuya_manufacturer", "attributes": [] } ], @@ -139,6 +169,141 @@ } }, "zha_lib_entities": { + "number": [ + { + "fallback_name": "Down movement", + "unique_id": "ab:cd:ef:12:3f:bf:0b:23-1-down_movement", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "down_movement", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3f:bf:0b:23", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 100, + "native_min_value": 50, + "native_step": 1, + "native_unit_of_measurement": "%" + }, + { + "fallback_name": "Sustain time", + "unique_id": "ab:cd:ef:12:3f:bf:0b:23-1-sustain_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "sustain_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3f:bf:0b:23", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "s" + }, + { + "fallback_name": "Up movement", + "unique_id": "ab:cd:ef:12:3f:bf:0b:23-1-up_movement", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "up_movement", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3f:bf:0b:23", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 50, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "%" + } + ], + "select": [ + { + "fallback_name": "Mode", + "unique_id": "ab:cd:ef:12:3f:bf:0b:23-1-mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3f:bf:0b:23", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "FingerBotMode", + "options": [ + "CLICK", + "SWITCH", + "PROGRAM" + ] + }, + { + "fallback_name": "Reverse", + "unique_id": "ab:cd:ef:12:3f:bf:0b:23-1-reverse", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "reverse", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3f:bf:0b:23", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "FingerBotReverse", + "options": [ + "UP ON", + "UP OFF" + ] + } + ], "sensor": [ { "fallback_name": null, @@ -185,6 +350,36 @@ "native_value": -90, "suggested_display_precision": null, "unit": "dBm" + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3f:bf:0b:23-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ + "battery_quantity", + "battery_size", + "battery_voltage" + ], + "device_ieee": "ab:cd:ef:12:3f:bf:0b:23", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "CR2", + "battery_quantity": 1, + "battery_voltage": null } ], "switch": [ @@ -208,6 +403,33 @@ "available": true, "group_id": null, "is_on": 0 + }, + { + "fallback_name": "Touch control", + "unique_id": "ab:cd:ef:12:3f:bf:0b:23-1-touch_control", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "touch_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3f:bf:0b:23", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "touch_control", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [ diff --git a/tests/data/devices/tz3210-a04acm9s-ts0001-0x00000077.json b/tests/data/devices/tz3210-a04acm9s-ts0001-0x00000077.json index d96203e15..4dd04ebc0 100644 --- a/tests/data/devices/tz3210-a04acm9s-ts0001-0x00000077.json +++ b/tests/data/devices/tz3210-a04acm9s-ts0001-0x00000077.json @@ -7,8 +7,8 @@ "friendly_manufacturer": "_TZ3210_a04acm9s", "friendly_model": "TS0001", "name": "_TZ3210_a04acm9s TS0001", - "quirk_applied": false, - "quirk_class": "zigpy.device.Device", + "quirk_applied": true, + "quirk_class": "zhaquirks.tuya.builder:(_TZ3210_dse8ogfy / TS0001)", "exposes_features": [], "manufacturer_code": 4417, "power_source": "Battery or Unknown", @@ -65,6 +65,36 @@ } ] }, + { + "cluster_id": "0x0001", + "endpoint_attribute": "power", + "attributes": [ + { + "id": "0x0033", + "name": "battery_quantity", + "zcl_type": "uint8", + "value": 1 + }, + { + "id": "0x0034", + "name": "battery_rated_voltage", + "zcl_type": "uint8", + "value": 30 + }, + { + "id": "0x0031", + "name": "battery_size", + "zcl_type": "enum8", + "value": 7 + }, + { + "id": "0x0020", + "name": "battery_voltage", + "zcl_type": "uint8", + "unsupported": true + } + ] + }, { "cluster_id": "0x0006", "endpoint_attribute": "on_off", @@ -85,7 +115,7 @@ }, { "cluster_id": "0xef00", - "endpoint_attribute": null, + "endpoint_attribute": "tuya_manufacturer", "attributes": [] } ], @@ -145,6 +175,141 @@ } }, "zha_lib_entities": { + "number": [ + { + "fallback_name": "Down movement", + "unique_id": "ab:cd:ef:12:6e:06:95:22-1-down_movement", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "down_movement", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6e:06:95:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 100, + "native_min_value": 50, + "native_step": 1, + "native_unit_of_measurement": "%" + }, + { + "fallback_name": "Sustain time", + "unique_id": "ab:cd:ef:12:6e:06:95:22-1-sustain_time", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "sustain_time", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6e:06:95:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 10, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "s" + }, + { + "fallback_name": "Up movement", + "unique_id": "ab:cd:ef:12:6e:06:95:22-1-up_movement", + "migrate_unique_ids": [], + "platform": "number", + "class_name": "NumberConfigurationEntity", + "translation_key": "up_movement", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6e:06:95:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "mode": "auto", + "native_max_value": 50, + "native_min_value": 0, + "native_step": 1, + "native_unit_of_measurement": "%" + } + ], + "select": [ + { + "fallback_name": "Mode", + "unique_id": "ab:cd:ef:12:6e:06:95:22-1-mode", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "mode", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6e:06:95:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "FingerBotMode", + "options": [ + "CLICK", + "SWITCH", + "PROGRAM" + ] + }, + { + "fallback_name": "Reverse", + "unique_id": "ab:cd:ef:12:6e:06:95:22-1-reverse", + "migrate_unique_ids": [], + "platform": "select", + "class_name": "ZCLEnumSelectEntity", + "translation_key": "reverse", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6e:06:95:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "current_option": null, + "enum": "FingerBotReverse", + "options": [ + "UP ON", + "UP OFF" + ] + } + ], "sensor": [ { "fallback_name": null, @@ -191,6 +356,36 @@ "native_value": -61, "suggested_display_precision": null, "unit": "dBm" + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6e:06:95:22-1-1", + "migrate_unique_ids": [], + "platform": "sensor", + "class_name": "Battery", + "translation_key": null, + "translation_placeholders": null, + "device_class": "battery", + "state_class": "measurement", + "entity_category": "diagnostic", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [ + "battery_quantity", + "battery_size", + "battery_voltage" + ], + "device_ieee": "ab:cd:ef:12:6e:06:95:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "native_value": null, + "suggested_display_precision": 0, + "unit": "%", + "battery_size": "CR2", + "battery_quantity": 1, + "battery_voltage": null } ], "switch": [ @@ -214,6 +409,33 @@ "available": true, "group_id": null, "is_on": 1 + }, + { + "fallback_name": "Touch control", + "unique_id": "ab:cd:ef:12:6e:06:95:22-1-touch_control", + "migrate_unique_ids": [], + "platform": "switch", + "class_name": "ConfigurableAttributeSwitch", + "translation_key": "touch_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": "config", + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6e:06:95:22", + "endpoint_id": 1, + "available": true, + "group_id": null, + "is_on": false, + "inverted": false, + "attribute_name": "touch_control", + "invert_attribute_name": null, + "force_inverted": false, + "off_value": 0, + "on_value": 1 } ], "update": [