Matter Extractor hood fixture (#146174)

* Create extractor_hood.json

* Matter Extractor hood fixture

* Format document
This commit is contained in:
Ludovic BOUÉ 2025-06-04 21:17:51 +02:00 committed by GitHub
parent 76d4257f51
commit bdeb61fafc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 579 additions and 0 deletions

View File

@ -88,6 +88,7 @@ async def integration_fixture(
"eve_thermo",
"eve_weather_sensor",
"extended_color_light",
"extractor_hood",
"fan",
"flow_sensor",
"generic_switch",

View File

@ -0,0 +1,317 @@
{
"node_id": 73,
"date_commissioned": "2025-06-04T13:10:59.405650",
"last_interview": "2025-06-04T13:10:59.405664",
"interview_version": 6,
"available": true,
"is_bridge": false,
"attributes": {
"0/52/3": 516944,
"0/52/65533": 1,
"0/52/65532": 1,
"0/52/65531": [3, 65533, 65532, 65531, 65529, 65528],
"0/52/65529": [0],
"0/52/65528": [],
"0/29/0": [
{
"0": 22,
"1": 3
}
],
"0/29/1": [52, 29, 31, 40, 43, 48, 49, 50, 51, 60, 62, 63, 70],
"0/29/2": [41],
"0/29/3": [1],
"0/29/65532": 0,
"0/29/65533": 3,
"0/29/65528": [],
"0/29/65529": [],
"0/29/65531": [0, 1, 2, 3, 65532, 65533, 65528, 65529, 65531],
"0/31/0": [
{
"1": 5,
"2": 2,
"3": [112233],
"4": null,
"254": 1
}
],
"0/31/2": 4,
"0/31/3": 3,
"0/31/4": 4,
"0/31/65532": 0,
"0/31/65533": 2,
"0/31/65528": [],
"0/31/65529": [],
"0/31/65531": [0, 2, 3, 4, 65532, 65533, 65528, 65529, 65531],
"0/40/0": 19,
"0/40/1": "TEST_VENDOR",
"0/40/2": 65521,
"0/40/3": "Mock Extractor hood",
"0/40/4": 32768,
"0/40/5": "",
"0/40/6": "**REDACTED**",
"0/40/7": 0,
"0/40/8": "TEST_VERSION",
"0/40/9": 1,
"0/40/10": "1.0",
"0/40/11": "20200101",
"0/40/12": "",
"0/40/13": "",
"0/40/14": "",
"0/40/15": "TEST_SN",
"0/40/16": false,
"0/40/18": "B971A07C75B93C6C",
"0/40/19": {
"0": 3,
"1": 65535
},
"0/40/21": 17039872,
"0/40/22": 1,
"0/40/24": 1,
"0/40/65532": 0,
"0/40/65533": 5,
"0/40/65528": [],
"0/40/65529": [],
"0/40/65531": [
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 18, 19, 21, 22,
24, 65532, 65533, 65528, 65529, 65531
],
"0/43/0": "en-US",
"0/43/1": ["en-US"],
"0/43/65532": 0,
"0/43/65533": 1,
"0/43/65528": [],
"0/43/65529": [],
"0/43/65531": [0, 1, 65532, 65533, 65528, 65529, 65531],
"0/48/0": 0,
"0/48/1": {
"0": 60,
"1": 900
},
"0/48/2": 0,
"0/48/3": 2,
"0/48/4": true,
"0/48/65532": 0,
"0/48/65533": 2,
"0/48/65528": [1, 3, 5],
"0/48/65529": [0, 2, 4],
"0/48/65531": [0, 1, 2, 3, 4, 65532, 65533, 65528, 65529, 65531],
"0/49/0": 1,
"0/49/1": [
{
"0": "ZW5zMzM=",
"1": true
}
],
"0/49/4": true,
"0/49/5": null,
"0/49/6": null,
"0/49/7": null,
"0/49/65532": 4,
"0/49/65533": 2,
"0/49/65528": [],
"0/49/65529": [],
"0/49/65531": [0, 1, 4, 5, 6, 7, 65532, 65533, 65528, 65529, 65531],
"0/50/65532": 0,
"0/50/65533": 1,
"0/50/65528": [1],
"0/50/65529": [0],
"0/50/65531": [65532, 65533, 65528, 65529, 65531],
"0/51/0": [
{
"0": "docker0",
"1": false,
"2": null,
"3": null,
"4": "AkILUkY6",
"5": ["rBEAAQ=="],
"6": [""],
"7": 0
},
{
"0": "ens33",
"1": true,
"2": null,
"3": null,
"4": "AAwp/F0T",
"5": ["wKgBqA=="],
"6": [
"KgEOCgKzOZDFgY47cQOPog==",
"KgEOCgKzOZC/O1Ew1WvS4A==",
"/oAAAAAAAADml3Ozl7GZug=="
],
"7": 2
},
{
"0": "lo",
"1": true,
"2": null,
"3": null,
"4": "AAAAAAAA",
"5": ["fwAAAQ=="],
"6": ["AAAAAAAAAAAAAAAAAAAAAQ=="],
"7": 0
}
],
"0/51/1": 1,
"0/51/2": 32,
"0/51/3": 0,
"0/51/4": 0,
"0/51/5": [],
"0/51/6": [],
"0/51/7": [],
"0/51/8": false,
"0/51/65532": 0,
"0/51/65533": 2,
"0/51/65528": [2],
"0/51/65529": [0, 1],
"0/51/65531": [
0, 1, 2, 3, 4, 5, 6, 7, 8, 65532, 65533, 65528, 65529, 65531
],
"0/60/0": 0,
"0/60/1": null,
"0/60/2": null,
"0/60/65532": 0,
"0/60/65533": 1,
"0/60/65528": [],
"0/60/65529": [0, 2],
"0/60/65531": [0, 1, 2, 65532, 65533, 65528, 65529, 65531],
"0/62/0": [
{
"1": "FTABAQEkAgE3AyQTAhgmBIAigScmBYAlTTo3BiQVAiQRSRgkBwEkCAEwCUEEruPfwgOQeRJC1NzCJ7GhnXJTulBRPZhp/jwOSmYFl8WLVZ2EQaN8/Up4kliya6kcBNyhGp3yu5gDysyCIjTQ2TcKNQEoARgkAgE2AwQCBAEYMAQUQ9eQeOztYzfB+UnnpmLeFALYUawwBRRT9HTfU5Nds+HA8j+/MRP+0pVyIxgwC0A7oPfTY8OgHc5CYYhr/CCXEJVd2Tn2B1ZW7CcxjknyVesMLj6BxGTNKHblZ/ZKNJYEeoD7iu+Xs4SX/1gv7BMiGA==",
"2": "FTABAQEkAgE3AyQUARgmBIAigScmBYAlTTo3BiQTAhgkBwEkCAEwCUEEyT62Yt4qMI+MorlmQ/Hxh2CpLetznVknlAbhvYAwTexpSxp9GnhR09SrcUhz3mOb0eZa2TylqcnPBhHJ2Ih2RTcKNQEpARgkAmAwBBRT9HTfU5Nds+HA8j+/MRP+0pVyIzAFFOMCO8Jk7ZCknJquFGPtPzJiNqsDGDALQI/Kc38hQyK7AkT7/pN4hiYW3LoWKT3NA43+ssMJoVpDcaZ989GXBQKIbHKbBEXzUQ1J8wfL7l2pL0Z8Lso9JwgY",
"254": 1
}
],
"0/62/1": [
{
"1": "BIrruNo7r0gX6j6lq1dDi5zeK3jxcTavjt2o4adCCSCYtbxOakfb7C3GXqgV4LzulFSinbewmYkdqFBHqm5pxvU=",
"2": 4939,
"3": 2,
"4": 73,
"5": "Maison",
"254": 1
}
],
"0/62/2": 16,
"0/62/3": 1,
"0/62/4": [
"FTABAQEkAgE3AyQUARgmBIAigScmBYAlTTo3BiQUARgkBwEkCAEwCUEEiuu42juvSBfqPqWrV0OLnN4rePFxNq+O3ajhp0IJIJi1vE5qR9vsLcZeqBXgvO6UVKKdt7CZiR2oUEeqbmnG9TcKNQEpARgkAmAwBBTjAjvCZO2QpJyarhRj7T8yYjarAzAFFOMCO8Jk7ZCknJquFGPtPzJiNqsDGDALQE7hTxTRg92QOxwA1hK3xv8DaxvxL71r6ZHcNRzug9wNnonJ+NC84SFKvKDxwcBxHYqFdIyDiDgwJNTQIBgasmIY"
],
"0/62/5": 1,
"0/62/65532": 0,
"0/62/65533": 2,
"0/62/65528": [1, 3, 5, 8],
"0/62/65529": [0, 2, 4, 6, 7, 9, 10, 11],
"0/62/65531": [0, 1, 2, 3, 4, 5, 65532, 65533, 65528, 65529, 65531],
"0/63/0": [],
"0/63/1": [],
"0/63/2": 4,
"0/63/3": 3,
"0/63/65532": 0,
"0/63/65533": 2,
"0/63/65528": [2, 5],
"0/63/65529": [0, 1, 3, 4],
"0/63/65531": [0, 1, 2, 3, 65532, 65533, 65528, 65529, 65531],
"0/70/0": 300,
"0/70/1": 300,
"0/70/2": 5000,
"0/70/7": "",
"0/70/65532": 0,
"0/70/65533": 3,
"0/70/65528": [],
"0/70/65529": [],
"0/70/65531": [0, 1, 2, 7, 65532, 65533, 65528, 65529, 65531],
"1/3/0": 0,
"1/3/1": 0,
"1/3/65532": 0,
"1/3/65533": 5,
"1/3/65528": [],
"1/3/65529": [0, 64],
"1/3/65531": [0, 1, 65532, 65533, 65528, 65529, 65531],
"1/29/0": [
{
"0": 122,
"1": 1
}
],
"1/29/1": [3, 29, 113, 114, 514],
"1/29/2": [],
"1/29/3": [],
"1/29/65532": 0,
"1/29/65533": 3,
"1/29/65528": [],
"1/29/65529": [],
"1/29/65531": [0, 1, 2, 3, 65532, 65533, 65528, 65529, 65531],
"1/113/0": 100,
"1/113/1": 1,
"1/113/2": 0,
"1/113/5": [
{
"0": 0,
"1": "111112222233"
},
{
"0": 1,
"1": "gtin8xxx"
},
{
"0": 2,
"1": "4444455555666"
},
{
"0": 3,
"1": "gtin14xxxxxxxx"
},
{
"0": 4,
"1": "oem20xxxxxxxxxxxxxxx"
}
],
"1/113/65532": 7,
"1/113/65533": 1,
"1/113/65528": [],
"1/113/65529": [0],
"1/113/65531": [0, 1, 2, 5, 65532, 65533, 65528, 65529, 65531],
"1/114/0": 100,
"1/114/1": 1,
"1/114/2": 0,
"1/114/5": [
{
"0": 0,
"1": "111112222233"
},
{
"0": 1,
"1": "gtin8xxx"
},
{
"0": 2,
"1": "4444455555666"
},
{
"0": 3,
"1": "gtin14xxxxxxxx"
},
{
"0": 4,
"1": "oem20xxxxxxxxxxxxxxx"
}
],
"1/114/65532": 7,
"1/114/65533": 1,
"1/114/65528": [],
"1/114/65529": [0],
"1/114/65531": [0, 1, 2, 5, 65532, 65533, 65528, 65529, 65531],
"1/514/0": 0,
"1/514/1": 0,
"1/514/2": 0,
"1/514/3": 0,
"1/514/65532": 0,
"1/514/65533": 5,
"1/514/65528": [],
"1/514/65529": [],
"1/514/65531": [0, 1, 2, 3, 65532, 65533, 65528, 65529, 65531]
},
"attribute_subscriptions": []
}

View File

@ -536,6 +536,102 @@
'state': 'unknown',
})
# ---
# name: test_buttons[extractor_hood][button.mock_extractor_hood_reset_filter_condition-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'area_id': None,
'capabilities': None,
'config_entry_id': <ANY>,
'config_subentry_id': <ANY>,
'device_class': None,
'device_id': <ANY>,
'disabled_by': None,
'domain': 'button',
'entity_category': None,
'entity_id': 'button.mock_extractor_hood_reset_filter_condition',
'has_entity_name': True,
'hidden_by': None,
'icon': None,
'id': <ANY>,
'labels': set({
}),
'name': None,
'options': dict({
}),
'original_device_class': None,
'original_icon': None,
'original_name': 'Reset filter condition',
'platform': 'matter',
'previous_unique_id': None,
'suggested_object_id': None,
'supported_features': 0,
'translation_key': 'reset_filter_condition',
'unique_id': '00000000000004D2-0000000000000049-MatterNodeDevice-1-HepaFilterMonitoringResetButton-113-65529',
'unit_of_measurement': None,
})
# ---
# name: test_buttons[extractor_hood][button.mock_extractor_hood_reset_filter_condition-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Mock Extractor hood Reset filter condition',
}),
'context': <ANY>,
'entity_id': 'button.mock_extractor_hood_reset_filter_condition',
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': 'unknown',
})
# ---
# name: test_buttons[extractor_hood][button.mock_extractor_hood_reset_filter_condition_2-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'area_id': None,
'capabilities': None,
'config_entry_id': <ANY>,
'config_subentry_id': <ANY>,
'device_class': None,
'device_id': <ANY>,
'disabled_by': None,
'domain': 'button',
'entity_category': None,
'entity_id': 'button.mock_extractor_hood_reset_filter_condition_2',
'has_entity_name': True,
'hidden_by': None,
'icon': None,
'id': <ANY>,
'labels': set({
}),
'name': None,
'options': dict({
}),
'original_device_class': None,
'original_icon': None,
'original_name': 'Reset filter condition',
'platform': 'matter',
'previous_unique_id': None,
'suggested_object_id': None,
'supported_features': 0,
'translation_key': 'reset_filter_condition',
'unique_id': '00000000000004D2-0000000000000049-MatterNodeDevice-1-ActivatedCarbonFilterMonitoringResetButton-114-65529',
'unit_of_measurement': None,
})
# ---
# name: test_buttons[extractor_hood][button.mock_extractor_hood_reset_filter_condition_2-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Mock Extractor hood Reset filter condition',
}),
'context': <ANY>,
'entity_id': 'button.mock_extractor_hood_reset_filter_condition_2',
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': 'unknown',
})
# ---
# name: test_buttons[fan][button.mocked_fan_switch_identify-entry]
EntityRegistryEntrySnapshot({
'aliases': set({

View File

@ -70,6 +70,67 @@
'state': 'on',
})
# ---
# name: test_fans[extractor_hood][fan.mock_extractor_hood-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'area_id': None,
'capabilities': dict({
'preset_modes': list([
'low',
'medium',
'high',
]),
}),
'config_entry_id': <ANY>,
'config_subentry_id': <ANY>,
'device_class': None,
'device_id': <ANY>,
'disabled_by': None,
'domain': 'fan',
'entity_category': None,
'entity_id': 'fan.mock_extractor_hood',
'has_entity_name': True,
'hidden_by': None,
'icon': None,
'id': <ANY>,
'labels': set({
}),
'name': None,
'options': dict({
}),
'original_device_class': None,
'original_icon': None,
'original_name': None,
'platform': 'matter',
'previous_unique_id': None,
'suggested_object_id': None,
'supported_features': <FanEntityFeature: 56>,
'translation_key': None,
'unique_id': '00000000000004D2-0000000000000049-MatterNodeDevice-1-MatterFan-514-0',
'unit_of_measurement': None,
})
# ---
# name: test_fans[extractor_hood][fan.mock_extractor_hood-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Mock Extractor hood',
'preset_mode': None,
'preset_modes': list([
'low',
'medium',
'high',
]),
'supported_features': <FanEntityFeature: 56>,
}),
'context': <ANY>,
'entity_id': 'fan.mock_extractor_hood',
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': 'off',
})
# ---
# name: test_fans[fan][fan.mocked_fan_switch-entry]
EntityRegistryEntrySnapshot({
'aliases': set({

View File

@ -2373,6 +2373,110 @@
'state': '2.956',
})
# ---
# name: test_sensors[extractor_hood][sensor.mock_extractor_hood_activated_carbon_filter_condition-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'area_id': None,
'capabilities': dict({
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
}),
'config_entry_id': <ANY>,
'config_subentry_id': <ANY>,
'device_class': None,
'device_id': <ANY>,
'disabled_by': None,
'domain': 'sensor',
'entity_category': None,
'entity_id': 'sensor.mock_extractor_hood_activated_carbon_filter_condition',
'has_entity_name': True,
'hidden_by': None,
'icon': None,
'id': <ANY>,
'labels': set({
}),
'name': None,
'options': dict({
}),
'original_device_class': None,
'original_icon': None,
'original_name': 'Activated carbon filter condition',
'platform': 'matter',
'previous_unique_id': None,
'suggested_object_id': None,
'supported_features': 0,
'translation_key': 'activated_carbon_filter_condition',
'unique_id': '00000000000004D2-0000000000000049-MatterNodeDevice-1-ActivatedCarbonFilterCondition-114-0',
'unit_of_measurement': '%',
})
# ---
# name: test_sensors[extractor_hood][sensor.mock_extractor_hood_activated_carbon_filter_condition-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Mock Extractor hood Activated carbon filter condition',
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': '%',
}),
'context': <ANY>,
'entity_id': 'sensor.mock_extractor_hood_activated_carbon_filter_condition',
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': '100',
})
# ---
# name: test_sensors[extractor_hood][sensor.mock_extractor_hood_hepa_filter_condition-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'area_id': None,
'capabilities': dict({
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
}),
'config_entry_id': <ANY>,
'config_subentry_id': <ANY>,
'device_class': None,
'device_id': <ANY>,
'disabled_by': None,
'domain': 'sensor',
'entity_category': None,
'entity_id': 'sensor.mock_extractor_hood_hepa_filter_condition',
'has_entity_name': True,
'hidden_by': None,
'icon': None,
'id': <ANY>,
'labels': set({
}),
'name': None,
'options': dict({
}),
'original_device_class': None,
'original_icon': None,
'original_name': 'Hepa filter condition',
'platform': 'matter',
'previous_unique_id': None,
'suggested_object_id': None,
'supported_features': 0,
'translation_key': 'hepa_filter_condition',
'unique_id': '00000000000004D2-0000000000000049-MatterNodeDevice-1-HepaFilterCondition-113-0',
'unit_of_measurement': '%',
})
# ---
# name: test_sensors[extractor_hood][sensor.mock_extractor_hood_hepa_filter_condition-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Mock Extractor hood Hepa filter condition',
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': '%',
}),
'context': <ANY>,
'entity_id': 'sensor.mock_extractor_hood_hepa_filter_condition',
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': '100',
})
# ---
# name: test_sensors[flow_sensor][sensor.mock_flow_sensor_flow-entry]
EntityRegistryEntrySnapshot({
'aliases': set({