diff --git a/tests/data/devices/adurosmart-eria-adurolight-csc.json b/tests/data/devices/adurosmart-eria-adurolight-csc.json index e2e4c08bb..76668f7af 100644 --- a/tests/data/devices/adurosmart-eria-adurolight-csc.json +++ b/tests/data/devices/adurosmart-eria-adurolight-csc.json @@ -281,6 +281,106 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:8b:d4:d3-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1a:8b:d4:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:8b:d4:d3-1-768", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "ColorEvent", + "translation_key": "color", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1a:8b:d4:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "move_to_hue", + "move_hue", + "step_hue", + "move_to_saturation", + "move_saturation", + "step_saturation", + "move_to_hue_and_saturation", + "move_to_color", + "move_color", + "step_color", + "move_to_color_temp", + "enhanced_move_to_hue", + "enhanced_move_hue", + "enhanced_step_hue", + "enhanced_move_to_hue_and_saturation", + "color_loop_set", + "stop_move_step", + "move_color_temp", + "step_color_temp" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:8b:d4:d3-1-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1a:8b:d4:d3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/aeotec-zga004.json b/tests/data/devices/aeotec-zga004.json index a215af953..588218380 100644 --- a/tests/data/devices/aeotec-zga004.json +++ b/tests/data/devices/aeotec-zga004.json @@ -631,6 +631,122 @@ "supported_features": 240 } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3a:bc:09:e8-4-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3a:bc:09:e8", + "endpoint_id": 4, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3a:bc:09:e8-4-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3a:bc:09:e8", + "endpoint_id": 4, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3a:bc:09:e8-5-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3a:bc:09:e8", + "endpoint_id": 5, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3a:bc:09:e8-5-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3a:bc:09:e8", + "endpoint_id": 5, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/awox-ercu-ws-zm.json b/tests/data/devices/awox-ercu-ws-zm.json index e8c18539c..4d1f61c45 100644 --- a/tests/data/devices/awox-ercu-ws-zm.json +++ b/tests/data/devices/awox-ercu-ws-zm.json @@ -231,6 +231,106 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:50:b9:32:f5-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:50:b9:32:f5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:50:b9:32:f5-1-768", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "ColorEvent", + "translation_key": "color", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:50:b9:32:f5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "move_to_hue", + "move_hue", + "step_hue", + "move_to_saturation", + "move_saturation", + "step_saturation", + "move_to_hue_and_saturation", + "move_to_color", + "move_color", + "step_color", + "move_to_color_temp", + "enhanced_move_to_hue", + "enhanced_move_hue", + "enhanced_step_hue", + "enhanced_move_to_hue_and_saturation", + "color_loop_set", + "stop_move_step", + "move_color_temp", + "step_color_temp" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:50:b9:32:f5-1-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:50:b9:32:f5", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/awox-esmlfzm-w6-dimm.json b/tests/data/devices/awox-esmlfzm-w6-dimm.json index 44f2340a8..e0cf8f1d3 100644 --- a/tests/data/devices/awox-esmlfzm-w6-dimm.json +++ b/tests/data/devices/awox-esmlfzm-w6-dimm.json @@ -401,6 +401,36 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4f:a8:bc:46-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4f:a8:bc:46", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + } + ], "light": [ { "fallback_name": null, diff --git a/tests/data/devices/awox-tlsr82xx.json b/tests/data/devices/awox-tlsr82xx.json index be326dd25..c10a070ed 100644 --- a/tests/data/devices/awox-tlsr82xx.json +++ b/tests/data/devices/awox-tlsr82xx.json @@ -231,6 +231,106 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "a4:c1:38:01:9c:d6:df:d1-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:01:9c:d6:df:d1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "a4:c1:38:01:9c:d6:df:d1-1-768", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "ColorEvent", + "translation_key": "color", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:01:9c:d6:df:d1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "move_to_hue", + "move_hue", + "step_hue", + "move_to_saturation", + "move_saturation", + "step_saturation", + "move_to_hue_and_saturation", + "move_to_color", + "move_color", + "step_color", + "move_to_color_temp", + "enhanced_move_to_hue", + "enhanced_move_hue", + "enhanced_step_hue", + "enhanced_move_to_hue_and_saturation", + "color_loop_set", + "stop_move_step", + "move_color_temp", + "step_color_temp" + ] + }, + { + "fallback_name": null, + "unique_id": "a4:c1:38:01:9c:d6:df:d1-1-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:01:9c:d6:df:d1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/bega-gantenbrink-leuchten-kg-smart-dimmable-light-0x00990be9.json b/tests/data/devices/bega-gantenbrink-leuchten-kg-smart-dimmable-light-0x00990be9.json index b84701e80..65876fbc7 100644 --- a/tests/data/devices/bega-gantenbrink-leuchten-kg-smart-dimmable-light-0x00990be9.json +++ b/tests/data/devices/bega-gantenbrink-leuchten-kg-smart-dimmable-light-0x00990be9.json @@ -466,6 +466,106 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:5e:2c:1e-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1a:5e:2c:1e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:5e:2c:1e-1-768", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "ColorEvent", + "translation_key": "color", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1a:5e:2c:1e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "move_to_hue", + "move_hue", + "step_hue", + "move_to_saturation", + "move_saturation", + "step_saturation", + "move_to_hue_and_saturation", + "move_to_color", + "move_color", + "step_color", + "move_to_color_temp", + "enhanced_move_to_hue", + "enhanced_move_hue", + "enhanced_step_hue", + "enhanced_move_to_hue_and_saturation", + "color_loop_set", + "stop_move_step", + "move_color_temp", + "step_color_temp" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:5e:2c:1e-1-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1a:5e:2c:1e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "light": [ { "fallback_name": null, diff --git a/tests/data/devices/busch-jaeger-rb01.json b/tests/data/devices/busch-jaeger-rb01.json index c59beca21..0ea89dca0 100644 --- a/tests/data/devices/busch-jaeger-rb01.json +++ b/tests/data/devices/busch-jaeger-rb01.json @@ -156,6 +156,106 @@ } }, "zha_lib_entities": { + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:97:db:33:21-10-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:97:db:33:21", + "endpoint_id": 10, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:97:db:33:21-10-768", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "ColorEvent", + "translation_key": "color", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:97:db:33:21", + "endpoint_id": 10, + "available": true, + "group_id": null, + "event_types": [ + "move_to_hue", + "move_hue", + "step_hue", + "move_to_saturation", + "move_saturation", + "step_saturation", + "move_to_hue_and_saturation", + "move_to_color", + "move_color", + "step_color", + "move_to_color_temp", + "enhanced_move_to_hue", + "enhanced_move_hue", + "enhanced_step_hue", + "enhanced_move_to_hue_and_saturation", + "color_loop_set", + "stop_move_step", + "move_color_temp", + "step_color_temp" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:97:db:33:21-10-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:97:db:33:21", + "endpoint_id": 10, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/bweetech-semote.json b/tests/data/devices/bweetech-semote.json index b16496d33..2a695988b 100644 --- a/tests/data/devices/bweetech-semote.json +++ b/tests/data/devices/bweetech-semote.json @@ -220,6 +220,106 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c7:ea:48:e4-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c7:ea:48:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c7:ea:48:e4-1-768", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "ColorEvent", + "translation_key": "color", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c7:ea:48:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "move_to_hue", + "move_hue", + "step_hue", + "move_to_saturation", + "move_saturation", + "step_saturation", + "move_to_hue_and_saturation", + "move_to_color", + "move_color", + "step_color", + "move_to_color_temp", + "enhanced_move_to_hue", + "enhanced_move_hue", + "enhanced_step_hue", + "enhanced_move_to_hue_and_saturation", + "color_loop_set", + "stop_move_step", + "move_color_temp", + "step_color_temp" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:c7:ea:48:e4-1-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:c7:ea:48:e4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/datek-ssds.json b/tests/data/devices/datek-ssds.json index 760d1f310..f4eb19d25 100644 --- a/tests/data/devices/datek-ssds.json +++ b/tests/data/devices/datek-ssds.json @@ -226,6 +226,65 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f7:d4:84:f4-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f7:d4:84:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f7:d4:84:f4-1-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f7:d4:84:f4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/ewelink-ck-tlsr8656-ss5-01-7000-0x00001102.json b/tests/data/devices/ewelink-ck-tlsr8656-ss5-01-7000-0x00001102.json index 720030c55..13de7df89 100644 --- a/tests/data/devices/ewelink-ck-tlsr8656-ss5-01-7000-0x00001102.json +++ b/tests/data/devices/ewelink-ck-tlsr8656-ss5-01-7000-0x00001102.json @@ -197,6 +197,36 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:40:82:43:82-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:40:82:43:82", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/ewelink-snzb-01p-0x00002000.json b/tests/data/devices/ewelink-snzb-01p-0x00002000.json index dd2d951bf..1845fbec4 100644 --- a/tests/data/devices/ewelink-snzb-01p-0x00002000.json +++ b/tests/data/devices/ewelink-snzb-01p-0x00002000.json @@ -203,6 +203,36 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "84:ba:20:ff:fe:d2:41:fe-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "84:ba:20:ff:fe:d2:41:fe", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/ewelink-snzb-01p-0x00002200.json b/tests/data/devices/ewelink-snzb-01p-0x00002200.json index abab46dc2..39cb7c100 100644 --- a/tests/data/devices/ewelink-snzb-01p-0x00002200.json +++ b/tests/data/devices/ewelink-snzb-01p-0x00002200.json @@ -203,6 +203,36 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6a:05:59:94-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6a:05:59:94", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/ewelink-wb01.json b/tests/data/devices/ewelink-wb01.json index 220c6dac3..66f8c75d6 100644 --- a/tests/data/devices/ewelink-wb01.json +++ b/tests/data/devices/ewelink-wb01.json @@ -171,6 +171,36 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "00:12:4b:00:25:12:e0:f9-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:12:4b:00:25:12:e0:f9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/hobeian-zg-101zl.json b/tests/data/devices/hobeian-zg-101zl.json index 0e50e5103..e68e7cf69 100644 --- a/tests/data/devices/hobeian-zg-101zl.json +++ b/tests/data/devices/hobeian-zg-101zl.json @@ -412,6 +412,65 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:41:15:95:9c-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:41:15:95:9c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:41:15:95:9c-1-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:41:15:95:9c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "select": [ { "fallback_name": null, diff --git a/tests/data/devices/horn-zone-haier-hs-22zw-0000011216.json b/tests/data/devices/horn-zone-haier-hs-22zw-0000011216.json index 942798cff..962a7a7b9 100644 --- a/tests/data/devices/horn-zone-haier-hs-22zw-0000011216.json +++ b/tests/data/devices/horn-zone-haier-hs-22zw-0000011216.json @@ -171,6 +171,36 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e2:16:2d:16-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e2:16:2d:16", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/ikea-of-sweden-parasoll-door-window-sensor-0x01000019.json b/tests/data/devices/ikea-of-sweden-parasoll-door-window-sensor-0x01000019.json index fd0424cb5..a5f45d30f 100644 --- a/tests/data/devices/ikea-of-sweden-parasoll-door-window-sensor-0x01000019.json +++ b/tests/data/devices/ikea-of-sweden-parasoll-door-window-sensor-0x01000019.json @@ -334,6 +334,36 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "04:87:27:ff:fe:4a:b3:25-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "04:87:27:ff:fe:4a:b3:25", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/ikea-of-sweden-remote-control-n2.json b/tests/data/devices/ikea-of-sweden-remote-control-n2.json index 4a5a63f98..bd6061b6a 100644 --- a/tests/data/devices/ikea-of-sweden-remote-control-n2.json +++ b/tests/data/devices/ikea-of-sweden-remote-control-n2.json @@ -213,6 +213,65 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6b:e7:d0:70-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6b:e7:d0:70", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6b:e7:d0:70-1-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6b:e7:d0:70", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/ikea-of-sweden-rodret-dimmer-0x01000047.json b/tests/data/devices/ikea-of-sweden-rodret-dimmer-0x01000047.json index 860fbf738..a04d8d50f 100644 --- a/tests/data/devices/ikea-of-sweden-rodret-dimmer-0x01000047.json +++ b/tests/data/devices/ikea-of-sweden-rodret-dimmer-0x01000047.json @@ -233,6 +233,65 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "5c:c7:c1:ff:fe:cc:19:d9-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "5c:c7:c1:ff:fe:cc:19:d9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "5c:c7:c1:ff:fe:cc:19:d9-1-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "5c:c7:c1:ff:fe:cc:19:d9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/ikea-of-sweden-rodret-dimmer-0x01000057.json b/tests/data/devices/ikea-of-sweden-rodret-dimmer-0x01000057.json index f24f44e24..b29eeeaab 100644 --- a/tests/data/devices/ikea-of-sweden-rodret-dimmer-0x01000057.json +++ b/tests/data/devices/ikea-of-sweden-rodret-dimmer-0x01000057.json @@ -253,6 +253,65 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:05:fa:0a:e0-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:05:fa:0a:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:05:fa:0a:e0-1-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:05:fa:0a:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/ikea-of-sweden-rodret-wireless-dimmer-0x01000057.json b/tests/data/devices/ikea-of-sweden-rodret-wireless-dimmer-0x01000057.json index efe0b8420..f79152b0c 100644 --- a/tests/data/devices/ikea-of-sweden-rodret-wireless-dimmer-0x01000057.json +++ b/tests/data/devices/ikea-of-sweden-rodret-wireless-dimmer-0x01000057.json @@ -246,6 +246,65 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:07:f8:aa:b7-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:07:f8:aa:b7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:07:f8:aa:b7-1-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:07:f8:aa:b7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/ikea-of-sweden-somrig-shortcut-button-0x01000021.json b/tests/data/devices/ikea-of-sweden-somrig-shortcut-button-0x01000021.json index ad8903309..25e073c89 100644 --- a/tests/data/devices/ikea-of-sweden-somrig-shortcut-button-0x01000021.json +++ b/tests/data/devices/ikea-of-sweden-somrig-shortcut-button-0x01000021.json @@ -301,6 +301,122 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6d:e6:02:47-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6d:e6:02:47", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6d:e6:02:47-1-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6d:e6:02:47", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6d:e6:02:47-2-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6d:e6:02:47", + "endpoint_id": 2, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6d:e6:02:47-2-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6d:e6:02:47", + "endpoint_id": 2, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/ikea-of-sweden-symfonisk-sound-remote-gen2-0x00010012.json b/tests/data/devices/ikea-of-sweden-symfonisk-sound-remote-gen2-0x00010012.json index 4f876e996..60c398d74 100644 --- a/tests/data/devices/ikea-of-sweden-symfonisk-sound-remote-gen2-0x00010012.json +++ b/tests/data/devices/ikea-of-sweden-symfonisk-sound-remote-gen2-0x00010012.json @@ -226,6 +226,65 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:61:2b:43-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:52:61:2b:43", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:61:2b:43-1-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:52:61:2b:43", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/ikea-of-sweden-tradfri-motion-sensor.json b/tests/data/devices/ikea-of-sweden-tradfri-motion-sensor.json index 99e46bddc..e2cad07d5 100644 --- a/tests/data/devices/ikea-of-sweden-tradfri-motion-sensor.json +++ b/tests/data/devices/ikea-of-sweden-tradfri-motion-sensor.json @@ -256,6 +256,65 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:99:94:76:3f-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:99:94:76:3f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:99:94:76:3f-1-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:99:94:76:3f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/ikea-of-sweden-tradfri-on-off-switch.json b/tests/data/devices/ikea-of-sweden-tradfri-on-off-switch.json index 71532ff6f..842af77b8 100644 --- a/tests/data/devices/ikea-of-sweden-tradfri-on-off-switch.json +++ b/tests/data/devices/ikea-of-sweden-tradfri-on-off-switch.json @@ -231,6 +231,65 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "14:b4:57:ff:fe:53:65:d7-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "14:b4:57:ff:fe:53:65:d7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "14:b4:57:ff:fe:53:65:d7-1-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "14:b4:57:ff:fe:53:65:d7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/ikea-of-sweden-tradfri-open-close-remote-0x23079631.json b/tests/data/devices/ikea-of-sweden-tradfri-open-close-remote-0x23079631.json index 48c9f0a43..58ff68a79 100644 --- a/tests/data/devices/ikea-of-sweden-tradfri-open-close-remote-0x23079631.json +++ b/tests/data/devices/ikea-of-sweden-tradfri-open-close-remote-0x23079631.json @@ -246,6 +246,37 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "38:5b:44:ff:fe:e6:8a:85-1-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "38:5b:44:ff:fe:e6:8a:85", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/ikea-of-sweden-tradfri-remote-control.json b/tests/data/devices/ikea-of-sweden-tradfri-remote-control.json index 70a4685d8..c6dd63757 100644 --- a/tests/data/devices/ikea-of-sweden-tradfri-remote-control.json +++ b/tests/data/devices/ikea-of-sweden-tradfri-remote-control.json @@ -231,6 +231,65 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "90:fd:9f:ff:fe:fe:d8:a1-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "90:fd:9f:ff:fe:fe:d8:a1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "90:fd:9f:ff:fe:fe:d8:a1-1-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "90:fd:9f:ff:fe:fe:d8:a1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/ikea-of-sweden-tradfri-shortcut-button-0x23015631.json b/tests/data/devices/ikea-of-sweden-tradfri-shortcut-button-0x23015631.json index f7ee213d8..e2e61f63a 100644 --- a/tests/data/devices/ikea-of-sweden-tradfri-shortcut-button-0x23015631.json +++ b/tests/data/devices/ikea-of-sweden-tradfri-shortcut-button-0x23015631.json @@ -252,6 +252,65 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7d:a7:c6:3b-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7d:a7:c6:3b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7d:a7:c6:3b-1-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7d:a7:c6:3b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/ikea-of-sweden-tradfri-shortcut-button.json b/tests/data/devices/ikea-of-sweden-tradfri-shortcut-button.json index 25fada04a..35f47e8ef 100644 --- a/tests/data/devices/ikea-of-sweden-tradfri-shortcut-button.json +++ b/tests/data/devices/ikea-of-sweden-tradfri-shortcut-button.json @@ -226,6 +226,65 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7d:a7:c6:3b-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7d:a7:c6:3b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:7d:a7:c6:3b-1-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:7d:a7:c6:3b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/ikea-of-sweden-tradfri-wireless-dimmer.json b/tests/data/devices/ikea-of-sweden-tradfri-wireless-dimmer.json index 048e028eb..d639cba46 100644 --- a/tests/data/devices/ikea-of-sweden-tradfri-wireless-dimmer.json +++ b/tests/data/devices/ikea-of-sweden-tradfri-wireless-dimmer.json @@ -238,6 +238,65 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:2b:cf:1f-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0b:57:ff:fe:2b:cf:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "00:0b:57:ff:fe:2b:cf:1f-1-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0b:57:ff:fe:2b:cf:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/ikea-of-sweden-vallhorn-wireless-motion-sensor-0x01000064.json b/tests/data/devices/ikea-of-sweden-vallhorn-wireless-motion-sensor-0x01000064.json index d44f61bfa..20ef87620 100644 --- a/tests/data/devices/ikea-of-sweden-vallhorn-wireless-motion-sensor-0x01000064.json +++ b/tests/data/devices/ikea-of-sweden-vallhorn-wireless-motion-sensor-0x01000064.json @@ -441,6 +441,36 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "8c:6f:b9:ff:fe:26:3b:4a-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "8c:6f:b9:ff:fe:26:3b:4a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + } + ], "number": [ { "fallback_name": "On time", diff --git a/tests/data/devices/innr-rc-250-0x21086500.json b/tests/data/devices/innr-rc-250-0x21086500.json index c8a886b9b..42dab503e 100644 --- a/tests/data/devices/innr-rc-250-0x21086500.json +++ b/tests/data/devices/innr-rc-250-0x21086500.json @@ -226,6 +226,106 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:25:3a:b6:6f-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:25:3a:b6:6f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:25:3a:b6:6f-1-768", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "ColorEvent", + "translation_key": "color", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:25:3a:b6:6f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "move_to_hue", + "move_hue", + "step_hue", + "move_to_saturation", + "move_saturation", + "step_saturation", + "move_to_hue_and_saturation", + "move_to_color", + "move_color", + "step_color", + "move_to_color_temp", + "enhanced_move_to_hue", + "enhanced_move_hue", + "enhanced_step_hue", + "enhanced_move_to_hue_and_saturation", + "color_loop_set", + "stop_move_step", + "move_color_temp", + "step_color_temp" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:25:3a:b6:6f-1-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:25:3a:b6:6f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/inovelli-vzm30-sn-0x01100100.json b/tests/data/devices/inovelli-vzm30-sn-0x01100100.json index 32c736215..d1c45de4f 100644 --- a/tests/data/devices/inovelli-vzm30-sn-0x01100100.json +++ b/tests/data/devices/inovelli-vzm30-sn-0x01100100.json @@ -792,6 +792,122 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-2-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "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": 2, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-2-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "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": 2, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-3-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "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": 3, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-3-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "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": 3, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "light": [ { "fallback_name": null, diff --git a/tests/data/devices/inovelli-vzm30-sn.json b/tests/data/devices/inovelli-vzm30-sn.json index a233762fe..c32d82b91 100644 --- a/tests/data/devices/inovelli-vzm30-sn.json +++ b/tests/data/devices/inovelli-vzm30-sn.json @@ -942,6 +942,122 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-2-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "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": 2, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-2-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "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": 2, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-3-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "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": 3, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:9a:d6:cb:e7-3-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "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": 3, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "light": [ { "fallback_name": null, diff --git a/tests/data/devices/inovelli-vzm31-sn-0x01020212.json b/tests/data/devices/inovelli-vzm31-sn-0x01020212.json index 6c326e107..df5327a33 100644 --- a/tests/data/devices/inovelli-vzm31-sn-0x01020212.json +++ b/tests/data/devices/inovelli-vzm31-sn-0x01020212.json @@ -920,6 +920,65 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-2-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "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": 2, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:dc:41:3c:40-2-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "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": 2, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "light": [ { "fallback_name": null, diff --git a/tests/data/devices/inovelli-vzm32-sn-0x0103000a.json b/tests/data/devices/inovelli-vzm32-sn-0x0103000a.json index 9f60ee5da..6ad2f17e4 100644 --- a/tests/data/devices/inovelli-vzm32-sn-0x0103000a.json +++ b/tests/data/devices/inovelli-vzm32-sn-0x0103000a.json @@ -791,6 +791,122 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:59:98:78:6f-2-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:59:98:78:6f", + "endpoint_id": 2, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:59:98:78:6f-2-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:59:98:78:6f", + "endpoint_id": 2, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:59:98:78:6f-3-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:59:98:78:6f", + "endpoint_id": 3, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:59:98:78:6f-3-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:59:98:78:6f", + "endpoint_id": 3, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "light": [ { "fallback_name": null, diff --git a/tests/data/devices/inovelli-vzm35-sn-0x02020107.json b/tests/data/devices/inovelli-vzm35-sn-0x02020107.json index 2afcfa5f9..6f6596f6c 100644 --- a/tests/data/devices/inovelli-vzm35-sn-0x02020107.json +++ b/tests/data/devices/inovelli-vzm35-sn-0x02020107.json @@ -581,6 +581,65 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-2-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "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": 2, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:03:3d:90:21-2-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "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": 2, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "light": [ { "fallback_name": null, diff --git a/tests/data/devices/jasco-products-45856-0x00000006.json b/tests/data/devices/jasco-products-45856-0x00000006.json index 86f47b7e2..459767fe1 100644 --- a/tests/data/devices/jasco-products-45856-0x00000006.json +++ b/tests/data/devices/jasco-products-45856-0x00000006.json @@ -349,6 +349,36 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "00:22:a3:00:00:26:d3:61-2-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:22:a3:00:00:26:d3:61", + "endpoint_id": 2, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + } + ], "light": [ { "fallback_name": null, diff --git a/tests/data/devices/jasco-products-45857-0x00000006.json b/tests/data/devices/jasco-products-45857-0x00000006.json index cab039571..f360d25ff 100644 --- a/tests/data/devices/jasco-products-45857-0x00000006.json +++ b/tests/data/devices/jasco-products-45857-0x00000006.json @@ -404,6 +404,65 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "00:22:a3:00:00:25:2c:24-2-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:22:a3:00:00:25:2c:24", + "endpoint_id": 2, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "00:22:a3:00:00:25:2c:24-2-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:22:a3:00:00:25:2c:24", + "endpoint_id": 2, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "light": [ { "fallback_name": null, diff --git a/tests/data/devices/ke-tradfri-open-close-remote-0x22010631.json b/tests/data/devices/ke-tradfri-open-close-remote-0x22010631.json index f56c4e714..a4406b05b 100644 --- a/tests/data/devices/ke-tradfri-open-close-remote-0x22010631.json +++ b/tests/data/devices/ke-tradfri-open-close-remote-0x22010631.json @@ -246,6 +246,37 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "5c:02:72:ff:fe:96:48:04-1-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "5c:02:72:ff:fe:96:48:04", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/lds-zbt-cctswitch-d0001-0x21000006.json b/tests/data/devices/lds-zbt-cctswitch-d0001-0x21000006.json index fa61a989b..b1fb5a656 100644 --- a/tests/data/devices/lds-zbt-cctswitch-d0001-0x21000006.json +++ b/tests/data/devices/lds-zbt-cctswitch-d0001-0x21000006.json @@ -226,6 +226,106 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "14:b4:57:ff:fe:81:56:33-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "14:b4:57:ff:fe:81:56:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "14:b4:57:ff:fe:81:56:33-1-768", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "ColorEvent", + "translation_key": "color", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "14:b4:57:ff:fe:81:56:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "move_to_hue", + "move_hue", + "step_hue", + "move_to_saturation", + "move_saturation", + "step_saturation", + "move_to_hue_and_saturation", + "move_to_color", + "move_color", + "step_color", + "move_to_color_temp", + "enhanced_move_to_hue", + "enhanced_move_hue", + "enhanced_step_hue", + "enhanced_move_to_hue_and_saturation", + "color_loop_set", + "stop_move_step", + "move_color_temp", + "step_color_temp" + ] + }, + { + "fallback_name": null, + "unique_id": "14:b4:57:ff:fe:81:56:33-1-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "14:b4:57:ff:fe:81:56:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/legrand-contactor.json b/tests/data/devices/legrand-contactor.json index 80a90a8ae..9f9edc071 100644 --- a/tests/data/devices/legrand-contactor.json +++ b/tests/data/devices/legrand-contactor.json @@ -594,6 +594,36 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0d:ab:89:6b-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:0d:ab:89:6b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + } + ], "select": [ { "fallback_name": null, diff --git a/tests/data/devices/legrand-dimmer-switch-w-o-neutral-0x004d45ff.json b/tests/data/devices/legrand-dimmer-switch-w-o-neutral-0x004d45ff.json index f9a7a2ed1..459fac212 100644 --- a/tests/data/devices/legrand-dimmer-switch-w-o-neutral-0x004d45ff.json +++ b/tests/data/devices/legrand-dimmer-switch-w-o-neutral-0x004d45ff.json @@ -404,6 +404,36 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:5a:79:5a-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b1:5a:79:5a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + } + ], "light": [ { "fallback_name": null, diff --git a/tests/data/devices/legrand-double-gangs-remote-switch.json b/tests/data/devices/legrand-double-gangs-remote-switch.json index 9faee1720..f88009c63 100644 --- a/tests/data/devices/legrand-double-gangs-remote-switch.json +++ b/tests/data/devices/legrand-double-gangs-remote-switch.json @@ -308,6 +308,122 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b6:14:95:c6-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b6:14:95:c6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b6:14:95:c6-1-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b6:14:95:c6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b6:14:95:c6-2-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b6:14:95:c6", + "endpoint_id": 2, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b6:14:95:c6-2-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b6:14:95:c6", + "endpoint_id": 2, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/legrand-light-switch-with-neutral-0x001c4203.json b/tests/data/devices/legrand-light-switch-with-neutral-0x001c4203.json index 49df5a9e1..aa4bd37fe 100644 --- a/tests/data/devices/legrand-light-switch-with-neutral-0x001c4203.json +++ b/tests/data/devices/legrand-light-switch-with-neutral-0x001c4203.json @@ -282,6 +282,36 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + } + ], "light": [ { "fallback_name": null, diff --git a/tests/data/devices/legrand-light-switch-with-neutral.json b/tests/data/devices/legrand-light-switch-with-neutral.json index 719c31351..db6c29618 100644 --- a/tests/data/devices/legrand-light-switch-with-neutral.json +++ b/tests/data/devices/legrand-light-switch-with-neutral.json @@ -353,6 +353,36 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:39:bc:b5:2d-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:39:bc:b5:2d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + } + ], "light": [ { "fallback_name": null, diff --git a/tests/data/devices/legrand-mobile-outlet-0x006545ff.json b/tests/data/devices/legrand-mobile-outlet-0x006545ff.json index 0543c8813..ab7575b67 100644 --- a/tests/data/devices/legrand-mobile-outlet-0x006545ff.json +++ b/tests/data/devices/legrand-mobile-outlet-0x006545ff.json @@ -686,6 +686,36 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:00:e8:bc:6f-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:00:e8:bc:6f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + } + ], "select": [ { "fallback_name": null, diff --git a/tests/data/devices/lk-zbt-dimswitch-d0001-0x22166500.json b/tests/data/devices/lk-zbt-dimswitch-d0001-0x22166500.json index 9e36341b0..30016551a 100644 --- a/tests/data/devices/lk-zbt-dimswitch-d0001-0x22166500.json +++ b/tests/data/devices/lk-zbt-dimswitch-d0001-0x22166500.json @@ -226,6 +226,65 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "5c:02:72:ff:fe:3f:8c:a4-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "5c:02:72:ff:fe:3f:8c:a4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "5c:02:72:ff:fe:3f:8c:a4-1-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "5c:02:72:ff:fe:3f:8c:a4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/lumi-lumi-magnet-ac01.json b/tests/data/devices/lumi-lumi-magnet-ac01.json index 14412bfd8..ef2a82896 100644 --- a/tests/data/devices/lumi-lumi-magnet-ac01.json +++ b/tests/data/devices/lumi-lumi-magnet-ac01.json @@ -213,6 +213,36 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "54:ef:44:10:00:1e:85:7f-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "54:ef:44:10:00:1e:85:7f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + } + ], "select": [ { "fallback_name": null, diff --git a/tests/data/devices/lumi-lumi-magnet-agl02-0x0000001e.json b/tests/data/devices/lumi-lumi-magnet-agl02-0x0000001e.json index f4acff392..54dc89f4a 100644 --- a/tests/data/devices/lumi-lumi-magnet-agl02-0x0000001e.json +++ b/tests/data/devices/lumi-lumi-magnet-agl02-0x0000001e.json @@ -194,6 +194,36 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:52:70:f0:26-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:52:70:f0:26", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/lumi-lumi-remote-b286opcn01.json b/tests/data/devices/lumi-lumi-remote-b286opcn01.json index 47b777fd8..547feb8a4 100644 --- a/tests/data/devices/lumi-lumi-remote-b286opcn01.json +++ b/tests/data/devices/lumi-lumi-remote-b286opcn01.json @@ -416,6 +416,246 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:75:c1:67-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "04:cf:8c:df:3c:75:c1:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:75:c1:67-1-768", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "ColorEvent", + "translation_key": "color", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "04:cf:8c:df:3c:75:c1:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "move_to_hue", + "move_hue", + "step_hue", + "move_to_saturation", + "move_saturation", + "step_saturation", + "move_to_hue_and_saturation", + "move_to_color", + "move_color", + "step_color", + "move_to_color_temp", + "enhanced_move_to_hue", + "enhanced_move_hue", + "enhanced_step_hue", + "enhanced_move_to_hue_and_saturation", + "color_loop_set", + "stop_move_step", + "move_color_temp", + "step_color_temp" + ] + }, + { + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:75:c1:67-1-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "04:cf:8c:df:3c:75:c1:67", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + }, + { + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:75:c1:67-2-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "04:cf:8c:df:3c:75:c1:67", + "endpoint_id": 2, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:75:c1:67-3-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "04:cf:8c:df:3c:75:c1:67", + "endpoint_id": 3, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:75:c1:67-4-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "04:cf:8c:df:3c:75:c1:67", + "endpoint_id": 4, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:75:c1:67-5-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "04:cf:8c:df:3c:75:c1:67", + "endpoint_id": 5, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:75:c1:67-6-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "04:cf:8c:df:3c:75:c1:67", + "endpoint_id": 6, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/lumi-lumi-remote-b28ac1.json b/tests/data/devices/lumi-lumi-remote-b28ac1.json index f3f1bc53d..47e66789f 100644 --- a/tests/data/devices/lumi-lumi-remote-b28ac1.json +++ b/tests/data/devices/lumi-lumi-remote-b28ac1.json @@ -263,6 +263,92 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b2:f6:6e:7d-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b2:f6:6e:7d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b2:f6:6e:7d-2-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b2:f6:6e:7d", + "endpoint_id": 2, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b2:f6:6e:7d-3-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b2:f6:6e:7d", + "endpoint_id": 3, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + } + ], "select": [ { "fallback_name": "Click mode", diff --git a/tests/data/devices/lumi-lumi-remote-b486opcn01.json b/tests/data/devices/lumi-lumi-remote-b486opcn01.json index 9f770d0bb..54e2e9210 100644 --- a/tests/data/devices/lumi-lumi-remote-b486opcn01.json +++ b/tests/data/devices/lumi-lumi-remote-b486opcn01.json @@ -282,6 +282,134 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:75:c1:7b-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "04:cf:8c:df:3c:75:c1:7b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:75:c1:7b-1-768", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "ColorEvent", + "translation_key": "color", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "04:cf:8c:df:3c:75:c1:7b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "move_to_hue", + "move_hue", + "step_hue", + "move_to_saturation", + "move_saturation", + "step_saturation", + "move_to_hue_and_saturation", + "move_to_color", + "move_color", + "step_color", + "move_to_color_temp", + "enhanced_move_to_hue", + "enhanced_move_hue", + "enhanced_step_hue", + "enhanced_move_to_hue_and_saturation", + "color_loop_set", + "stop_move_step", + "move_color_temp", + "step_color_temp" + ] + }, + { + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:75:c1:7b-1-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "04:cf:8c:df:3c:75:c1:7b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + }, + { + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:75:c1:7b-2-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "04:cf:8c:df:3c:75:c1:7b", + "endpoint_id": 2, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/lumi-lumi-remote-b686opcn01.json b/tests/data/devices/lumi-lumi-remote-b686opcn01.json index c0e2e5044..5284e2e32 100644 --- a/tests/data/devices/lumi-lumi-remote-b686opcn01.json +++ b/tests/data/devices/lumi-lumi-remote-b686opcn01.json @@ -390,6 +390,246 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:79:47:76-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "04:cf:8c:df:3c:79:47:76", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:79:47:76-1-768", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "ColorEvent", + "translation_key": "color", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "04:cf:8c:df:3c:79:47:76", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "move_to_hue", + "move_hue", + "step_hue", + "move_to_saturation", + "move_saturation", + "step_saturation", + "move_to_hue_and_saturation", + "move_to_color", + "move_color", + "step_color", + "move_to_color_temp", + "enhanced_move_to_hue", + "enhanced_move_hue", + "enhanced_step_hue", + "enhanced_move_to_hue_and_saturation", + "color_loop_set", + "stop_move_step", + "move_color_temp", + "step_color_temp" + ] + }, + { + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:79:47:76-1-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "04:cf:8c:df:3c:79:47:76", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + }, + { + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:79:47:76-2-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "04:cf:8c:df:3c:79:47:76", + "endpoint_id": 2, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:79:47:76-3-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "04:cf:8c:df:3c:79:47:76", + "endpoint_id": 3, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:79:47:76-4-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "04:cf:8c:df:3c:79:47:76", + "endpoint_id": 4, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:79:47:76-5-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "04:cf:8c:df:3c:79:47:76", + "endpoint_id": 5, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "04:cf:8c:df:3c:79:47:76-6-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "04:cf:8c:df:3c:79:47:76", + "endpoint_id": 6, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/lumi-lumi-sensor-86sw2.json b/tests/data/devices/lumi-lumi-sensor-86sw2.json index 7facd0028..d1a713578 100644 --- a/tests/data/devices/lumi-lumi-sensor-86sw2.json +++ b/tests/data/devices/lumi-lumi-sensor-86sw2.json @@ -366,6 +366,92 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "00:15:8d:00:02:54:cb:fa-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:02:54:cb:fa", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "00:15:8d:00:02:54:cb:fa-2-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:02:54:cb:fa", + "endpoint_id": 2, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "00:15:8d:00:02:54:cb:fa-3-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:02:54:cb:fa", + "endpoint_id": 3, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/lumi-lumi-sensor-magnet-aq2.json b/tests/data/devices/lumi-lumi-sensor-magnet-aq2.json index c32357ee5..56a267ac1 100644 --- a/tests/data/devices/lumi-lumi-sensor-magnet-aq2.json +++ b/tests/data/devices/lumi-lumi-sensor-magnet-aq2.json @@ -231,6 +231,36 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "00:15:8d:00:01:ab:40:52-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:01:ab:40:52", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/lumi-lumi-sensor-switch-aq2.json b/tests/data/devices/lumi-lumi-sensor-switch-aq2.json index 599c749e8..c8abb6e34 100644 --- a/tests/data/devices/lumi-lumi-sensor-switch-aq2.json +++ b/tests/data/devices/lumi-lumi-sensor-switch-aq2.json @@ -180,6 +180,36 @@ } }, "zha_lib_entities": { + "event": [ + { + "fallback_name": null, + "unique_id": "00:15:8d:00:02:13:91:38-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:02:13:91:38", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/lumi-lumi-sensor-switch-aq3.json b/tests/data/devices/lumi-lumi-sensor-switch-aq3.json index 9b38951ad..450570b2d 100644 --- a/tests/data/devices/lumi-lumi-sensor-switch-aq3.json +++ b/tests/data/devices/lumi-lumi-sensor-switch-aq3.json @@ -163,6 +163,36 @@ } }, "zha_lib_entities": { + "event": [ + { + "fallback_name": null, + "unique_id": "00:15:8d:00:02:b0:e5:91-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:02:b0:e5:91", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/lumi-lumi-sensor-switch.json b/tests/data/devices/lumi-lumi-sensor-switch.json index b29c6ad24..89b5fd46b 100644 --- a/tests/data/devices/lumi-lumi-sensor-switch.json +++ b/tests/data/devices/lumi-lumi-sensor-switch.json @@ -197,6 +197,65 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "00:15:8d:00:02:10:ba:72-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:02:10:ba:72", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "00:15:8d:00:02:10:ba:72-1-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:15:8d:00:02:10:ba:72", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/lutron-lzl4bwhl01-remote.json b/tests/data/devices/lutron-lzl4bwhl01-remote.json index 6f5c76f45..b5212ed68 100644 --- a/tests/data/devices/lutron-lzl4bwhl01-remote.json +++ b/tests/data/devices/lutron-lzl4bwhl01-remote.json @@ -167,6 +167,65 @@ } }, "zha_lib_entities": { + "event": [ + { + "fallback_name": null, + "unique_id": "ff:ff:00:0f:e7:ff:3c:b3-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ff:ff:00:0f:e7:ff:3c:b3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ff:ff:00:0f:e7:ff:3c:b3-1-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ff:ff:00:0f:e7:ff:3c:b3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/lutron-z3-1brl-0x00000c08.json b/tests/data/devices/lutron-z3-1brl-0x00000c08.json index 85bb5eec8..ea33bacfa 100644 --- a/tests/data/devices/lutron-z3-1brl-0x00000c08.json +++ b/tests/data/devices/lutron-z3-1brl-0x00000c08.json @@ -214,6 +214,65 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ff:ff:00:0f:e7:fb:f0:07-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ff:ff:00:0f:e7:fb:f0:07", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ff:ff:00:0f:e7:fb:f0:07-1-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ff:ff:00:0f:e7:fb:f0:07", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/mli-zbt-remote-all-rgbw-0x11010022.json b/tests/data/devices/mli-zbt-remote-all-rgbw-0x11010022.json index e5cc81bf7..b25e0a4eb 100644 --- a/tests/data/devices/mli-zbt-remote-all-rgbw-0x11010022.json +++ b/tests/data/devices/mli-zbt-remote-all-rgbw-0x11010022.json @@ -541,6 +541,106 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:2f:b5:32-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b1:2f:b5:32", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:2f:b5:32-1-768", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "ColorEvent", + "translation_key": "color", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b1:2f:b5:32", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "move_to_hue", + "move_hue", + "step_hue", + "move_to_saturation", + "move_saturation", + "step_saturation", + "move_to_hue_and_saturation", + "move_to_color", + "move_color", + "step_color", + "move_to_color_temp", + "enhanced_move_to_hue", + "enhanced_move_hue", + "enhanced_step_hue", + "enhanced_move_to_hue_and_saturation", + "color_loop_set", + "stop_move_step", + "move_color_temp", + "step_color_temp" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:b1:2f:b5:32-1-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:b1:2f:b5:32", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/neuhaus-lighting-group-nlg-remote.json b/tests/data/devices/neuhaus-lighting-group-nlg-remote.json index 0d3b84e94..2ce5a77b9 100644 --- a/tests/data/devices/neuhaus-lighting-group-nlg-remote.json +++ b/tests/data/devices/neuhaus-lighting-group-nlg-remote.json @@ -176,6 +176,106 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:90:e3:16:0a-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:90:e3:16:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:90:e3:16:0a-1-768", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "ColorEvent", + "translation_key": "color", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:90:e3:16:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "move_to_hue", + "move_hue", + "step_hue", + "move_to_saturation", + "move_saturation", + "step_saturation", + "move_to_hue_and_saturation", + "move_to_color", + "move_color", + "step_color", + "move_to_color_temp", + "enhanced_move_to_hue", + "enhanced_move_hue", + "enhanced_step_hue", + "enhanced_move_to_hue_and_saturation", + "color_loop_set", + "stop_move_step", + "move_color_temp", + "step_color_temp" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:90:e3:16:0a-1-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:90:e3:16:0a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/niko-nv-battery-switch-2-button.json b/tests/data/devices/niko-nv-battery-switch-2-button.json index 52fa781d5..1d9ac18bc 100644 --- a/tests/data/devices/niko-nv-battery-switch-2-button.json +++ b/tests/data/devices/niko-nv-battery-switch-2-button.json @@ -260,6 +260,122 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f1:c5:12:a4-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f1:c5:12:a4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f1:c5:12:a4-1-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f1:c5:12:a4", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f1:c5:12:a4-2-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f1:c5:12:a4", + "endpoint_id": 2, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f1:c5:12:a4-2-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f1:c5:12:a4", + "endpoint_id": 2, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/niko-nv-battery-switch-4-button-0x21046760.json b/tests/data/devices/niko-nv-battery-switch-4-button-0x21046760.json index f7dbaea42..d13af931c 100644 --- a/tests/data/devices/niko-nv-battery-switch-4-button-0x21046760.json +++ b/tests/data/devices/niko-nv-battery-switch-4-button-0x21046760.json @@ -337,6 +337,236 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:23:5d:15:43-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:23:5d:15:43", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:23:5d:15:43-1-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:23:5d:15:43", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:23:5d:15:43-2-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:23:5d:15:43", + "endpoint_id": 2, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:23:5d:15:43-2-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:23:5d:15:43", + "endpoint_id": 2, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:23:5d:15:43-3-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:23:5d:15:43", + "endpoint_id": 3, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:23:5d:15:43-3-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:23:5d:15:43", + "endpoint_id": 3, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:23:5d:15:43-4-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:23:5d:15:43", + "endpoint_id": 4, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:23:5d:15:43-4-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:23:5d:15:43", + "endpoint_id": 4, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/osram-switch-4x-lightify-0x01000000.json b/tests/data/devices/osram-switch-4x-lightify-0x01000000.json index 740be2502..c74fceda7 100644 --- a/tests/data/devices/osram-switch-4x-lightify-0x01000000.json +++ b/tests/data/devices/osram-switch-4x-lightify-0x01000000.json @@ -764,6 +764,596 @@ } }, "zha_lib_entities": { + "event": [ + { + "fallback_name": null, + "unique_id": "00:0d:6f:00:0e:c8:d4:e7-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:0e:c8:d4:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "00:0d:6f:00:0e:c8:d4:e7-1-768", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "ColorEvent", + "translation_key": "color", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:0e:c8:d4:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "move_to_hue", + "move_hue", + "step_hue", + "move_to_saturation", + "move_saturation", + "step_saturation", + "move_to_hue_and_saturation", + "move_to_color", + "move_color", + "step_color", + "move_to_color_temp", + "enhanced_move_to_hue", + "enhanced_move_hue", + "enhanced_step_hue", + "enhanced_move_to_hue_and_saturation", + "color_loop_set", + "stop_move_step", + "move_color_temp", + "step_color_temp" + ] + }, + { + "fallback_name": null, + "unique_id": "00:0d:6f:00:0e:c8:d4:e7-1-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:0e:c8:d4:e7", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + }, + { + "fallback_name": null, + "unique_id": "00:0d:6f:00:0e:c8:d4:e7-2-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:0e:c8:d4:e7", + "endpoint_id": 2, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "00:0d:6f:00:0e:c8:d4:e7-2-768", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "ColorEvent", + "translation_key": "color", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:0e:c8:d4:e7", + "endpoint_id": 2, + "available": true, + "group_id": null, + "event_types": [ + "move_to_hue", + "move_hue", + "step_hue", + "move_to_saturation", + "move_saturation", + "step_saturation", + "move_to_hue_and_saturation", + "move_to_color", + "move_color", + "step_color", + "move_to_color_temp", + "enhanced_move_to_hue", + "enhanced_move_hue", + "enhanced_step_hue", + "enhanced_move_to_hue_and_saturation", + "color_loop_set", + "stop_move_step", + "move_color_temp", + "step_color_temp" + ] + }, + { + "fallback_name": null, + "unique_id": "00:0d:6f:00:0e:c8:d4:e7-2-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:0e:c8:d4:e7", + "endpoint_id": 2, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + }, + { + "fallback_name": null, + "unique_id": "00:0d:6f:00:0e:c8:d4:e7-3-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:0e:c8:d4:e7", + "endpoint_id": 3, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "00:0d:6f:00:0e:c8:d4:e7-3-768", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "ColorEvent", + "translation_key": "color", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:0e:c8:d4:e7", + "endpoint_id": 3, + "available": true, + "group_id": null, + "event_types": [ + "move_to_hue", + "move_hue", + "step_hue", + "move_to_saturation", + "move_saturation", + "step_saturation", + "move_to_hue_and_saturation", + "move_to_color", + "move_color", + "step_color", + "move_to_color_temp", + "enhanced_move_to_hue", + "enhanced_move_hue", + "enhanced_step_hue", + "enhanced_move_to_hue_and_saturation", + "color_loop_set", + "stop_move_step", + "move_color_temp", + "step_color_temp" + ] + }, + { + "fallback_name": null, + "unique_id": "00:0d:6f:00:0e:c8:d4:e7-3-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:0e:c8:d4:e7", + "endpoint_id": 3, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + }, + { + "fallback_name": null, + "unique_id": "00:0d:6f:00:0e:c8:d4:e7-4-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:0e:c8:d4:e7", + "endpoint_id": 4, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "00:0d:6f:00:0e:c8:d4:e7-4-768", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "ColorEvent", + "translation_key": "color", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:0e:c8:d4:e7", + "endpoint_id": 4, + "available": true, + "group_id": null, + "event_types": [ + "move_to_hue", + "move_hue", + "step_hue", + "move_to_saturation", + "move_saturation", + "step_saturation", + "move_to_hue_and_saturation", + "move_to_color", + "move_color", + "step_color", + "move_to_color_temp", + "enhanced_move_to_hue", + "enhanced_move_hue", + "enhanced_step_hue", + "enhanced_move_to_hue_and_saturation", + "color_loop_set", + "stop_move_step", + "move_color_temp", + "step_color_temp" + ] + }, + { + "fallback_name": null, + "unique_id": "00:0d:6f:00:0e:c8:d4:e7-4-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:0e:c8:d4:e7", + "endpoint_id": 4, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + }, + { + "fallback_name": null, + "unique_id": "00:0d:6f:00:0e:c8:d4:e7-5-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:0e:c8:d4:e7", + "endpoint_id": 5, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "00:0d:6f:00:0e:c8:d4:e7-5-768", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "ColorEvent", + "translation_key": "color", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:0e:c8:d4:e7", + "endpoint_id": 5, + "available": true, + "group_id": null, + "event_types": [ + "move_to_hue", + "move_hue", + "step_hue", + "move_to_saturation", + "move_saturation", + "step_saturation", + "move_to_hue_and_saturation", + "move_to_color", + "move_color", + "step_color", + "move_to_color_temp", + "enhanced_move_to_hue", + "enhanced_move_hue", + "enhanced_step_hue", + "enhanced_move_to_hue_and_saturation", + "color_loop_set", + "stop_move_step", + "move_color_temp", + "step_color_temp" + ] + }, + { + "fallback_name": null, + "unique_id": "00:0d:6f:00:0e:c8:d4:e7-5-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:0e:c8:d4:e7", + "endpoint_id": 5, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + }, + { + "fallback_name": null, + "unique_id": "00:0d:6f:00:0e:c8:d4:e7-6-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:0e:c8:d4:e7", + "endpoint_id": 6, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "00:0d:6f:00:0e:c8:d4:e7-6-768", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "ColorEvent", + "translation_key": "color", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:0e:c8:d4:e7", + "endpoint_id": 6, + "available": true, + "group_id": null, + "event_types": [ + "move_to_hue", + "move_hue", + "step_hue", + "move_to_saturation", + "move_saturation", + "step_saturation", + "move_to_hue_and_saturation", + "move_to_color", + "move_color", + "step_color", + "move_to_color_temp", + "enhanced_move_to_hue", + "enhanced_move_hue", + "enhanced_step_hue", + "enhanced_move_to_hue_and_saturation", + "color_loop_set", + "stop_move_step", + "move_color_temp", + "step_color_temp" + ] + }, + { + "fallback_name": null, + "unique_id": "00:0d:6f:00:0e:c8:d4:e7-6-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:0e:c8:d4:e7", + "endpoint_id": 6, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/paulmann-licht-gmbh-501-34.json b/tests/data/devices/paulmann-licht-gmbh-501-34.json index c81a8fd30..644b924aa 100644 --- a/tests/data/devices/paulmann-licht-gmbh-501-34.json +++ b/tests/data/devices/paulmann-licht-gmbh-501-34.json @@ -347,6 +347,204 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4e:54:ef:79-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4e:54:ef:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4e:54:ef:79-1-768", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "ColorEvent", + "translation_key": "color", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4e:54:ef:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "move_to_hue", + "move_hue", + "step_hue", + "move_to_saturation", + "move_saturation", + "step_saturation", + "move_to_hue_and_saturation", + "move_to_color", + "move_color", + "step_color", + "move_to_color_temp", + "enhanced_move_to_hue", + "enhanced_move_hue", + "enhanced_step_hue", + "enhanced_move_to_hue_and_saturation", + "color_loop_set", + "stop_move_step", + "move_color_temp", + "step_color_temp" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4e:54:ef:79-1-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4e:54:ef:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4e:54:ef:79-2-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4e:54:ef:79", + "endpoint_id": 2, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4e:54:ef:79-2-768", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "ColorEvent", + "translation_key": "color", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4e:54:ef:79", + "endpoint_id": 2, + "available": true, + "group_id": null, + "event_types": [ + "move_to_hue", + "move_hue", + "step_hue", + "move_to_saturation", + "move_saturation", + "step_saturation", + "move_to_hue_and_saturation", + "move_to_color", + "move_color", + "step_color", + "move_to_color_temp", + "enhanced_move_to_hue", + "enhanced_move_hue", + "enhanced_step_hue", + "enhanced_move_to_hue_and_saturation", + "color_loop_set", + "stop_move_step", + "move_color_temp", + "step_color_temp" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:4e:54:ef:79-2-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:4e:54:ef:79", + "endpoint_id": 2, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/philips-rom001-0x02002f08.json b/tests/data/devices/philips-rom001-0x02002f08.json index 9f52cce8a..53965ea44 100644 --- a/tests/data/devices/philips-rom001-0x02002f08.json +++ b/tests/data/devices/philips-rom001-0x02002f08.json @@ -250,6 +250,65 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "00:17:88:01:06:54:a7:c3-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:06:54:a7:c3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "00:17:88:01:06:54:a7:c3-1-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:06:54:a7:c3", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/philips-rwl020-0x420045b6.json b/tests/data/devices/philips-rwl020-0x420045b6.json index 6e76163f7..a90912e0b 100644 --- a/tests/data/devices/philips-rwl020-0x420045b6.json +++ b/tests/data/devices/philips-rwl020-0x420045b6.json @@ -289,6 +289,65 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5f:d6:d5:c6-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5f:d6:d5:c6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5f:d6:d5:c6-1-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5f:d6:d5:c6", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/philips-rwl020.json b/tests/data/devices/philips-rwl020.json index 72b793fd6..0992bbb5c 100644 --- a/tests/data/devices/philips-rwl020.json +++ b/tests/data/devices/philips-rwl020.json @@ -288,6 +288,65 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "00:17:88:01:08:07:c3:5b-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:08:07:c3:5b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "00:17:88:01:08:07:c3:5b-1-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:08:07:c3:5b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/philips-rwl021-0x43007305.json b/tests/data/devices/philips-rwl021-0x43007305.json index 16f347492..77fbe7fe3 100644 --- a/tests/data/devices/philips-rwl021-0x43007305.json +++ b/tests/data/devices/philips-rwl021-0x43007305.json @@ -296,6 +296,65 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5e:0b:f1:3f-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5e:0b:f1:3f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:5e:0b:f1:3f-1-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:5e:0b:f1:3f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/philips-sml001-0x42006bb7.json b/tests/data/devices/philips-sml001-0x42006bb7.json index 5620be76b..c2598f031 100644 --- a/tests/data/devices/philips-sml001-0x42006bb7.json +++ b/tests/data/devices/philips-sml001-0x42006bb7.json @@ -336,6 +336,106 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "00:17:88:01:06:f5:ac:71-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:06:f5:ac:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "00:17:88:01:06:f5:ac:71-1-768", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "ColorEvent", + "translation_key": "color", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:06:f5:ac:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "move_to_hue", + "move_hue", + "step_hue", + "move_to_saturation", + "move_saturation", + "step_saturation", + "move_to_hue_and_saturation", + "move_to_color", + "move_color", + "step_color", + "move_to_color_temp", + "enhanced_move_to_hue", + "enhanced_move_hue", + "enhanced_step_hue", + "enhanced_move_to_hue_and_saturation", + "color_loop_set", + "stop_move_step", + "move_color_temp", + "step_color_temp" + ] + }, + { + "fallback_name": null, + "unique_id": "00:17:88:01:06:f5:ac:71-1-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:06:f5:ac:71", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "select": [ { "fallback_name": null, diff --git a/tests/data/devices/philips-sml001-0x43007305.json b/tests/data/devices/philips-sml001-0x43007305.json index bbaff292a..a73e37264 100644 --- a/tests/data/devices/philips-sml001-0x43007305.json +++ b/tests/data/devices/philips-sml001-0x43007305.json @@ -343,6 +343,106 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:7f:df:14-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1f:7f:df:14", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:7f:df:14-1-768", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "ColorEvent", + "translation_key": "color", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1f:7f:df:14", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "move_to_hue", + "move_hue", + "step_hue", + "move_to_saturation", + "move_saturation", + "step_saturation", + "move_to_hue_and_saturation", + "move_to_color", + "move_color", + "step_color", + "move_to_color_temp", + "enhanced_move_to_hue", + "enhanced_move_hue", + "enhanced_step_hue", + "enhanced_move_to_hue_and_saturation", + "color_loop_set", + "stop_move_step", + "move_color_temp", + "step_color_temp" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:7f:df:14-1-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1f:7f:df:14", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "select": [ { "fallback_name": null, diff --git a/tests/data/devices/philips-sml001-0x43007401.json b/tests/data/devices/philips-sml001-0x43007401.json index 422c7fd59..4f748d5f1 100644 --- a/tests/data/devices/philips-sml001-0x43007401.json +++ b/tests/data/devices/philips-sml001-0x43007401.json @@ -343,6 +343,106 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:7f:df:14-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1f:7f:df:14", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:7f:df:14-1-768", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "ColorEvent", + "translation_key": "color", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1f:7f:df:14", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "move_to_hue", + "move_hue", + "step_hue", + "move_to_saturation", + "move_saturation", + "step_saturation", + "move_to_hue_and_saturation", + "move_to_color", + "move_color", + "step_color", + "move_to_color_temp", + "enhanced_move_to_hue", + "enhanced_move_hue", + "enhanced_step_hue", + "enhanced_move_to_hue_and_saturation", + "color_loop_set", + "stop_move_step", + "move_color_temp", + "step_color_temp" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1f:7f:df:14-1-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1f:7f:df:14", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "select": [ { "fallback_name": null, diff --git a/tests/data/devices/ptvo-info-ptvo-switch.json b/tests/data/devices/ptvo-info-ptvo-switch.json index 244f599fa..9fdb0efad 100644 --- a/tests/data/devices/ptvo-info-ptvo-switch.json +++ b/tests/data/devices/ptvo-info-ptvo-switch.json @@ -618,6 +618,176 @@ "attribute_name": "on_off" } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-2-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", + "endpoint_id": 2, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-3-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", + "endpoint_id": 3, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-4-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", + "endpoint_id": 4, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-5-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", + "endpoint_id": 5, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:1a:bc:2b:a0-6-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:1a:bc:2b:a0", + "endpoint_id": 6, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/schneider-electric-lk-dimmer.json b/tests/data/devices/schneider-electric-lk-dimmer.json index cbf8e2d85..31a0a5741 100644 --- a/tests/data/devices/schneider-electric-lk-dimmer.json +++ b/tests/data/devices/schneider-electric-lk-dimmer.json @@ -547,6 +547,236 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:80:01:79-21-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:28:80:01:79", + "endpoint_id": 21, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:80:01:79-21-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:28:80:01:79", + "endpoint_id": 21, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:80:01:79-22-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:28:80:01:79", + "endpoint_id": 22, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:80:01:79-22-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:28:80:01:79", + "endpoint_id": 22, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:80:01:79-23-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:28:80:01:79", + "endpoint_id": 23, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:80:01:79-23-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:28:80:01:79", + "endpoint_id": 23, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:80:01:79-24-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:28:80:01:79", + "endpoint_id": 24, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:28:80:01:79-24-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:28:80:01:79", + "endpoint_id": 24, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "light": [ { "fallback_name": null, diff --git a/tests/data/devices/schneider-electric-nhmotion-unidim-1-0x020b0fff.json b/tests/data/devices/schneider-electric-nhmotion-unidim-1-0x020b0fff.json index d281987f4..1aa3d6f22 100644 --- a/tests/data/devices/schneider-electric-nhmotion-unidim-1-0x020b0fff.json +++ b/tests/data/devices/schneider-electric-nhmotion-unidim-1-0x020b0fff.json @@ -373,6 +373,65 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8f:16:4b:4b-37-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8f:16:4b:4b", + "endpoint_id": 37, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:8f:16:4b:4b-37-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:8f:16:4b:4b", + "endpoint_id": 37, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "light": [ { "fallback_name": null, diff --git a/tests/data/devices/securifi-ltd-unk-model.json b/tests/data/devices/securifi-ltd-unk-model.json index a1e41e4f1..0b4d29114 100644 --- a/tests/data/devices/securifi-ltd-unk-model.json +++ b/tests/data/devices/securifi-ltd-unk-model.json @@ -383,6 +383,36 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "00:0d:6f:00:05:49:ac:68-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:0d:6f:00:05:49:ac:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/sercomm-corp-sz-esw01-au.json b/tests/data/devices/sercomm-corp-sz-esw01-au.json index ba3843a78..af9822152 100644 --- a/tests/data/devices/sercomm-corp-sz-esw01-au.json +++ b/tests/data/devices/sercomm-corp-sz-esw01-au.json @@ -578,6 +578,36 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:42:61:67:6a-2-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:42:61:67:6a", + "endpoint_id": 2, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + } + ], "light": [ { "fallback_name": null, diff --git a/tests/data/devices/signify-netherlands-b-v-rdm001-0x0000041a.json b/tests/data/devices/signify-netherlands-b-v-rdm001-0x0000041a.json index bae8bb00b..2ab1951ab 100644 --- a/tests/data/devices/signify-netherlands-b-v-rdm001-0x0000041a.json +++ b/tests/data/devices/signify-netherlands-b-v-rdm001-0x0000041a.json @@ -214,6 +214,65 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "00:17:88:01:0b:02:b6:79-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0b:02:b6:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "00:17:88:01:0b:02:b6:79-1-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0b:02:b6:79", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/signify-netherlands-b-v-rdm002-0x02003b13.json b/tests/data/devices/signify-netherlands-b-v-rdm002-0x02003b13.json index 8ccc4a3ac..83d9a00f9 100644 --- a/tests/data/devices/signify-netherlands-b-v-rdm002-0x02003b13.json +++ b/tests/data/devices/signify-netherlands-b-v-rdm002-0x02003b13.json @@ -232,6 +232,65 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:05:d9:30:d2-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:05:d9:30:d2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:05:d9:30:d2-1-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:05:d9:30:d2", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/signify-netherlands-b-v-rdm002-0x02003b19.json b/tests/data/devices/signify-netherlands-b-v-rdm002-0x02003b19.json index f366a9684..d8edd513b 100644 --- a/tests/data/devices/signify-netherlands-b-v-rdm002-0x02003b19.json +++ b/tests/data/devices/signify-netherlands-b-v-rdm002-0x02003b19.json @@ -232,6 +232,65 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "00:17:88:01:0d:13:48:33-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0d:13:48:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "00:17:88:01:0d:13:48:33-1-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0d:13:48:33", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/signify-netherlands-b-v-rdm004-0x02004d23.json b/tests/data/devices/signify-netherlands-b-v-rdm004-0x02004d23.json index 72f15d13b..8dbb860a6 100644 --- a/tests/data/devices/signify-netherlands-b-v-rdm004-0x02004d23.json +++ b/tests/data/devices/signify-netherlands-b-v-rdm004-0x02004d23.json @@ -227,6 +227,65 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:84:06:58:23-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:84:06:58:23", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:84:06:58:23-1-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:84:06:58:23", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/signify-netherlands-b-v-rdm004.json b/tests/data/devices/signify-netherlands-b-v-rdm004.json index a9ee1fd08..39628ccb2 100644 --- a/tests/data/devices/signify-netherlands-b-v-rdm004.json +++ b/tests/data/devices/signify-netherlands-b-v-rdm004.json @@ -213,6 +213,65 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:84:06:58:23-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:84:06:58:23", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:84:06:58:23-1-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:84:06:58:23", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/signify-netherlands-b-v-rdm005-0x02005301.json b/tests/data/devices/signify-netherlands-b-v-rdm005-0x02005301.json index 5dfd4cf9f..f5d3244c9 100644 --- a/tests/data/devices/signify-netherlands-b-v-rdm005-0x02005301.json +++ b/tests/data/devices/signify-netherlands-b-v-rdm005-0x02005301.json @@ -239,6 +239,65 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e5:df:74:89-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e5:df:74:89", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e5:df:74:89-1-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e5:df:74:89", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/signify-netherlands-b-v-rwl022-0x02002d02.json b/tests/data/devices/signify-netherlands-b-v-rwl022-0x02002d02.json index cb1a518e4..9e529d060 100644 --- a/tests/data/devices/signify-netherlands-b-v-rwl022-0x02002d02.json +++ b/tests/data/devices/signify-netherlands-b-v-rwl022-0x02002d02.json @@ -232,6 +232,65 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "00:17:88:01:0c:26:42:ec-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0c:26:42:ec", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "00:17:88:01:0c:26:42:ec-1-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0c:26:42:ec", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/signify-netherlands-b-v-rwl022-0x02004d27.json b/tests/data/devices/signify-netherlands-b-v-rwl022-0x02004d27.json index f02cca140..0b2962280 100644 --- a/tests/data/devices/signify-netherlands-b-v-rwl022-0x02004d27.json +++ b/tests/data/devices/signify-netherlands-b-v-rwl022-0x02004d27.json @@ -227,6 +227,65 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e5:92:c2:0e-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e5:92:c2:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e5:92:c2:0e-1-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e5:92:c2:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/signify-netherlands-b-v-rwl022-0x02005501.json b/tests/data/devices/signify-netherlands-b-v-rwl022-0x02005501.json index 96eec60c9..980c09511 100644 --- a/tests/data/devices/signify-netherlands-b-v-rwl022-0x02005501.json +++ b/tests/data/devices/signify-netherlands-b-v-rwl022-0x02005501.json @@ -239,6 +239,65 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e5:92:c2:0e-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e5:92:c2:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e5:92:c2:0e-1-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e5:92:c2:0e", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/signify-netherlands-b-v-sml003-0x02003506.json b/tests/data/devices/signify-netherlands-b-v-sml003-0x02003506.json index c35de566f..1827ee1c0 100644 --- a/tests/data/devices/signify-netherlands-b-v-sml003-0x02003506.json +++ b/tests/data/devices/signify-netherlands-b-v-sml003-0x02003506.json @@ -300,6 +300,36 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d5:c9:be:9b-2-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d5:c9:be:9b", + "endpoint_id": 2, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + } + ], "select": [ { "fallback_name": null, diff --git a/tests/data/devices/signify-netherlands-b-v-sml004-0x02003506.json b/tests/data/devices/signify-netherlands-b-v-sml004-0x02003506.json index be34b1934..b78fcb5ea 100644 --- a/tests/data/devices/signify-netherlands-b-v-sml004-0x02003506.json +++ b/tests/data/devices/signify-netherlands-b-v-sml004-0x02003506.json @@ -300,6 +300,36 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "00:17:88:01:0c:dc:9d:61-2-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "00:17:88:01:0c:dc:9d:61", + "endpoint_id": 2, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + } + ], "select": [ { "fallback_name": null, diff --git a/tests/data/devices/sinope-technologies-va4220zb.json b/tests/data/devices/sinope-technologies-va4220zb.json index e6ba575b8..fe7c04fe9 100644 --- a/tests/data/devices/sinope-technologies-va4220zb.json +++ b/tests/data/devices/sinope-technologies-va4220zb.json @@ -521,6 +521,36 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:eb:f1:4d:07-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:eb:f1:4d:07", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + } + ], "number": [ { "fallback_name": null, diff --git a/tests/data/devices/smarthjemmet-dk-quad-zig-sw2.json b/tests/data/devices/smarthjemmet-dk-quad-zig-sw2.json index cb859acd3..a95a45344 100644 --- a/tests/data/devices/smarthjemmet-dk-quad-zig-sw2.json +++ b/tests/data/devices/smarthjemmet-dk-quad-zig-sw2.json @@ -497,6 +497,148 @@ "attribute_name": "on_off" } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:35:e9:d5:e0-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:35:e9:d5:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:35:e9:d5:e0-2-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:35:e9:d5:e0", + "endpoint_id": 2, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:35:e9:d5:e0-3-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:35:e9:d5:e0", + "endpoint_id": 3, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:35:e9:d5:e0-4-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:35:e9:d5:e0", + "endpoint_id": 4, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:35:e9:d5:e0-5-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:35:e9:d5:e0", + "endpoint_id": 5, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/somfy-situo-4-zigbee-0x00011a00.json b/tests/data/devices/somfy-situo-4-zigbee-0x00011a00.json index 5aab6982d..f33c5359c 100644 --- a/tests/data/devices/somfy-situo-4-zigbee-0x00011a00.json +++ b/tests/data/devices/somfy-situo-4-zigbee-0x00011a00.json @@ -546,6 +546,120 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:3b:98:5a-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:85:3b:98:5a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:3b:98:5a-2-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:85:3b:98:5a", + "endpoint_id": 2, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:3b:98:5a-3-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:85:3b:98:5a", + "endpoint_id": 3, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:85:3b:98:5a-4-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:85:3b:98:5a", + "endpoint_id": 4, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/somfy-ysia-5-hp-zigbee-0x00e00041.json b/tests/data/devices/somfy-ysia-5-hp-zigbee-0x00e00041.json index 62078cbdd..d1dc53fab 100644 --- a/tests/data/devices/somfy-ysia-5-hp-zigbee-0x00e00041.json +++ b/tests/data/devices/somfy-ysia-5-hp-zigbee-0x00e00041.json @@ -795,6 +795,148 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:05:26:2e:c9-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:05:26:2e:c9", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:05:26:2e:c9-2-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:05:26:2e:c9", + "endpoint_id": 2, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:05:26:2e:c9-3-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:05:26:2e:c9", + "endpoint_id": 3, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:05:26:2e:c9-4-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:05:26:2e:c9", + "endpoint_id": 4, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:05:26:2e:c9-5-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:05:26:2e:c9", + "endpoint_id": 5, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/somfy-ysia-variation-5c-0xffffffff.json b/tests/data/devices/somfy-ysia-variation-5c-0xffffffff.json index 1d34a63b5..c2fac78ae 100644 --- a/tests/data/devices/somfy-ysia-variation-5c-0xffffffff.json +++ b/tests/data/devices/somfy-ysia-variation-5c-0xffffffff.json @@ -594,6 +594,293 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ec:84:26:cd-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ec:84:26:cd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ec:84:26:cd-1-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ec:84:26:cd", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ec:84:26:cd-2-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ec:84:26:cd", + "endpoint_id": 2, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ec:84:26:cd-2-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ec:84:26:cd", + "endpoint_id": 2, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ec:84:26:cd-3-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ec:84:26:cd", + "endpoint_id": 3, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ec:84:26:cd-3-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ec:84:26:cd", + "endpoint_id": 3, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ec:84:26:cd-4-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ec:84:26:cd", + "endpoint_id": 4, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ec:84:26:cd-4-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ec:84:26:cd", + "endpoint_id": 4, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ec:84:26:cd-5-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ec:84:26:cd", + "endpoint_id": 5, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:ec:84:26:cd-5-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:ec:84:26:cd", + "endpoint_id": 5, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/sonoff-mini-zb1gsp-0x00001102.json b/tests/data/devices/sonoff-mini-zb1gsp-0x00001102.json index 20eb63031..ce1d034af 100644 --- a/tests/data/devices/sonoff-mini-zb1gsp-0x00001102.json +++ b/tests/data/devices/sonoff-mini-zb1gsp-0x00001102.json @@ -629,6 +629,36 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:43:a7:31:91-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:43:a7:31:91", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + } + ], "select": [ { "fallback_name": null, diff --git a/tests/data/devices/sonoff-snzb-01m-0x00001005.json b/tests/data/devices/sonoff-snzb-01m-0x00001005.json index 5fcc46990..beedc2065 100644 --- a/tests/data/devices/sonoff-snzb-01m-0x00001005.json +++ b/tests/data/devices/sonoff-snzb-01m-0x00001005.json @@ -327,6 +327,152 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:25:6d:54:c8-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:25:6d:54:c8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:25:6d:54:c8-1-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:25:6d:54:c8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:25:6d:54:c8-2-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:25:6d:54:c8", + "endpoint_id": 2, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:25:6d:54:c8-3-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:25:6d:54:c8", + "endpoint_id": 3, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:25:6d:54:c8-4-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:25:6d:54:c8", + "endpoint_id": 4, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/sonoff-zbminir2-0x00001004.json b/tests/data/devices/sonoff-zbminir2-0x00001004.json index 64e4b76b6..d4da50ad7 100644 --- a/tests/data/devices/sonoff-zbminir2-0x00001004.json +++ b/tests/data/devices/sonoff-zbminir2-0x00001004.json @@ -335,6 +335,36 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:f5:dc:76:8d-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:f5:dc:76:8d", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + } + ], "select": [ { "fallback_name": null, diff --git a/tests/data/devices/sunricher-hk-dim-0x00000036.json b/tests/data/devices/sunricher-hk-dim-0x00000036.json index 9a24b3b03..52cfaf0ae 100644 --- a/tests/data/devices/sunricher-hk-dim-0x00000036.json +++ b/tests/data/devices/sunricher-hk-dim-0x00000036.json @@ -733,6 +733,65 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:c3:5a:e0-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:55:c3:5a:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:c3:5a:e0-1-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:55:c3:5a:e0", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "light": [ { "fallback_name": null, diff --git a/tests/data/devices/third-reality-inc-3rsb015bz-0x00000048.json b/tests/data/devices/third-reality-inc-3rsb015bz-0x00000048.json index 42b9e083b..f422fae20 100644 --- a/tests/data/devices/third-reality-inc-3rsb015bz-0x00000048.json +++ b/tests/data/devices/third-reality-inc-3rsb015bz-0x00000048.json @@ -386,6 +386,36 @@ "supported_features": 15 } ], + "event": [ + { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:ea:05:68-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:ea:05:68", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/third-reality-inc-3rsb22bz.json b/tests/data/devices/third-reality-inc-3rsb22bz.json index 1f141b09d..9fa2e0020 100644 --- a/tests/data/devices/third-reality-inc-3rsb22bz.json +++ b/tests/data/devices/third-reality-inc-3rsb22bz.json @@ -156,6 +156,65 @@ } }, "zha_lib_entities": { + "event": [ + { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:e3:74:f8-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:e3:74:f8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:e3:74:f8-1-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:e3:74:f8", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/third-reality-inc-3rsp02064z-0x0000002f.json b/tests/data/devices/third-reality-inc-3rsp02064z-0x0000002f.json index aa8763f79..f0592d7b2 100644 --- a/tests/data/devices/third-reality-inc-3rsp02064z-0x0000002f.json +++ b/tests/data/devices/third-reality-inc-3rsp02064z-0x0000002f.json @@ -622,6 +622,36 @@ "attribute_value": 1 } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:bb:32:67:ac-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "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, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + } + ], "number": [ { "fallback_name": "Countdown to turn on", diff --git a/tests/data/devices/third-reality-inc-3rss009z-0x0000001d.json b/tests/data/devices/third-reality-inc-3rss009z-0x0000001d.json index 9b8e1e81e..72ba94800 100644 --- a/tests/data/devices/third-reality-inc-3rss009z-0x0000001d.json +++ b/tests/data/devices/third-reality-inc-3rss009z-0x0000001d.json @@ -182,6 +182,36 @@ } }, "zha_lib_entities": { + "event": [ + { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:e9:77:95-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:e9:77:95", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + } + ], "number": [ { "fallback_name": "Turn on delay", diff --git a/tests/data/devices/third-reality-inc-3rws18bz-0x00000038.json b/tests/data/devices/third-reality-inc-3rws18bz-0x00000038.json index 46404eba6..d6d537d3c 100644 --- a/tests/data/devices/third-reality-inc-3rws18bz-0x00000038.json +++ b/tests/data/devices/third-reality-inc-3rws18bz-0x00000038.json @@ -274,6 +274,36 @@ "attribute_name": "on_off" } ], + "event": [ + { + "fallback_name": null, + "unique_id": "28:2c:02:bf:ff:e7:c9:49-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "28:2c:02:bf:ff:e7:c9:49", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + } + ], "number": [ { "fallback_name": "Siren time", diff --git a/tests/data/devices/third-reality-inc-3rws18bz-0x00000049.json b/tests/data/devices/third-reality-inc-3rws18bz-0x00000049.json index 98fadfb9a..1182cb78e 100644 --- a/tests/data/devices/third-reality-inc-3rws18bz-0x00000049.json +++ b/tests/data/devices/third-reality-inc-3rws18bz-0x00000049.json @@ -287,6 +287,36 @@ "attribute_name": "on_off" } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6a:84:87:99-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6a:84:87:99", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + } + ], "number": [ { "fallback_name": "Siren time", diff --git a/tests/data/devices/trust-international-b-v-zll-colortempera.json b/tests/data/devices/trust-international-b-v-zll-colortempera.json index e3c052d6b..8536d5350 100644 --- a/tests/data/devices/trust-international-b-v-zll-colortempera.json +++ b/tests/data/devices/trust-international-b-v-zll-colortempera.json @@ -422,6 +422,106 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:12:27:74:4f-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:12:27:74:4f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:12:27:74:4f-1-768", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "ColorEvent", + "translation_key": "color", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:12:27:74:4f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "move_to_hue", + "move_hue", + "step_hue", + "move_to_saturation", + "move_saturation", + "step_saturation", + "move_to_hue_and_saturation", + "move_to_color", + "move_color", + "step_color", + "move_to_color_temp", + "enhanced_move_to_hue", + "enhanced_move_hue", + "enhanced_step_hue", + "enhanced_move_to_hue_and_saturation", + "color_loop_set", + "stop_move_step", + "move_color_temp", + "step_color_temp" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:12:27:74:4f-1-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:12:27:74:4f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "light": [ { "fallback_name": null, diff --git a/tests/data/devices/tz3000-8yhypbo7-ts0203.json b/tests/data/devices/tz3000-8yhypbo7-ts0203.json index 6f1074951..7d1689ece 100644 --- a/tests/data/devices/tz3000-8yhypbo7-ts0203.json +++ b/tests/data/devices/tz3000-8yhypbo7-ts0203.json @@ -293,6 +293,65 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "a4:c1:38:01:fb:fa:59:2b-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:01:fb:fa:59:2b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "a4:c1:38:01:fb:fa:59:2b-1-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "a4:c1:38:01:fb:fa:59:2b", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/tz3000-gwkzibhs-ts004f.json b/tests/data/devices/tz3000-gwkzibhs-ts004f.json index 8cf54717e..abccddabe 100644 --- a/tests/data/devices/tz3000-gwkzibhs-ts004f.json +++ b/tests/data/devices/tz3000-gwkzibhs-ts004f.json @@ -263,6 +263,78 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e5:79:a6:00-1-768", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "ColorEvent", + "translation_key": "color", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e5:79:a6:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "move_to_hue", + "move_hue", + "step_hue", + "move_to_saturation", + "move_saturation", + "step_saturation", + "move_to_hue_and_saturation", + "move_to_color", + "move_color", + "step_color", + "move_to_color_temp", + "enhanced_move_to_hue", + "enhanced_move_hue", + "enhanced_step_hue", + "enhanced_move_to_hue_and_saturation", + "color_loop_set", + "stop_move_step", + "move_color_temp", + "step_color_temp" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e5:79:a6:00-1-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e5:79:a6:00", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/tz3000-ja5osu5g-ts004f-0x00000041.json b/tests/data/devices/tz3000-ja5osu5g-ts004f-0x00000041.json index 2b1ee5590..e5525b4a5 100644 --- a/tests/data/devices/tz3000-ja5osu5g-ts004f-0x00000041.json +++ b/tests/data/devices/tz3000-ja5osu5g-ts004f-0x00000041.json @@ -263,6 +263,78 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a9:50:bd:12-1-768", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "ColorEvent", + "translation_key": "color", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a9:50:bd:12", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "move_to_hue", + "move_hue", + "step_hue", + "move_to_saturation", + "move_saturation", + "step_saturation", + "move_to_hue_and_saturation", + "move_to_color", + "move_color", + "step_color", + "move_to_color_temp", + "enhanced_move_to_hue", + "enhanced_move_hue", + "enhanced_step_hue", + "enhanced_move_to_hue_and_saturation", + "color_loop_set", + "stop_move_step", + "move_color_temp", + "step_color_temp" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:a9:50:bd:12-1-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:a9:50:bd:12", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/tz3000-kjfzuycl-ts004f.json b/tests/data/devices/tz3000-kjfzuycl-ts004f.json index 54f2f9f37..f143b663b 100644 --- a/tests/data/devices/tz3000-kjfzuycl-ts004f.json +++ b/tests/data/devices/tz3000-kjfzuycl-ts004f.json @@ -232,6 +232,78 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "38:5b:44:ff:fe:36:af:0f-1-768", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "ColorEvent", + "translation_key": "color", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "38:5b:44:ff:fe:36:af:0f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "move_to_hue", + "move_hue", + "step_hue", + "move_to_saturation", + "move_saturation", + "step_saturation", + "move_to_hue_and_saturation", + "move_to_color", + "move_color", + "step_color", + "move_to_color_temp", + "enhanced_move_to_hue", + "enhanced_move_hue", + "enhanced_step_hue", + "enhanced_move_to_hue_and_saturation", + "color_loop_set", + "stop_move_step", + "move_color_temp", + "step_color_temp" + ] + }, + { + "fallback_name": null, + "unique_id": "38:5b:44:ff:fe:36:af:0f-1-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "38:5b:44:ff:fe:36:af:0f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/tz3000-lf56vpxj-ts0202.json b/tests/data/devices/tz3000-lf56vpxj-ts0202.json index 3c8987842..9e9c1fe3a 100644 --- a/tests/data/devices/tz3000-lf56vpxj-ts0202.json +++ b/tests/data/devices/tz3000-lf56vpxj-ts0202.json @@ -232,6 +232,36 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:95:6b:8f:d1-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:95:6b:8f:d1", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/tz3000-mg4dy6z6-ts0202.json b/tests/data/devices/tz3000-mg4dy6z6-ts0202.json index fffc2e39e..d9d92dfdc 100644 --- a/tests/data/devices/tz3000-mg4dy6z6-ts0202.json +++ b/tests/data/devices/tz3000-mg4dy6z6-ts0202.json @@ -282,6 +282,36 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:cd:66:75:56-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:cd:66:75:56", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/tz3000-o4mkahkc-ts0202-0x00000046.json b/tests/data/devices/tz3000-o4mkahkc-ts0202-0x00000046.json index 7e9792057..3359f8dd3 100644 --- a/tests/data/devices/tz3000-o4mkahkc-ts0202-0x00000046.json +++ b/tests/data/devices/tz3000-o4mkahkc-ts0202-0x00000046.json @@ -282,6 +282,36 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:33:39:10:3f-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:33:39:10:3f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/tz3000-qdnrzbd3-ts0202-0x00000046.json b/tests/data/devices/tz3000-qdnrzbd3-ts0202-0x00000046.json index 57a656ec7..63f6e7894 100644 --- a/tests/data/devices/tz3000-qdnrzbd3-ts0202-0x00000046.json +++ b/tests/data/devices/tz3000-qdnrzbd3-ts0202-0x00000046.json @@ -282,6 +282,36 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e7:3d:9e:ec-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e7:3d:9e:ec", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/tz3000-xa9g7rxs-ts1002.json b/tests/data/devices/tz3000-xa9g7rxs-ts1002.json index f5fefa451..fb2e67bbc 100644 --- a/tests/data/devices/tz3000-xa9g7rxs-ts1002.json +++ b/tests/data/devices/tz3000-xa9g7rxs-ts1002.json @@ -238,6 +238,106 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:66:b9:e7:ff-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:66:b9:e7:ff", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:66:b9:e7:ff-1-768", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "ColorEvent", + "translation_key": "color", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:66:b9:e7:ff", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "move_to_hue", + "move_hue", + "step_hue", + "move_to_saturation", + "move_saturation", + "step_saturation", + "move_to_hue_and_saturation", + "move_to_color", + "move_color", + "step_color", + "move_to_color_temp", + "enhanced_move_to_hue", + "enhanced_move_hue", + "enhanced_step_hue", + "enhanced_move_to_hue_and_saturation", + "color_loop_set", + "stop_move_step", + "move_color_temp", + "step_color_temp" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:66:b9:e7:ff-1-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:66:b9:e7:ff", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/tz3000-xabckq1v-ts004f.json b/tests/data/devices/tz3000-xabckq1v-ts004f.json index 37e1afb2d..8819f5bb9 100644 --- a/tests/data/devices/tz3000-xabckq1v-ts004f.json +++ b/tests/data/devices/tz3000-xabckq1v-ts004f.json @@ -325,6 +325,106 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:df:1d:21:23-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:df:1d:21:23", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:df:1d:21:23-1-768", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "ColorEvent", + "translation_key": "color", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:df:1d:21:23", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "move_to_hue", + "move_hue", + "step_hue", + "move_to_saturation", + "move_saturation", + "step_saturation", + "move_to_hue_and_saturation", + "move_to_color", + "move_color", + "step_color", + "move_to_color_temp", + "enhanced_move_to_hue", + "enhanced_move_hue", + "enhanced_step_hue", + "enhanced_move_to_hue_and_saturation", + "color_loop_set", + "stop_move_step", + "move_color_temp", + "step_color_temp" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:df:1d:21:23-1-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:df:1d:21:23", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/tz3040-bb6xaihh-ts0202-0x00000048.json b/tests/data/devices/tz3040-bb6xaihh-ts0202-0x00000048.json index b04124238..5251d270e 100644 --- a/tests/data/devices/tz3040-bb6xaihh-ts0202-0x00000048.json +++ b/tests/data/devices/tz3040-bb6xaihh-ts0202-0x00000048.json @@ -307,6 +307,36 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:d3:a3:07:1f-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:d3:a3:07:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/tz3210-kjafhwd2-ts0210-0x00000044.json b/tests/data/devices/tz3210-kjafhwd2-ts0210-0x00000044.json index 9bdca68da..112ed61c5 100644 --- a/tests/data/devices/tz3210-kjafhwd2-ts0210-0x00000044.json +++ b/tests/data/devices/tz3210-kjafhwd2-ts0210-0x00000044.json @@ -286,6 +286,36 @@ "attribute_name": "on_off" } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:3b:15:29:1f-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:3b:15:29:1f", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/tz3210-up3pngle-ts0205.json b/tests/data/devices/tz3210-up3pngle-ts0205.json index 6f5177b0e..945e2d33f 100644 --- a/tests/data/devices/tz3210-up3pngle-ts0205.json +++ b/tests/data/devices/tz3210-up3pngle-ts0205.json @@ -254,6 +254,36 @@ "attribute_name": "on_off" } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:6a:a7:51:ae-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:6a:a7:51:ae", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/ubisys-s1-5501-0x02600460.json b/tests/data/devices/ubisys-s1-5501-0x02600460.json index e68d4a598..6696246c3 100644 --- a/tests/data/devices/ubisys-s1-5501-0x02600460.json +++ b/tests/data/devices/ubisys-s1-5501-0x02600460.json @@ -728,6 +728,106 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-2-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", + "endpoint_id": 2, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-2-768", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "ColorEvent", + "translation_key": "color", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", + "endpoint_id": 2, + "available": true, + "group_id": null, + "event_types": [ + "move_to_hue", + "move_hue", + "step_hue", + "move_to_saturation", + "move_saturation", + "step_saturation", + "move_to_hue_and_saturation", + "move_to_color", + "move_color", + "step_color", + "move_to_color_temp", + "enhanced_move_to_hue", + "enhanced_move_hue", + "enhanced_step_hue", + "enhanced_move_to_hue_and_saturation", + "color_loop_set", + "stop_move_step", + "move_color_temp", + "step_color_temp" + ] + }, + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:e4:d6:5c:c2-2-8", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "LevelControlEvent", + "translation_key": "level_control", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:e4:d6:5c:c2", + "endpoint_id": 2, + "available": true, + "group_id": null, + "event_types": [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off" + ] + } + ], "select": [ { "fallback_name": null, diff --git a/tests/data/devices/xyzroe-diy-zintercom.json b/tests/data/devices/xyzroe-diy-zintercom.json index 092992a47..9d8f8907e 100644 --- a/tests/data/devices/xyzroe-diy-zintercom.json +++ b/tests/data/devices/xyzroe-diy-zintercom.json @@ -144,6 +144,36 @@ "attribute_name": "on_off" } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:0a:c9:43:1a-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:0a:c9:43:1a", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/data/devices/zemismart-spm02-3z3-0x0000000e.json b/tests/data/devices/zemismart-spm02-3z3-0x0000000e.json index a10e0c04e..4f92f97e9 100644 --- a/tests/data/devices/zemismart-spm02-3z3-0x0000000e.json +++ b/tests/data/devices/zemismart-spm02-3z3-0x0000000e.json @@ -636,6 +636,36 @@ "kwargs": {} } ], + "event": [ + { + "fallback_name": null, + "unique_id": "ab:cd:ef:12:55:ac:22:4c-1-6", + "migrate_unique_ids": [], + "platform": "event", + "class_name": "OnOffEvent", + "translation_key": "on_off", + "translation_placeholders": null, + "device_class": null, + "state_class": null, + "entity_category": null, + "entity_registry_enabled_default": true, + "enabled": true, + "primary": false, + "extra_state_attribute_names": [], + "device_ieee": "ab:cd:ef:12:55:ac:22:4c", + "endpoint_id": 1, + "available": true, + "group_id": null, + "event_types": [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off" + ] + } + ], "sensor": [ { "fallback_name": null, diff --git a/tests/test_platform_event.py b/tests/test_platform_event.py index 388f6a956..7b16a9cec 100644 --- a/tests/test_platform_event.py +++ b/tests/test_platform_event.py @@ -4,7 +4,7 @@ import pytest from zigpy.profiles import zha -from zigpy.zcl.clusters import general +from zigpy.zcl.clusters import general, lighting from tests.common import ( SIG_EP_INPUT, @@ -12,15 +12,20 @@ SIG_EP_PROFILE, SIG_EP_TYPE, create_mock_zigpy_device, + get_entity, join_zigpy_device, + make_zcl_header, ) from zha.application import Platform from zha.application.gateway import Gateway from zha.application.platforms import EntityStateChangedEvent from zha.application.platforms.event import ( BaseEvent, + ColorEvent, EntityEventTriggeredEvent, EventState, + LevelControlEvent, + OnOffEvent, TriggeredEvent, ) from zha.application.platforms.event.const import ( @@ -162,3 +167,174 @@ async def test_trigger_unsupported_event(entity: FakeEvent) -> None: entity.trigger(ButtonEventType.LONG_PRESS_END) assert events == [] + + +async def test_level_control_event(zha_gateway: Gateway) -> None: + """Test the LevelControl client cluster event entity.""" + zigpy_device = create_mock_zigpy_device( + zha_gateway, + { + 1: { + SIG_EP_INPUT: [], + SIG_EP_OUTPUT: [general.LevelControl.cluster_id], + SIG_EP_TYPE: zha.DeviceType.LEVEL_CONTROL_SWITCH, + SIG_EP_PROFILE: zha.PROFILE_ID, + } + }, + ) + zha_device = await join_zigpy_device(zha_gateway, zigpy_device) + cluster = zigpy_device.endpoints[1].out_clusters[general.LevelControl.cluster_id] + + entity = get_entity( + zha_device, platform=Platform.EVENT, exact_entity_type=LevelControlEvent + ) + assert isinstance(entity, BaseEvent) + assert entity.event_types == [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off", + ] + + events: list[EntityEventTriggeredEvent] = [] + entity.on_event(EntityEventTriggeredEvent.event, events.append) + + cmd = cluster.ServerCommandDefs.move_to_level_with_on_off + hdr = make_zcl_header(cmd.id, global_command=False, tsn=1) + msg = cmd.schema(level=100, transition_time=5) + cluster.handle_message(hdr, msg) + + assert events == [ + EntityEventTriggeredEvent( + platform=Platform.EVENT, + unique_id=entity.unique_id, + device_ieee=entity.device.ieee, + endpoint_id=1, + triggered=TriggeredEvent( + event_type="move_to_level_with_on_off", + event_attributes={"level": 100, "transition_time": 5}, + ), + ) + ] + + +async def test_on_off_event(zha_gateway: Gateway) -> None: + """Test the OnOff client cluster event entity.""" + zigpy_device = create_mock_zigpy_device( + zha_gateway, + { + 1: { + SIG_EP_INPUT: [], + SIG_EP_OUTPUT: [general.OnOff.cluster_id], + SIG_EP_TYPE: zha.DeviceType.ON_OFF_SWITCH, + SIG_EP_PROFILE: zha.PROFILE_ID, + } + }, + ) + zha_device = await join_zigpy_device(zha_gateway, zigpy_device) + cluster = zigpy_device.endpoints[1].out_clusters[general.OnOff.cluster_id] + + entity = get_entity( + zha_device, platform=Platform.EVENT, exact_entity_type=OnOffEvent + ) + assert isinstance(entity, BaseEvent) + assert entity.event_types == [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off", + ] + + events: list[EntityEventTriggeredEvent] = [] + entity.on_event(EntityEventTriggeredEvent.event, events.append) + + cmd = cluster.ServerCommandDefs.toggle + hdr = make_zcl_header(cmd.id, global_command=False, tsn=1) + msg = cmd.schema() + cluster.handle_message(hdr, msg) + + assert events == [ + EntityEventTriggeredEvent( + platform=Platform.EVENT, + unique_id=entity.unique_id, + device_ieee=entity.device.ieee, + endpoint_id=1, + triggered=TriggeredEvent( + event_type="toggle", + event_attributes={}, + ), + ) + ] + + +async def test_color_event(zha_gateway: Gateway) -> None: + """Test the Color client cluster event entity.""" + zigpy_device = create_mock_zigpy_device( + zha_gateway, + { + 1: { + SIG_EP_INPUT: [], + SIG_EP_OUTPUT: [lighting.Color.cluster_id], + SIG_EP_TYPE: zha.DeviceType.LEVEL_CONTROL_SWITCH, + SIG_EP_PROFILE: zha.PROFILE_ID, + } + }, + ) + zha_device = await join_zigpy_device(zha_gateway, zigpy_device) + cluster = zigpy_device.endpoints[1].out_clusters[lighting.Color.cluster_id] + + entity = get_entity( + zha_device, platform=Platform.EVENT, exact_entity_type=ColorEvent + ) + assert isinstance(entity, BaseEvent) + assert entity.event_types == [ + "move_to_hue", + "move_hue", + "step_hue", + "move_to_saturation", + "move_saturation", + "step_saturation", + "move_to_hue_and_saturation", + "move_to_color", + "move_color", + "step_color", + "move_to_color_temp", + "enhanced_move_to_hue", + "enhanced_move_hue", + "enhanced_step_hue", + "enhanced_move_to_hue_and_saturation", + "color_loop_set", + "stop_move_step", + "move_color_temp", + "step_color_temp", + ] + + events: list[EntityEventTriggeredEvent] = [] + entity.on_event(EntityEventTriggeredEvent.event, events.append) + + cmd = cluster.ServerCommandDefs.step_color_temp + hdr = make_zcl_header(cmd.id, global_command=False, tsn=1) + msg = cmd.schema(step_mode=1, step_size=10, transition_time=5) + cluster.handle_message(hdr, msg) + + assert events == [ + EntityEventTriggeredEvent( + platform=Platform.EVENT, + unique_id=entity.unique_id, + device_ieee=entity.device.ieee, + endpoint_id=1, + triggered=TriggeredEvent( + event_type="step_color_temp", + event_attributes={ + "step_mode": 1, + "step_size": 10, + "transition_time": 5, + }, + ), + ) + ] diff --git a/zha/application/platforms/event/__init__.py b/zha/application/platforms/event/__init__.py index ffab05b4c..874e9a291 100644 --- a/zha/application/platforms/event/__init__.py +++ b/zha/application/platforms/event/__init__.py @@ -6,9 +6,17 @@ from typing import TYPE_CHECKING, Any, Final from zigpy.types.named import EUI64 +from zigpy.zcl.clusters.general import LevelControl, OnOff +from zigpy.zcl.clusters.lighting import Color +from zigpy.zcl.foundation import CommandSchema from zha.application import Platform -from zha.application.platforms import BaseEntityState, PlatformEntity +from zha.application.platforms import ( + BaseEntityState, + ClusterMatch, + PlatformEntity, + register_entity, +) from zha.application.platforms.event.const import DoorbellEventType, EventDeviceClass if TYPE_CHECKING: @@ -94,3 +102,93 @@ def _trigger_event( ), ), ) + + +class ClusterCommandEvent(BaseEvent): + """Event entity driven by commands received on its bound client cluster.""" + + def on_add(self) -> None: + """Listen for commands on the bound client cluster.""" + super().on_add() + self._cluster.add_listener(self) + self._on_remove_callbacks.append(lambda: self._cluster.remove_listener(self)) + + def cluster_command(self, tsn: int, command_id: int, args: Any) -> None: + """Trigger an event for an incoming client cluster command.""" + if (command := self._cluster.server_commands.get(command_id)) is None: + return + + event_attributes = ( + args.as_dict(skip_missing=True, recursive=True) + if isinstance(args, CommandSchema) + else {} + ) + self._trigger_event(command.name, event_attributes) + + +@register_entity(LevelControl.cluster_id) +class LevelControlEvent(ClusterCommandEvent): + """Representation of a ZHA entity with level control events.""" + + _attr_translation_key = "level_control" + _attr_event_types = [ + "step", + "step_with_on_off", + "stop", + "move", + "move_with_on_off", + "move_to_level", + "move_to_level_with_on_off", + ] + _cluster_match = ClusterMatch( + client_clusters=frozenset({LevelControl.cluster_id}), + ) + + +@register_entity(OnOff.cluster_id) +class OnOffEvent(ClusterCommandEvent): + """Representation of a ZHA entity with on/off events.""" + + _attr_translation_key = "on_off" + _attr_event_types = [ + "off", + "on", + "toggle", + "off_with_effect", + "on_with_recall_global_scene", + "on_with_timed_off", + ] + _cluster_match = ClusterMatch( + client_clusters=frozenset({OnOff.cluster_id}), + ) + + +@register_entity(Color.cluster_id) +class ColorEvent(ClusterCommandEvent): + """Representation of a ZHA entity with color cluster events.""" + + _attr_translation_key = "color" + _attr_event_types = [ + "move_to_hue", + "move_hue", + "step_hue", + "move_to_saturation", + "move_saturation", + "step_saturation", + "move_to_hue_and_saturation", + "move_to_color", + "move_color", + "step_color", + "move_to_color_temp", + "enhanced_move_to_hue", + "enhanced_move_hue", + "enhanced_step_hue", + "enhanced_move_to_hue_and_saturation", + "color_loop_set", + "stop_move_step", + "move_color_temp", + "step_color_temp", + ] + _cluster_match = ClusterMatch( + client_clusters=frozenset({Color.cluster_id}), + )