Replace fixtures for Matter tests (#83328)

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
pull/83421/head
Marcel van der Veldt 2022-12-06 18:38:13 +01:00 committed by GitHub
parent 91d6d620c2
commit 4c8f7bbf50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
15 changed files with 13476 additions and 1198 deletions

View File

@ -1,100 +1,19 @@
"""Provide common test tools."""
from __future__ import annotations
import asyncio
from functools import cache
import json
import logging
from typing import TYPE_CHECKING, Any
from unittest.mock import Mock, patch
from typing import Any
from unittest.mock import MagicMock
from matter_server.client import MatterClient
from matter_server.common.helpers.util import dataclass_from_dict
from matter_server.common.models.events import EventType
from matter_server.common.models.node import MatterNode
from matter_server.common.models.server_information import ServerInfo
import pytest
from homeassistant.core import HomeAssistant
from tests.common import MockConfigEntry, load_fixture
if TYPE_CHECKING:
from homeassistant.core import HomeAssistant
MOCK_FABRIC_ID = 12341234
MOCK_COMPR_FABRIC_ID = 1234
# TEMP: Tests need to be fixed
pytestmark = pytest.mark.skip("all tests still WIP")
class MockClient(MatterClient):
"""Represent a mock Matter client."""
mock_client_disconnect: asyncio.Event
mock_commands: dict[type, Any] = {}
mock_sent_commands: list[dict[str, Any]] = []
def __init__(self) -> None:
"""Initialize the mock client."""
super().__init__("mock-url", None)
self.mock_commands: dict[type, Any] = {}
self.mock_sent_commands = []
self.server_info = ServerInfo(
fabric_id=MOCK_FABRIC_ID, compressed_fabric_id=MOCK_COMPR_FABRIC_ID
)
async def connect(self) -> None:
"""Connect to the Matter server."""
self.server_info = Mock(compressed_abric_d=MOCK_COMPR_FABRIC_ID)
async def listen(self, driver_ready: asyncio.Event) -> None:
"""Listen for events."""
driver_ready.set()
self.mock_client_disconnect = asyncio.Event()
await self.mock_client_disconnect.wait()
def mock_command(self, command_type: type, response: Any) -> None:
"""Mock a command."""
self.mock_commands[command_type] = response
async def async_send_command(
self,
command: str,
args: dict[str, Any],
require_schema: int | None = None,
) -> dict:
"""Send mock commands."""
if command == "device_controller.SendCommand" and (
(cmd_type := type(args.get("payload"))) in self.mock_commands
):
self.mock_sent_commands.append(args)
return self.mock_commands[cmd_type]
return await super().async_send_command(command, args, require_schema)
async def async_send_command_no_wait(
self, command: str, args: dict[str, Any], require_schema: int | None = None
) -> None:
"""Send a command without waiting for the response."""
if command == "SendCommand" and (
(cmd_type := type(args.get("payload"))) in self.mock_commands
):
self.mock_sent_commands.append(args)
return self.mock_commands[cmd_type]
return await super().async_send_command_no_wait(command, args, require_schema)
@pytest.fixture
async def mock_matter() -> Mock:
"""Mock matter fixture."""
return await get_mock_matter()
async def get_mock_matter() -> Mock:
"""Get mock Matter."""
return Mock(
adapter=Mock(logger=logging.getLogger("mock_matter")), client=MockClient()
)
@cache
def load_node_fixture(fixture: str) -> str:
@ -108,39 +27,48 @@ def load_and_parse_node_fixture(fixture: str) -> dict[str, Any]:
async def setup_integration_with_node_fixture(
hass: HomeAssistant, hass_storage: dict[str, Any], node_fixture: str
hass: HomeAssistant,
node_fixture: str,
client: MagicMock,
) -> MatterNode:
"""Set up Matter integration with fixture as node."""
node_data = load_and_parse_node_fixture(node_fixture)
node = MatterNode(
await get_mock_matter(),
node = dataclass_from_dict(
MatterNode,
node_data,
)
client.get_nodes.return_value = [node]
client.get_node.return_value = node
config_entry = MockConfigEntry(
domain="matter", data={"url": "http://mock-matter-server-url"}
)
config_entry.add_to_hass(hass)
storage_key = f"matter_{config_entry.entry_id}"
hass_storage[storage_key] = {
"version": 1,
"minor_version": 0,
"key": storage_key,
"data": {
"compressed_fabric_id": MOCK_COMPR_FABRIC_ID,
"next_node_id": 4339,
"nodes": {str(node.node_id): node_data},
},
}
with patch(
"matter_server.client.matter.Client", return_value=node.matter.client
), patch(
"matter_server.client.model.node.MatterDeviceTypeInstance.subscribe_updates",
), patch(
"matter_server.client.model.node.MatterDeviceTypeInstance.update_attributes"
):
assert await hass.config_entries.async_setup(config_entry.entry_id)
await hass.async_block_till_done()
assert await hass.config_entries.async_setup(config_entry.entry_id)
await hass.async_block_till_done()
return node
def set_node_attribute(
node: MatterNode,
endpoint: int,
cluster_id: int,
attribute_id: int,
value: Any,
) -> None:
"""Set a node attribute."""
attribute = node.attributes[f"{endpoint}/{cluster_id}/{attribute_id}"]
attribute.value = value
async def trigger_subscription_callback(
hass: HomeAssistant,
client: MagicMock,
event: EventType = EventType.ATTRIBUTE_UPDATED,
data: Any = None,
) -> None:
"""Trigger a subscription callback."""
callback = client.subscribe.call_args[0][0]
callback(event, data)
await hass.async_block_till_done()

View File

@ -5,12 +5,16 @@ import asyncio
from collections.abc import AsyncGenerator, Generator
from unittest.mock import AsyncMock, MagicMock, patch
from matter_server.common.models.server_information import ServerInfo
import pytest
from homeassistant.core import HomeAssistant
from tests.common import MockConfigEntry
MOCK_FABRIC_ID = 12341234
MOCK_COMPR_FABRIC_ID = 1234
@pytest.fixture(name="matter_client")
async def matter_client_fixture() -> AsyncGenerator[MagicMock, None]:
@ -32,6 +36,14 @@ async def matter_client_fixture() -> AsyncGenerator[MagicMock, None]:
client.connect = AsyncMock(side_effect=connect)
client.start_listening = AsyncMock(side_effect=listen)
client.server_info = ServerInfo(
fabric_id=MOCK_FABRIC_ID,
compressed_fabric_id=MOCK_COMPR_FABRIC_ID,
schema_version=1,
sdk_version="2022.11.1",
wifi_credentials_set=True,
thread_credentials_set=True,
)
yield client

View File

@ -0,0 +1,545 @@
{
"node_id": 1,
"date_commissioned": "2022-11-29T21:23:48.485051",
"last_interview": "2022-11-29T21:23:48.485057",
"interview_version": 1,
"attributes": {
"0/40/0": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 0,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.DataModelRevision",
"attribute_name": "DataModelRevision",
"value": 1
},
"0/40/1": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 1,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.VendorName",
"attribute_name": "VendorName",
"value": "Nabu Casa"
},
"0/40/2": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 2,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.VendorID",
"attribute_name": "VendorID",
"value": 65521
},
"0/40/3": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 3,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.ProductName",
"attribute_name": "ProductName",
"value": "Mock ContactSensor"
},
"0/40/4": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 4,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.ProductID",
"attribute_name": "ProductID",
"value": 32768
},
"0/40/5": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 5,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.NodeLabel",
"attribute_name": "NodeLabel",
"value": "Mock Contact sensor"
},
"0/40/6": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 6,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.Location",
"attribute_name": "Location",
"value": "XX"
},
"0/40/7": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 7,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.HardwareVersion",
"attribute_name": "HardwareVersion",
"value": 0
},
"0/40/8": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 8,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.HardwareVersionString",
"attribute_name": "HardwareVersionString",
"value": "v1.0"
},
"0/40/9": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 9,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.SoftwareVersion",
"attribute_name": "SoftwareVersion",
"value": 1
},
"0/40/10": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 10,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.SoftwareVersionString",
"attribute_name": "SoftwareVersionString",
"value": "v1.0"
},
"0/40/11": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 11,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.ManufacturingDate",
"attribute_name": "ManufacturingDate",
"value": "20221206"
},
"0/40/12": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 12,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.PartNumber",
"attribute_name": "PartNumber",
"value": ""
},
"0/40/13": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 13,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.ProductURL",
"attribute_name": "ProductURL",
"value": ""
},
"0/40/14": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 14,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.ProductLabel",
"attribute_name": "ProductLabel",
"value": ""
},
"0/40/15": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 15,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.SerialNumber",
"attribute_name": "SerialNumber",
"value": "TEST_SN"
},
"0/40/16": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 16,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.LocalConfigDisabled",
"attribute_name": "LocalConfigDisabled",
"value": false
},
"0/40/17": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 17,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.Reachable",
"attribute_name": "Reachable",
"value": true
},
"0/40/18": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 18,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.UniqueID",
"attribute_name": "UniqueID",
"value": "mock-contact-sensor"
},
"0/40/19": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 19,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.CapabilityMinima",
"attribute_name": "CapabilityMinima",
"value": {
"caseSessionsPerFabric": 3,
"subscriptionsPerFabric": 3
}
},
"0/40/65532": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 65532,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.FeatureMap",
"attribute_name": "FeatureMap",
"value": 0
},
"0/40/65533": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 65533,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.ClusterRevision",
"attribute_name": "ClusterRevision",
"value": 1
},
"0/40/65528": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 65528,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.GeneratedCommandList",
"attribute_name": "GeneratedCommandList",
"value": []
},
"0/40/65529": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 65529,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.AcceptedCommandList",
"attribute_name": "AcceptedCommandList",
"value": []
},
"0/40/65531": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 65531,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.AttributeList",
"attribute_name": "AttributeList",
"value": [
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
65528, 65529, 65531, 65532, 65533
]
},
"1/3/0": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 3,
"cluster_type": "chip.clusters.Objects.Identify",
"cluster_name": "Identify",
"attribute_id": 0,
"attribute_type": "chip.clusters.Objects.Identify.Attributes.IdentifyTime",
"attribute_name": "IdentifyTime",
"value": 0
},
"1/3/1": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 3,
"cluster_type": "chip.clusters.Objects.Identify",
"cluster_name": "Identify",
"attribute_id": 1,
"attribute_type": "chip.clusters.Objects.Identify.Attributes.IdentifyType",
"attribute_name": "IdentifyType",
"value": 2
},
"1/3/65532": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 3,
"cluster_type": "chip.clusters.Objects.Identify",
"cluster_name": "Identify",
"attribute_id": 65532,
"attribute_type": "chip.clusters.Objects.Identify.Attributes.FeatureMap",
"attribute_name": "FeatureMap",
"value": 0
},
"1/3/65533": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 3,
"cluster_type": "chip.clusters.Objects.Identify",
"cluster_name": "Identify",
"attribute_id": 65533,
"attribute_type": "chip.clusters.Objects.Identify.Attributes.ClusterRevision",
"attribute_name": "ClusterRevision",
"value": 4
},
"1/3/65528": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 3,
"cluster_type": "chip.clusters.Objects.Identify",
"cluster_name": "Identify",
"attribute_id": 65528,
"attribute_type": "chip.clusters.Objects.Identify.Attributes.GeneratedCommandList",
"attribute_name": "GeneratedCommandList",
"value": []
},
"1/3/65529": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 3,
"cluster_type": "chip.clusters.Objects.Identify",
"cluster_name": "Identify",
"attribute_id": 65529,
"attribute_type": "chip.clusters.Objects.Identify.Attributes.AcceptedCommandList",
"attribute_name": "AcceptedCommandList",
"value": [0, 64]
},
"1/3/65531": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 3,
"cluster_type": "chip.clusters.Objects.Identify",
"cluster_name": "Identify",
"attribute_id": 65531,
"attribute_type": "chip.clusters.Objects.Identify.Attributes.AttributeList",
"attribute_name": "AttributeList",
"value": [0, 1, 65528, 65529, 65531, 65532, 65533]
},
"1/29/0": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 29,
"cluster_type": "chip.clusters.Objects.Descriptor",
"cluster_name": "Descriptor",
"attribute_id": 0,
"attribute_type": "chip.clusters.Objects.Descriptor.Attributes.DeviceTypeList",
"attribute_name": "DeviceTypeList",
"value": [
{
"type": 21,
"revision": 1
}
]
},
"1/29/1": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 29,
"cluster_type": "chip.clusters.Objects.Descriptor",
"cluster_name": "Descriptor",
"attribute_id": 1,
"attribute_type": "chip.clusters.Objects.Descriptor.Attributes.ServerList",
"attribute_name": "ServerList",
"value": [
3, 4, 5, 6, 7, 8, 15, 29, 30, 37, 47, 59, 64, 65, 69, 80, 257, 258, 259,
512, 513, 514, 516, 768, 1024, 1026, 1027, 1028, 1029, 1030, 1283, 1284,
1285, 1286, 1287, 1288, 1289, 1290, 1291, 1292, 1293, 1294, 2820,
4294048773
]
},
"1/29/2": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 29,
"cluster_type": "chip.clusters.Objects.Descriptor",
"cluster_name": "Descriptor",
"attribute_id": 2,
"attribute_type": "chip.clusters.Objects.Descriptor.Attributes.ClientList",
"attribute_name": "ClientList",
"value": []
},
"1/29/3": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 29,
"cluster_type": "chip.clusters.Objects.Descriptor",
"cluster_name": "Descriptor",
"attribute_id": 3,
"attribute_type": "chip.clusters.Objects.Descriptor.Attributes.PartsList",
"attribute_name": "PartsList",
"value": []
},
"1/29/65532": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 29,
"cluster_type": "chip.clusters.Objects.Descriptor",
"cluster_name": "Descriptor",
"attribute_id": 65532,
"attribute_type": "chip.clusters.Objects.Descriptor.Attributes.FeatureMap",
"attribute_name": "FeatureMap",
"value": 0
},
"1/29/65533": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 29,
"cluster_type": "chip.clusters.Objects.Descriptor",
"cluster_name": "Descriptor",
"attribute_id": 65533,
"attribute_type": "chip.clusters.Objects.Descriptor.Attributes.ClusterRevision",
"attribute_name": "ClusterRevision",
"value": 1
},
"1/29/65528": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 29,
"cluster_type": "chip.clusters.Objects.Descriptor",
"cluster_name": "Descriptor",
"attribute_id": 65528,
"attribute_type": "chip.clusters.Objects.Descriptor.Attributes.GeneratedCommandList",
"attribute_name": "GeneratedCommandList",
"value": []
},
"1/29/65529": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 29,
"cluster_type": "chip.clusters.Objects.Descriptor",
"cluster_name": "Descriptor",
"attribute_id": 65529,
"attribute_type": "chip.clusters.Objects.Descriptor.Attributes.AcceptedCommandList",
"attribute_name": "AcceptedCommandList",
"value": []
},
"1/29/65531": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 29,
"cluster_type": "chip.clusters.Objects.Descriptor",
"cluster_name": "Descriptor",
"attribute_id": 65531,
"attribute_type": "chip.clusters.Objects.Descriptor.Attributes.AttributeList",
"attribute_name": "AttributeList",
"value": [0, 1, 2, 3, 65528, 65529, 65531, 65532, 65533]
},
"1/69/0": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 69,
"cluster_type": "chip.clusters.Objects.BooleanState",
"cluster_name": "BooleanState",
"attribute_id": 0,
"attribute_type": "chip.clusters.Objects.BooleanState.Attributes.StateValue",
"attribute_name": "StateValue",
"value": true
},
"1/69/65532": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 69,
"cluster_type": "chip.clusters.Objects.BooleanState",
"cluster_name": "BooleanState",
"attribute_id": 65532,
"attribute_type": "chip.clusters.Objects.BooleanState.Attributes.FeatureMap",
"attribute_name": "FeatureMap",
"value": 0
},
"1/69/65533": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 69,
"cluster_type": "chip.clusters.Objects.BooleanState",
"cluster_name": "BooleanState",
"attribute_id": 65533,
"attribute_type": "chip.clusters.Objects.BooleanState.Attributes.ClusterRevision",
"attribute_name": "ClusterRevision",
"value": 1
},
"1/69/65528": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 69,
"cluster_type": "chip.clusters.Objects.BooleanState",
"cluster_name": "BooleanState",
"attribute_id": 65528,
"attribute_type": "chip.clusters.Objects.BooleanState.Attributes.GeneratedCommandList",
"attribute_name": "GeneratedCommandList",
"value": []
},
"1/69/65529": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 69,
"cluster_type": "chip.clusters.Objects.BooleanState",
"cluster_name": "BooleanState",
"attribute_id": 65529,
"attribute_type": "chip.clusters.Objects.BooleanState.Attributes.AcceptedCommandList",
"attribute_name": "AcceptedCommandList",
"value": []
},
"1/69/65531": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 69,
"cluster_type": "chip.clusters.Objects.BooleanState",
"cluster_name": "BooleanState",
"attribute_id": 65531,
"attribute_type": "chip.clusters.Objects.BooleanState.Attributes.AttributeList",
"attribute_name": "AttributeList",
"value": [0, 65528, 65529, 65531, 65532, 65533]
}
},
"endpoints": [0, 1],
"_type": "matter_server.common.models.node.MatterNode"
}

File diff suppressed because it is too large Load Diff

View File

@ -1,174 +0,0 @@
{
"attributes": {
"0": {
"Descriptor": {
"deviceTypeList": [
{
"type": 22,
"revision": 1,
"_type": "chip.clusters.Objects.Descriptor.Structs.DeviceTypeStruct"
},
{
"type": 14,
"revision": 1,
"_type": "chip.clusters.Objects.Descriptor.Structs.DeviceTypeStruct"
}
],
"serverList": [29, 37, 40, 48, 49, 50, 51, 60, 62, 64, 65],
"clientList": [],
"partsList": [9, 10],
"generatedCommandList": [],
"acceptedCommandList": [],
"attributeList": [0, 1, 2, 3, 65528, 65529, 65531, 65532, 65533],
"featureMap": 0,
"clusterRevision": 1,
"_type": "chip.clusters.Objects.Descriptor"
},
"Basic": {
"dataModelRevision": 0,
"vendorName": "Mock Vendor",
"vendorID": 1234,
"productName": "Mock Bridge",
"productID": 2,
"nodeLabel": "My Mock Bridge",
"location": "nl",
"hardwareVersion": 123,
"hardwareVersionString": "TEST_VERSION",
"softwareVersion": 12345,
"softwareVersionString": "123.4.5",
"manufacturingDate": null,
"partNumber": null,
"productURL": null,
"productLabel": null,
"serialNumber": null,
"localConfigDisabled": null,
"reachable": null,
"uniqueID": "mock-hub-id",
"capabilityMinima": null,
"generatedCommandList": [],
"acceptedCommandList": [],
"attributeList": [
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 18, 65528, 65529, 65531, 65532,
65533
],
"featureMap": 0,
"clusterRevision": 3,
"_type": "chip.clusters.Objects.Basic"
}
},
"9": {
"OnOff": {
"onOff": true,
"globalSceneControl": true,
"onTime": 0,
"offWaitTime": 0,
"startUpOnOff": 0,
"generatedCommandList": [],
"acceptedCommandList": [0, 1, 2, 64, 65, 66],
"attributeList": [
0, 16384, 16385, 16386, 16387, 65528, 65529, 65531, 65532, 65533
],
"featureMap": 1,
"clusterRevision": 4,
"_type": "chip.clusters.Objects.OnOff"
},
"Descriptor": {
"deviceTypeList": [
{
"type": 256,
"revision": 1,
"_type": "chip.clusters.Objects.Descriptor.Structs.DeviceTypeStruct"
},
{
"type": 19,
"revision": 1,
"_type": "chip.clusters.Objects.Descriptor.Structs.DeviceTypeStruct"
}
],
"serverList": [6, 29, 57, 768, 8, 40],
"clientList": [],
"partsList": [],
"generatedCommandList": [],
"acceptedCommandList": [],
"attributeList": [0, 1, 2, 3, 65528, 65529, 65531, 65533],
"featureMap": null,
"clusterRevision": 1,
"_type": "chip.clusters.Objects.Descriptor"
},
"BridgedDeviceBasic": {
"nodeLabel": "Kitchen Ceiling",
"reachable": true,
"vendorID": 1234,
"softwareVersionString": "67.8.9",
"softwareVersion": 6789,
"vendorName": "Mock Vendor",
"productName": "Mock Light",
"uniqueID": "mock-id-kitchen-ceiling",
"generatedCommandList": [],
"acceptedCommandList": [],
"attributeList": [
5, 17, 2, 4, 10, 9, 1, 3, 18, 65528, 65529, 65531, 65532, 65533
],
"_type": "chip.clusters.Objects.BridgedDeviceBasic"
}
},
"10": {
"OnOff": {
"onOff": false,
"globalSceneControl": true,
"onTime": 0,
"offWaitTime": 0,
"startUpOnOff": 0,
"generatedCommandList": [],
"acceptedCommandList": [0, 1, 2, 64, 65, 66],
"attributeList": [
0, 16384, 16385, 16386, 16387, 65528, 65529, 65531, 65532, 65533
],
"featureMap": 1,
"clusterRevision": 4,
"_type": "chip.clusters.Objects.OnOff"
},
"Descriptor": {
"deviceTypeList": [
{
"type": 256,
"revision": 1,
"_type": "chip.clusters.Objects.Descriptor.Structs.DeviceTypeStruct"
},
{
"type": 19,
"revision": 1,
"_type": "chip.clusters.Objects.Descriptor.Structs.DeviceTypeStruct"
}
],
"serverList": [6, 29, 57, 768, 40],
"clientList": [],
"partsList": [],
"generatedCommandList": [],
"acceptedCommandList": [],
"attributeList": [0, 1, 2, 3, 65528, 65529, 65531, 65533],
"featureMap": null,
"clusterRevision": 1,
"_type": "chip.clusters.Objects.Descriptor"
},
"BridgedDeviceBasic": {
"nodeLabel": "Living Room Ceiling",
"reachable": true,
"vendorID": 1234,
"softwareVersionString": "1.49.1",
"softwareVersion": 19988481,
"vendorName": "Mock Vendor",
"productName": "Mock Light",
"uniqueID": "mock-id-living-room-ceiling",
"generatedCommandList": [],
"acceptedCommandList": [],
"attributeList": [
5, 17, 2, 4, 10, 9, 1, 3, 18, 65528, 65529, 65531, 65532, 65533
],
"_type": "chip.clusters.Objects.BridgedDeviceBasic"
}
}
},
"events": [],
"node_id": 4338
}

View File

@ -0,0 +1,518 @@
{
"node_id": 1,
"date_commissioned": "2022-11-29T21:23:48.485051",
"last_interview": "2022-11-29T21:23:48.485057",
"interview_version": 1,
"attributes": {
"0/40/0": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 0,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.DataModelRevision",
"attribute_name": "DataModelRevision",
"value": 1
},
"0/40/1": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 1,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.VendorName",
"attribute_name": "VendorName",
"value": "Nabu Casa"
},
"0/40/2": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 2,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.VendorID",
"attribute_name": "VendorID",
"value": 65521
},
"0/40/3": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 3,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.ProductName",
"attribute_name": "ProductName",
"value": "Mock FlowSensor"
},
"0/40/4": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 4,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.ProductID",
"attribute_name": "ProductID",
"value": 32768
},
"0/40/5": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 5,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.NodeLabel",
"attribute_name": "NodeLabel",
"value": "Mock Flow Sensor"
},
"0/40/6": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 6,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.Location",
"attribute_name": "Location",
"value": "XX"
},
"0/40/7": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 7,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.HardwareVersion",
"attribute_name": "HardwareVersion",
"value": 0
},
"0/40/8": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 8,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.HardwareVersionString",
"attribute_name": "HardwareVersionString",
"value": "v1.0"
},
"0/40/9": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 9,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.SoftwareVersion",
"attribute_name": "SoftwareVersion",
"value": 1
},
"0/40/10": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 10,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.SoftwareVersionString",
"attribute_name": "SoftwareVersionString",
"value": "v1.0"
},
"0/40/11": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 11,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.ManufacturingDate",
"attribute_name": "ManufacturingDate",
"value": "20221206"
},
"0/40/12": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 12,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.PartNumber",
"attribute_name": "PartNumber",
"value": ""
},
"0/40/13": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 13,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.ProductURL",
"attribute_name": "ProductURL",
"value": ""
},
"0/40/14": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 14,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.ProductLabel",
"attribute_name": "ProductLabel",
"value": ""
},
"0/40/15": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 15,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.SerialNumber",
"attribute_name": "SerialNumber",
"value": "TEST_SN"
},
"0/40/16": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 16,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.LocalConfigDisabled",
"attribute_name": "LocalConfigDisabled",
"value": false
},
"0/40/17": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 17,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.Reachable",
"attribute_name": "Reachable",
"value": true
},
"0/40/18": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 18,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.UniqueID",
"attribute_name": "UniqueID",
"value": "mock-flow-sensor"
},
"0/40/19": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 19,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.CapabilityMinima",
"attribute_name": "CapabilityMinima",
"value": {
"caseSessionsPerFabric": 3,
"subscriptionsPerFabric": 3
}
},
"0/40/65532": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 65532,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.FeatureMap",
"attribute_name": "FeatureMap",
"value": 0
},
"0/40/65533": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 65533,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.ClusterRevision",
"attribute_name": "ClusterRevision",
"value": 1
},
"0/40/65528": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 65528,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.GeneratedCommandList",
"attribute_name": "GeneratedCommandList",
"value": []
},
"0/40/65529": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 65529,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.AcceptedCommandList",
"attribute_name": "AcceptedCommandList",
"value": []
},
"0/40/65531": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 65531,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.AttributeList",
"attribute_name": "AttributeList",
"value": [
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
65528, 65529, 65531, 65532, 65533
]
},
"1/3/65529": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 3,
"cluster_type": "chip.clusters.Objects.Identify",
"cluster_name": "Identify",
"attribute_id": 65529,
"attribute_type": "chip.clusters.Objects.Identify.Attributes.AcceptedCommandList",
"attribute_name": "AcceptedCommandList",
"value": [0, 64]
},
"1/3/65531": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 3,
"cluster_type": "chip.clusters.Objects.Identify",
"cluster_name": "Identify",
"attribute_id": 65531,
"attribute_type": "chip.clusters.Objects.Identify.Attributes.AttributeList",
"attribute_name": "AttributeList",
"value": [0, 1, 65528, 65529, 65531, 65532, 65533]
},
"1/29/0": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 29,
"cluster_type": "chip.clusters.Objects.Descriptor",
"cluster_name": "Descriptor",
"attribute_id": 0,
"attribute_type": "chip.clusters.Objects.Descriptor.Attributes.DeviceTypeList",
"attribute_name": "DeviceTypeList",
"value": [
{
"type": 774,
"revision": 1
}
]
},
"1/29/1": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 29,
"cluster_type": "chip.clusters.Objects.Descriptor",
"cluster_name": "Descriptor",
"attribute_id": 1,
"attribute_type": "chip.clusters.Objects.Descriptor.Attributes.ServerList",
"attribute_name": "ServerList",
"value": [6, 29, 57, 768, 8, 40]
},
"1/29/2": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 29,
"cluster_type": "chip.clusters.Objects.Descriptor",
"cluster_name": "Descriptor",
"attribute_id": 2,
"attribute_type": "chip.clusters.Objects.Descriptor.Attributes.ClientList",
"attribute_name": "ClientList",
"value": []
},
"1/29/3": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 29,
"cluster_type": "chip.clusters.Objects.Descriptor",
"cluster_name": "Descriptor",
"attribute_id": 3,
"attribute_type": "chip.clusters.Objects.Descriptor.Attributes.PartsList",
"attribute_name": "PartsList",
"value": [9, 10]
},
"1/29/65532": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 29,
"cluster_type": "chip.clusters.Objects.Descriptor",
"cluster_name": "Descriptor",
"attribute_id": 65532,
"attribute_type": "chip.clusters.Objects.Descriptor.Attributes.FeatureMap",
"attribute_name": "FeatureMap",
"value": null
},
"1/29/65533": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 29,
"cluster_type": "chip.clusters.Objects.Descriptor",
"cluster_name": "Descriptor",
"attribute_id": 65533,
"attribute_type": "chip.clusters.Objects.Descriptor.Attributes.ClusterRevision",
"attribute_name": "ClusterRevision",
"value": 1
},
"1/29/65528": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 29,
"cluster_type": "chip.clusters.Objects.Descriptor",
"cluster_name": "Descriptor",
"attribute_id": 65528,
"attribute_type": "chip.clusters.Objects.Descriptor.Attributes.GeneratedCommandList",
"attribute_name": "GeneratedCommandList",
"value": []
},
"1/29/65529": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 29,
"cluster_type": "chip.clusters.Objects.Descriptor",
"cluster_name": "Descriptor",
"attribute_id": 65529,
"attribute_type": "chip.clusters.Objects.Descriptor.Attributes.AcceptedCommandList",
"attribute_name": "AcceptedCommandList",
"value": []
},
"1/29/65531": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 29,
"cluster_type": "chip.clusters.Objects.Descriptor",
"cluster_name": "Descriptor",
"attribute_id": 65531,
"attribute_type": "chip.clusters.Objects.Descriptor.Attributes.AttributeList",
"attribute_name": "AttributeList",
"value": [0, 1, 2, 3, 65528, 65529, 65531, 65532, 65533]
},
"1/1028/0": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 1028,
"cluster_type": "chip.clusters.Objects.FlowMeasurement",
"cluster_name": "FlowMeasurement",
"attribute_id": 0,
"attribute_type": "chip.clusters.Objects.FlowMeasurement.Attributes.MeasuredValue",
"attribute_name": "MeasuredValue",
"value": 0
},
"1/1028/1": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 1028,
"cluster_type": "chip.clusters.Objects.FlowMeasurement",
"cluster_name": "FlowMeasurement",
"attribute_id": 1,
"attribute_type": "chip.clusters.Objects.FlowMeasurement.Attributes.MinMeasuredValue",
"attribute_name": "MinMeasuredValue",
"value": 0
},
"1/1028/2": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 1028,
"cluster_type": "chip.clusters.Objects.FlowMeasurement",
"cluster_name": "FlowMeasurement",
"attribute_id": 2,
"attribute_type": "chip.clusters.Objects.FlowMeasurement.Attributes.MaxMeasuredValue",
"attribute_name": "MaxMeasuredValue",
"value": 0
},
"1/1028/3": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 1028,
"cluster_type": "chip.clusters.Objects.FlowMeasurement",
"cluster_name": "FlowMeasurement",
"attribute_id": 3,
"attribute_type": "chip.clusters.Objects.FlowMeasurement.Attributes.Tolerance",
"attribute_name": "Tolerance",
"value": 0
},
"1/1028/65532": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 1028,
"cluster_type": "chip.clusters.Objects.FlowMeasurement",
"cluster_name": "FlowMeasurement",
"attribute_id": 65532,
"attribute_type": "chip.clusters.Objects.FlowMeasurement.Attributes.FeatureMap",
"attribute_name": "FeatureMap",
"value": 0
},
"1/1028/65533": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 1028,
"cluster_type": "chip.clusters.Objects.FlowMeasurement",
"cluster_name": "FlowMeasurement",
"attribute_id": 65533,
"attribute_type": "chip.clusters.Objects.FlowMeasurement.Attributes.ClusterRevision",
"attribute_name": "ClusterRevision",
"value": 3
},
"1/1028/65528": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 1028,
"cluster_type": "chip.clusters.Objects.FlowMeasurement",
"cluster_name": "FlowMeasurement",
"attribute_id": 65528,
"attribute_type": "chip.clusters.Objects.FlowMeasurement.Attributes.GeneratedCommandList",
"attribute_name": "GeneratedCommandList",
"value": []
},
"1/1028/65529": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 1028,
"cluster_type": "chip.clusters.Objects.FlowMeasurement",
"cluster_name": "FlowMeasurement",
"attribute_id": 65529,
"attribute_type": "chip.clusters.Objects.FlowMeasurement.Attributes.AcceptedCommandList",
"attribute_name": "AcceptedCommandList",
"value": []
},
"1/1028/65531": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 1028,
"cluster_type": "chip.clusters.Objects.FlowMeasurement",
"cluster_name": "FlowMeasurement",
"attribute_id": 65531,
"attribute_type": "chip.clusters.Objects.FlowMeasurement.Attributes.AttributeList",
"attribute_name": "AttributeList",
"value": [0, 1, 2, 3, 65528, 65529, 65531, 65532, 65533]
}
},
"endpoints": [0, 1],
"_type": "matter_server.common.models.node.MatterNode"
}

View File

@ -0,0 +1,507 @@
{
"node_id": 1,
"date_commissioned": "2022-11-29T21:23:48.485051",
"last_interview": "2022-11-29T21:23:48.485057",
"interview_version": 1,
"attributes": {
"0/40/0": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 0,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.DataModelRevision",
"attribute_name": "DataModelRevision",
"value": 1
},
"0/40/1": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 1,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.VendorName",
"attribute_name": "VendorName",
"value": "Nabu Casa"
},
"0/40/2": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 2,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.VendorID",
"attribute_name": "VendorID",
"value": 65521
},
"0/40/3": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 3,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.ProductName",
"attribute_name": "ProductName",
"value": "Mock HumiditySensor"
},
"0/40/4": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 4,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.ProductID",
"attribute_name": "ProductID",
"value": 32768
},
"0/40/5": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 5,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.NodeLabel",
"attribute_name": "NodeLabel",
"value": "Mock Humidity Sensor"
},
"0/40/6": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 6,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.Location",
"attribute_name": "Location",
"value": "XX"
},
"0/40/7": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 7,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.HardwareVersion",
"attribute_name": "HardwareVersion",
"value": 0
},
"0/40/8": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 8,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.HardwareVersionString",
"attribute_name": "HardwareVersionString",
"value": "v1.0"
},
"0/40/9": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 9,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.SoftwareVersion",
"attribute_name": "SoftwareVersion",
"value": 1
},
"0/40/10": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 10,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.SoftwareVersionString",
"attribute_name": "SoftwareVersionString",
"value": "v1.0"
},
"0/40/11": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 11,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.ManufacturingDate",
"attribute_name": "ManufacturingDate",
"value": "20221206"
},
"0/40/12": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 12,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.PartNumber",
"attribute_name": "PartNumber",
"value": ""
},
"0/40/13": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 13,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.ProductURL",
"attribute_name": "ProductURL",
"value": ""
},
"0/40/14": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 14,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.ProductLabel",
"attribute_name": "ProductLabel",
"value": ""
},
"0/40/15": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 15,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.SerialNumber",
"attribute_name": "SerialNumber",
"value": "TEST_SN"
},
"0/40/16": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 16,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.LocalConfigDisabled",
"attribute_name": "LocalConfigDisabled",
"value": false
},
"0/40/17": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 17,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.Reachable",
"attribute_name": "Reachable",
"value": true
},
"0/40/18": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 18,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.UniqueID",
"attribute_name": "UniqueID",
"value": "mock-humidity-sensor"
},
"0/40/19": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 19,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.CapabilityMinima",
"attribute_name": "CapabilityMinima",
"value": {
"caseSessionsPerFabric": 3,
"subscriptionsPerFabric": 3
}
},
"0/40/65532": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 65532,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.FeatureMap",
"attribute_name": "FeatureMap",
"value": 0
},
"0/40/65533": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 65533,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.ClusterRevision",
"attribute_name": "ClusterRevision",
"value": 1
},
"0/40/65528": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 65528,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.GeneratedCommandList",
"attribute_name": "GeneratedCommandList",
"value": []
},
"0/40/65529": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 65529,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.AcceptedCommandList",
"attribute_name": "AcceptedCommandList",
"value": []
},
"0/40/65531": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 65531,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.AttributeList",
"attribute_name": "AttributeList",
"value": [
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
65528, 65529, 65531, 65532, 65533
]
},
"1/3/65529": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 3,
"cluster_type": "chip.clusters.Objects.Identify",
"cluster_name": "Identify",
"attribute_id": 65529,
"attribute_type": "chip.clusters.Objects.Identify.Attributes.AcceptedCommandList",
"attribute_name": "AcceptedCommandList",
"value": [0, 64]
},
"1/3/65531": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 3,
"cluster_type": "chip.clusters.Objects.Identify",
"cluster_name": "Identify",
"attribute_id": 65531,
"attribute_type": "chip.clusters.Objects.Identify.Attributes.AttributeList",
"attribute_name": "AttributeList",
"value": [0, 1, 65528, 65529, 65531, 65532, 65533]
},
"1/29/0": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 29,
"cluster_type": "chip.clusters.Objects.Descriptor",
"cluster_name": "Descriptor",
"attribute_id": 0,
"attribute_type": "chip.clusters.Objects.Descriptor.Attributes.DeviceTypeList",
"attribute_name": "DeviceTypeList",
"value": [
{
"type": 775,
"revision": 1
}
]
},
"1/29/1": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 29,
"cluster_type": "chip.clusters.Objects.Descriptor",
"cluster_name": "Descriptor",
"attribute_id": 1,
"attribute_type": "chip.clusters.Objects.Descriptor.Attributes.ServerList",
"attribute_name": "ServerList",
"value": [6, 29, 57, 768, 8, 40]
},
"1/29/2": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 29,
"cluster_type": "chip.clusters.Objects.Descriptor",
"cluster_name": "Descriptor",
"attribute_id": 2,
"attribute_type": "chip.clusters.Objects.Descriptor.Attributes.ClientList",
"attribute_name": "ClientList",
"value": []
},
"1/29/3": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 29,
"cluster_type": "chip.clusters.Objects.Descriptor",
"cluster_name": "Descriptor",
"attribute_id": 3,
"attribute_type": "chip.clusters.Objects.Descriptor.Attributes.PartsList",
"attribute_name": "PartsList",
"value": [9, 10]
},
"1/29/65532": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 29,
"cluster_type": "chip.clusters.Objects.Descriptor",
"cluster_name": "Descriptor",
"attribute_id": 65532,
"attribute_type": "chip.clusters.Objects.Descriptor.Attributes.FeatureMap",
"attribute_name": "FeatureMap",
"value": null
},
"1/29/65533": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 29,
"cluster_type": "chip.clusters.Objects.Descriptor",
"cluster_name": "Descriptor",
"attribute_id": 65533,
"attribute_type": "chip.clusters.Objects.Descriptor.Attributes.ClusterRevision",
"attribute_name": "ClusterRevision",
"value": 1
},
"1/29/65528": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 29,
"cluster_type": "chip.clusters.Objects.Descriptor",
"cluster_name": "Descriptor",
"attribute_id": 65528,
"attribute_type": "chip.clusters.Objects.Descriptor.Attributes.GeneratedCommandList",
"attribute_name": "GeneratedCommandList",
"value": []
},
"1/29/65529": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 29,
"cluster_type": "chip.clusters.Objects.Descriptor",
"cluster_name": "Descriptor",
"attribute_id": 65529,
"attribute_type": "chip.clusters.Objects.Descriptor.Attributes.AcceptedCommandList",
"attribute_name": "AcceptedCommandList",
"value": []
},
"1/29/65531": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 29,
"cluster_type": "chip.clusters.Objects.Descriptor",
"cluster_name": "Descriptor",
"attribute_id": 65531,
"attribute_type": "chip.clusters.Objects.Descriptor.Attributes.AttributeList",
"attribute_name": "AttributeList",
"value": [0, 1, 2, 3, 65528, 65529, 65531, 65532, 65533]
},
"0/1029/0": {
"node_id": 3,
"endpoint": 0,
"cluster_id": 1029,
"cluster_type": "chip.clusters.Objects.RelativeHumidityMeasurement",
"cluster_name": "RelativeHumidityMeasurement",
"attribute_id": 0,
"attribute_type": "chip.clusters.Objects.RelativeHumidityMeasurement.Attributes.MeasuredValue",
"attribute_name": "MeasuredValue",
"value": 0
},
"0/1029/1": {
"node_id": 3,
"endpoint": 0,
"cluster_id": 1029,
"cluster_type": "chip.clusters.Objects.RelativeHumidityMeasurement",
"cluster_name": "RelativeHumidityMeasurement",
"attribute_id": 1,
"attribute_type": "chip.clusters.Objects.RelativeHumidityMeasurement.Attributes.MinMeasuredValue",
"attribute_name": "MinMeasuredValue",
"value": 0
},
"0/1029/2": {
"node_id": 3,
"endpoint": 0,
"cluster_id": 1029,
"cluster_type": "chip.clusters.Objects.RelativeHumidityMeasurement",
"cluster_name": "RelativeHumidityMeasurement",
"attribute_id": 2,
"attribute_type": "chip.clusters.Objects.RelativeHumidityMeasurement.Attributes.MaxMeasuredValue",
"attribute_name": "MaxMeasuredValue",
"value": 10000
},
"0/1029/65532": {
"node_id": 3,
"endpoint": 0,
"cluster_id": 1029,
"cluster_type": "chip.clusters.Objects.RelativeHumidityMeasurement",
"cluster_name": "RelativeHumidityMeasurement",
"attribute_id": 65532,
"attribute_type": "chip.clusters.Objects.RelativeHumidityMeasurement.Attributes.FeatureMap",
"attribute_name": "FeatureMap",
"value": 0
},
"0/1029/65533": {
"node_id": 3,
"endpoint": 0,
"cluster_id": 1029,
"cluster_type": "chip.clusters.Objects.RelativeHumidityMeasurement",
"cluster_name": "RelativeHumidityMeasurement",
"attribute_id": 65533,
"attribute_type": "chip.clusters.Objects.RelativeHumidityMeasurement.Attributes.ClusterRevision",
"attribute_name": "ClusterRevision",
"value": 3
},
"0/1029/65528": {
"node_id": 3,
"endpoint": 0,
"cluster_id": 1029,
"cluster_type": "chip.clusters.Objects.RelativeHumidityMeasurement",
"cluster_name": "RelativeHumidityMeasurement",
"attribute_id": 65528,
"attribute_type": "chip.clusters.Objects.RelativeHumidityMeasurement.Attributes.GeneratedCommandList",
"attribute_name": "GeneratedCommandList",
"value": []
},
"0/1029/65529": {
"node_id": 3,
"endpoint": 0,
"cluster_id": 1029,
"cluster_type": "chip.clusters.Objects.RelativeHumidityMeasurement",
"cluster_name": "RelativeHumidityMeasurement",
"attribute_id": 65529,
"attribute_type": "chip.clusters.Objects.RelativeHumidityMeasurement.Attributes.AcceptedCommandList",
"attribute_name": "AcceptedCommandList",
"value": []
},
"0/1029/65531": {
"node_id": 3,
"endpoint": 0,
"cluster_id": 1029,
"cluster_type": "chip.clusters.Objects.RelativeHumidityMeasurement",
"cluster_name": "RelativeHumidityMeasurement",
"attribute_id": 65531,
"attribute_type": "chip.clusters.Objects.RelativeHumidityMeasurement.Attributes.AttributeList",
"attribute_name": "AttributeList",
"value": [0, 1, 2, 65528, 65529, 65531, 65532, 65533]
}
},
"endpoints": [0, 1],
"_type": "matter_server.common.models.node.MatterNode"
}

View File

@ -0,0 +1,595 @@
{
"node_id": 1,
"date_commissioned": "2022-11-29T21:23:48.485051",
"last_interview": "2022-11-29T21:23:48.485057",
"interview_version": 1,
"attributes": {
"0/40/0": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 0,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.DataModelRevision",
"attribute_name": "DataModelRevision",
"value": 1
},
"0/40/1": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 1,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.VendorName",
"attribute_name": "VendorName",
"value": "Nabu Casa"
},
"0/40/2": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 2,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.VendorID",
"attribute_name": "VendorID",
"value": 65521
},
"0/40/3": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 3,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.ProductName",
"attribute_name": "ProductName",
"value": "Mock LightSensor"
},
"0/40/4": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 4,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.ProductID",
"attribute_name": "ProductID",
"value": 32768
},
"0/40/5": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 5,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.NodeLabel",
"attribute_name": "NodeLabel",
"value": "Mock Light Sensor"
},
"0/40/6": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 6,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.Location",
"attribute_name": "Location",
"value": "XX"
},
"0/40/7": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 7,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.HardwareVersion",
"attribute_name": "HardwareVersion",
"value": 0
},
"0/40/8": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 8,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.HardwareVersionString",
"attribute_name": "HardwareVersionString",
"value": "v1.0"
},
"0/40/9": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 9,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.SoftwareVersion",
"attribute_name": "SoftwareVersion",
"value": 1
},
"0/40/10": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 10,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.SoftwareVersionString",
"attribute_name": "SoftwareVersionString",
"value": "v1.0"
},
"0/40/11": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 11,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.ManufacturingDate",
"attribute_name": "ManufacturingDate",
"value": "20221206"
},
"0/40/12": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 12,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.PartNumber",
"attribute_name": "PartNumber",
"value": ""
},
"0/40/13": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 13,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.ProductURL",
"attribute_name": "ProductURL",
"value": ""
},
"0/40/14": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 14,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.ProductLabel",
"attribute_name": "ProductLabel",
"value": ""
},
"0/40/15": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 15,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.SerialNumber",
"attribute_name": "SerialNumber",
"value": "TEST_SN"
},
"0/40/16": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 16,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.LocalConfigDisabled",
"attribute_name": "LocalConfigDisabled",
"value": false
},
"0/40/17": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 17,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.Reachable",
"attribute_name": "Reachable",
"value": true
},
"0/40/18": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 18,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.UniqueID",
"attribute_name": "UniqueID",
"value": "mock-light-sensor"
},
"0/40/19": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 19,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.CapabilityMinima",
"attribute_name": "CapabilityMinima",
"value": {
"caseSessionsPerFabric": 3,
"subscriptionsPerFabric": 3
}
},
"0/40/65532": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 65532,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.FeatureMap",
"attribute_name": "FeatureMap",
"value": 0
},
"0/40/65533": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 65533,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.ClusterRevision",
"attribute_name": "ClusterRevision",
"value": 1
},
"0/40/65528": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 65528,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.GeneratedCommandList",
"attribute_name": "GeneratedCommandList",
"value": []
},
"0/40/65529": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 65529,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.AcceptedCommandList",
"attribute_name": "AcceptedCommandList",
"value": []
},
"0/40/65531": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 65531,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.AttributeList",
"attribute_name": "AttributeList",
"value": [
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
65528, 65529, 65531, 65532, 65533
]
},
"1/3/65529": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 3,
"cluster_type": "chip.clusters.Objects.Identify",
"cluster_name": "Identify",
"attribute_id": 65529,
"attribute_type": "chip.clusters.Objects.Identify.Attributes.AcceptedCommandList",
"attribute_name": "AcceptedCommandList",
"value": [0, 64]
},
"1/3/65531": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 3,
"cluster_type": "chip.clusters.Objects.Identify",
"cluster_name": "Identify",
"attribute_id": 65531,
"attribute_type": "chip.clusters.Objects.Identify.Attributes.AttributeList",
"attribute_name": "AttributeList",
"value": [0, 1, 65528, 65529, 65531, 65532, 65533]
},
"1/29/0": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 29,
"cluster_type": "chip.clusters.Objects.Descriptor",
"cluster_name": "Descriptor",
"attribute_id": 0,
"attribute_type": "chip.clusters.Objects.Descriptor.Attributes.DeviceTypeList",
"attribute_name": "DeviceTypeList",
"value": [
{
"type": 262,
"revision": 1
}
]
},
"1/29/1": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 29,
"cluster_type": "chip.clusters.Objects.Descriptor",
"cluster_name": "Descriptor",
"attribute_id": 1,
"attribute_type": "chip.clusters.Objects.Descriptor.Attributes.ServerList",
"attribute_name": "ServerList",
"value": [6, 29, 57, 768, 8, 40]
},
"1/29/2": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 29,
"cluster_type": "chip.clusters.Objects.Descriptor",
"cluster_name": "Descriptor",
"attribute_id": 2,
"attribute_type": "chip.clusters.Objects.Descriptor.Attributes.ClientList",
"attribute_name": "ClientList",
"value": []
},
"1/29/3": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 29,
"cluster_type": "chip.clusters.Objects.Descriptor",
"cluster_name": "Descriptor",
"attribute_id": 3,
"attribute_type": "chip.clusters.Objects.Descriptor.Attributes.PartsList",
"attribute_name": "PartsList",
"value": [9, 10]
},
"1/29/65532": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 29,
"cluster_type": "chip.clusters.Objects.Descriptor",
"cluster_name": "Descriptor",
"attribute_id": 65532,
"attribute_type": "chip.clusters.Objects.Descriptor.Attributes.FeatureMap",
"attribute_name": "FeatureMap",
"value": null
},
"1/29/65533": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 29,
"cluster_type": "chip.clusters.Objects.Descriptor",
"cluster_name": "Descriptor",
"attribute_id": 65533,
"attribute_type": "chip.clusters.Objects.Descriptor.Attributes.ClusterRevision",
"attribute_name": "ClusterRevision",
"value": 1
},
"1/29/65528": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 29,
"cluster_type": "chip.clusters.Objects.Descriptor",
"cluster_name": "Descriptor",
"attribute_id": 65528,
"attribute_type": "chip.clusters.Objects.Descriptor.Attributes.GeneratedCommandList",
"attribute_name": "GeneratedCommandList",
"value": []
},
"1/29/65529": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 29,
"cluster_type": "chip.clusters.Objects.Descriptor",
"cluster_name": "Descriptor",
"attribute_id": 65529,
"attribute_type": "chip.clusters.Objects.Descriptor.Attributes.AcceptedCommandList",
"attribute_name": "AcceptedCommandList",
"value": []
},
"1/29/65531": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 29,
"cluster_type": "chip.clusters.Objects.Descriptor",
"cluster_name": "Descriptor",
"attribute_id": 65531,
"attribute_type": "chip.clusters.Objects.Descriptor.Attributes.AttributeList",
"attribute_name": "AttributeList",
"value": [0, 1, 2, 3, 65528, 65529, 65531, 65532, 65533]
},
"1/30/0": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 30,
"cluster_type": "chip.clusters.Objects.Binding",
"cluster_name": "Binding",
"attribute_id": 0,
"attribute_type": "chip.clusters.Objects.Binding.Attributes.Binding",
"attribute_name": "Binding",
"value": []
},
"1/30/65532": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 30,
"cluster_type": "chip.clusters.Objects.Binding",
"cluster_name": "Binding",
"attribute_id": 65532,
"attribute_type": "chip.clusters.Objects.Binding.Attributes.FeatureMap",
"attribute_name": "FeatureMap",
"value": 0
},
"1/30/65533": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 30,
"cluster_type": "chip.clusters.Objects.Binding",
"cluster_name": "Binding",
"attribute_id": 65533,
"attribute_type": "chip.clusters.Objects.Binding.Attributes.ClusterRevision",
"attribute_name": "ClusterRevision",
"value": 1
},
"1/30/65528": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 30,
"cluster_type": "chip.clusters.Objects.Binding",
"cluster_name": "Binding",
"attribute_id": 65528,
"attribute_type": "chip.clusters.Objects.Binding.Attributes.GeneratedCommandList",
"attribute_name": "GeneratedCommandList",
"value": []
},
"1/30/65529": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 30,
"cluster_type": "chip.clusters.Objects.Binding",
"cluster_name": "Binding",
"attribute_id": 65529,
"attribute_type": "chip.clusters.Objects.Binding.Attributes.AcceptedCommandList",
"attribute_name": "AcceptedCommandList",
"value": []
},
"1/30/65531": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 30,
"cluster_type": "chip.clusters.Objects.Binding",
"cluster_name": "Binding",
"attribute_id": 65531,
"attribute_type": "chip.clusters.Objects.Binding.Attributes.AttributeList",
"attribute_name": "AttributeList",
"value": [0, 65528, 65529, 65531, 65532, 65533]
},
"1/1024/0": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 1024,
"cluster_type": "chip.clusters.Objects.IlluminanceMeasurement",
"cluster_name": "IlluminanceMeasurement",
"attribute_id": 0,
"attribute_type": "chip.clusters.Objects.IlluminanceMeasurement.Attributes.MeasuredValue",
"attribute_name": "MeasuredValue",
"value": 1000
},
"1/1024/1": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 1024,
"cluster_type": "chip.clusters.Objects.IlluminanceMeasurement",
"cluster_name": "IlluminanceMeasurement",
"attribute_id": 1,
"attribute_type": "chip.clusters.Objects.IlluminanceMeasurement.Attributes.MinMeasuredValue",
"attribute_name": "MinMeasuredValue",
"value": 1
},
"1/1024/2": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 1024,
"cluster_type": "chip.clusters.Objects.IlluminanceMeasurement",
"cluster_name": "IlluminanceMeasurement",
"attribute_id": 2,
"attribute_type": "chip.clusters.Objects.IlluminanceMeasurement.Attributes.MaxMeasuredValue",
"attribute_name": "MaxMeasuredValue",
"value": 65534
},
"1/1024/3": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 1024,
"cluster_type": "chip.clusters.Objects.IlluminanceMeasurement",
"cluster_name": "IlluminanceMeasurement",
"attribute_id": 3,
"attribute_type": "chip.clusters.Objects.IlluminanceMeasurement.Attributes.Tolerance",
"attribute_name": "Tolerance",
"value": 0
},
"1/1024/4": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 1024,
"cluster_type": "chip.clusters.Objects.IlluminanceMeasurement",
"cluster_name": "IlluminanceMeasurement",
"attribute_id": 4,
"attribute_type": "chip.clusters.Objects.IlluminanceMeasurement.Attributes.LightSensorType",
"attribute_name": "LightSensorType",
"value": null
},
"1/1024/65532": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 1024,
"cluster_type": "chip.clusters.Objects.IlluminanceMeasurement",
"cluster_name": "IlluminanceMeasurement",
"attribute_id": 65532,
"attribute_type": "chip.clusters.Objects.IlluminanceMeasurement.Attributes.FeatureMap",
"attribute_name": "FeatureMap",
"value": 0
},
"1/1024/65533": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 1024,
"cluster_type": "chip.clusters.Objects.IlluminanceMeasurement",
"cluster_name": "IlluminanceMeasurement",
"attribute_id": 65533,
"attribute_type": "chip.clusters.Objects.IlluminanceMeasurement.Attributes.ClusterRevision",
"attribute_name": "ClusterRevision",
"value": 3
},
"1/1024/65528": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 1024,
"cluster_type": "chip.clusters.Objects.IlluminanceMeasurement",
"cluster_name": "IlluminanceMeasurement",
"attribute_id": 65528,
"attribute_type": "chip.clusters.Objects.IlluminanceMeasurement.Attributes.GeneratedCommandList",
"attribute_name": "GeneratedCommandList",
"value": []
},
"1/1024/65529": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 1024,
"cluster_type": "chip.clusters.Objects.IlluminanceMeasurement",
"cluster_name": "IlluminanceMeasurement",
"attribute_id": 65529,
"attribute_type": "chip.clusters.Objects.IlluminanceMeasurement.Attributes.AcceptedCommandList",
"attribute_name": "AcceptedCommandList",
"value": []
},
"1/1024/65531": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 1024,
"cluster_type": "chip.clusters.Objects.IlluminanceMeasurement",
"cluster_name": "IlluminanceMeasurement",
"attribute_id": 65531,
"attribute_type": "chip.clusters.Objects.IlluminanceMeasurement.Attributes.AttributeList",
"attribute_name": "AttributeList",
"value": [0, 1, 2, 3, 4, 65528, 65529, 65531, 65532, 65533]
}
},
"endpoints": [0, 1],
"_type": "matter_server.common.models.node.MatterNode"
}

View File

@ -1,882 +0,0 @@
{
"attributes": {
"0": {
"Groups": {
"nameSupport": 128,
"generatedCommandList": [0, 1, 2, 3],
"acceptedCommandList": [0, 1, 2, 3, 4, 5],
"attributeList": [0, 65528, 65529, 65531, 65532, 65533],
"featureMap": 0,
"clusterRevision": 4,
"_type": "chip.clusters.Objects.Groups"
},
"Descriptor": {
"deviceTypeList": [
{
"type": 22,
"revision": 1,
"_type": "chip.clusters.Objects.Descriptor.Structs.DeviceTypeStruct"
}
],
"serverList": [
4, 29, 31, 40, 42, 43, 44, 48, 49, 50, 51, 52, 53, 54, 55, 59, 60, 62,
63, 64, 65
],
"clientList": [41],
"partsList": [1],
"generatedCommandList": [],
"acceptedCommandList": [],
"attributeList": [0, 1, 2, 3, 65528, 65529, 65531, 65532, 65533],
"featureMap": 0,
"clusterRevision": 1,
"_type": "chip.clusters.Objects.Descriptor"
},
"AccessControl": {
"acl": [
{
"privilege": 5,
"authMode": 2,
"subjects": [1],
"targets": null,
"fabricIndex": 1,
"_type": "chip.clusters.Objects.AccessControl.Structs.AccessControlEntry"
}
],
"extension": [],
"subjectsPerAccessControlEntry": 4,
"targetsPerAccessControlEntry": 3,
"accessControlEntriesPerFabric": 3,
"generatedCommandList": [],
"acceptedCommandList": [],
"attributeList": [0, 1, 2, 3, 4, 65528, 65529, 65531, 65532, 65533],
"featureMap": 0,
"clusterRevision": 1,
"_type": "chip.clusters.Objects.AccessControl"
},
"Basic": {
"dataModelRevision": 1,
"vendorName": "Nabu Casa",
"vendorID": 65521,
"productName": "M5STAMP Lighting App",
"productID": 32768,
"nodeLabel": "My Cool Light",
"location": "XX",
"hardwareVersion": 0,
"hardwareVersionString": "v1.0",
"softwareVersion": 1,
"softwareVersionString": "55ab764bea",
"manufacturingDate": "20200101",
"partNumber": "",
"productURL": "",
"productLabel": "",
"serialNumber": "",
"localConfigDisabled": false,
"reachable": true,
"uniqueID": "BE8F70AA40DDAE41",
"capabilityMinima": {
"caseSessionsPerFabric": 3,
"subscriptionsPerFabric": 65506,
"_type": "chip.clusters.Objects.Basic.Structs.CapabilityMinimaStruct"
},
"generatedCommandList": [],
"acceptedCommandList": [],
"attributeList": [
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
65528, 65529, 65531, 65532, 65533
],
"featureMap": 0,
"clusterRevision": 1,
"_type": "chip.clusters.Objects.Basic"
},
"OtaSoftwareUpdateRequestor": {
"defaultOtaProviders": [],
"updatePossible": true,
"updateState": 0,
"updateStateProgress": 0,
"generatedCommandList": [],
"acceptedCommandList": [0],
"attributeList": [0, 1, 2, 3, 65528, 65529, 65531, 65532, 65533],
"featureMap": 0,
"clusterRevision": 1,
"_type": "chip.clusters.Objects.OtaSoftwareUpdateRequestor"
},
"LocalizationConfiguration": {
"activeLocale": "en-US",
"supportedLocales": [
"en-US",
"de-DE",
"fr-FR",
"en-GB",
"es-ES",
"zh-CN",
"it-IT",
"ja-JP"
],
"generatedCommandList": [],
"acceptedCommandList": [],
"attributeList": [0, 1, 65528, 65529, 65531, 65532, 65533],
"featureMap": 0,
"clusterRevision": 1,
"_type": "chip.clusters.Objects.LocalizationConfiguration"
},
"TimeFormatLocalization": {
"hourFormat": 0,
"activeCalendarType": 0,
"supportedCalendarTypes": [0, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 7],
"generatedCommandList": [],
"acceptedCommandList": [],
"attributeList": [0, 1, 2, 65528, 65529, 65531, 65532, 65533],
"featureMap": 0,
"clusterRevision": 1,
"_type": "chip.clusters.Objects.TimeFormatLocalization"
},
"GeneralCommissioning": {
"breadcrumb": 0,
"basicCommissioningInfo": {
"failSafeExpiryLengthSeconds": 60,
"_type": "chip.clusters.Objects.GeneralCommissioning.Structs.BasicCommissioningInfo"
},
"regulatoryConfig": 0,
"locationCapability": 0,
"supportsConcurrentConnection": true,
"generatedCommandList": [1, 3, 5],
"acceptedCommandList": [0, 2, 4],
"attributeList": [0, 1, 2, 3, 4, 65528, 65529, 65531, 65532, 65533],
"featureMap": 6,
"clusterRevision": 1,
"_type": "chip.clusters.Objects.GeneralCommissioning"
},
"NetworkCommissioning": {
"maxNetworks": 1,
"networks": [
{
"networkID": {
"_type": "bytes",
"value": "TGF6eUlvVA=="
},
"connected": true,
"_type": "chip.clusters.Objects.NetworkCommissioning.Structs.NetworkInfo"
}
],
"scanMaxTimeSeconds": 10,
"connectMaxTimeSeconds": 30,
"interfaceEnabled": true,
"lastNetworkingStatus": 0,
"lastNetworkID": {
"_type": "bytes",
"value": "TGF6eUlvVA=="
},
"lastConnectErrorValue": null,
"generatedCommandList": [1, 5, 7],
"acceptedCommandList": [0, 2, 4, 6, 8],
"attributeList": [
0, 1, 2, 3, 4, 5, 6, 7, 65528, 65529, 65531, 65532, 65533
],
"featureMap": 1,
"clusterRevision": 1,
"_type": "chip.clusters.Objects.NetworkCommissioning"
},
"DiagnosticLogs": {
"generatedCommandList": [1],
"acceptedCommandList": [0],
"attributeList": [65528, 65529, 65531, 65532, 65533],
"featureMap": 0,
"clusterRevision": 1,
"_type": "chip.clusters.Objects.DiagnosticLogs"
},
"GeneralDiagnostics": {
"networkInterfaces": [
{
"name": "WIFI_AP_DEF",
"isOperational": true,
"offPremiseServicesReachableIPv4": null,
"offPremiseServicesReachableIPv6": null,
"hardwareAddress": {
"_type": "bytes",
"value": "AAAAAAAA"
},
"IPv4Addresses": [],
"IPv6Addresses": [],
"type": 1,
"_type": "chip.clusters.Objects.GeneralDiagnostics.Structs.NetworkInterfaceType"
},
{
"name": "WIFI_STA_DEF",
"isOperational": true,
"offPremiseServicesReachableIPv4": null,
"offPremiseServicesReachableIPv6": null,
"hardwareAddress": {
"_type": "bytes",
"value": "hPcDJ8rI"
},
"IPv4Addresses": [],
"IPv6Addresses": [],
"type": 1,
"_type": "chip.clusters.Objects.GeneralDiagnostics.Structs.NetworkInterfaceType"
}
],
"rebootCount": 12,
"upTime": 458,
"totalOperationalHours": 0,
"bootReasons": 1,
"activeHardwareFaults": [],
"activeRadioFaults": [],
"activeNetworkFaults": [],
"testEventTriggersEnabled": false,
"generatedCommandList": [],
"acceptedCommandList": [0],
"attributeList": [
0, 1, 2, 3, 4, 5, 6, 7, 8, 65528, 65529, 65531, 65532, 65533
],
"featureMap": 0,
"clusterRevision": 1,
"_type": "chip.clusters.Objects.GeneralDiagnostics"
},
"SoftwareDiagnostics": {
"threadMetrics": [],
"currentHeapFree": 116140,
"currentHeapUsed": 138932,
"currentHeapHighWatermark": 153796,
"generatedCommandList": [],
"acceptedCommandList": [0],
"attributeList": [0, 1, 2, 3, 65528, 65529, 65531, 65532, 65533],
"featureMap": 0,
"clusterRevision": 1,
"_type": "chip.clusters.Objects.SoftwareDiagnostics"
},
"ThreadNetworkDiagnostics": {
"TLVValue": {
"0": {
"TLVValue": null,
"Reason": "InteractionModelError: Failure (0x1)"
},
"1": {
"TLVValue": null,
"Reason": "InteractionModelError: Failure (0x1)"
},
"2": {
"TLVValue": null,
"Reason": "InteractionModelError: Failure (0x1)"
},
"3": {
"TLVValue": null,
"Reason": "InteractionModelError: Failure (0x1)"
},
"4": {
"TLVValue": null,
"Reason": "InteractionModelError: Failure (0x1)"
},
"5": {
"TLVValue": null,
"Reason": "InteractionModelError: Failure (0x1)"
},
"6": {
"TLVValue": null,
"Reason": "InteractionModelError: Failure (0x1)"
},
"7": [],
"8": [],
"9": {
"TLVValue": null,
"Reason": "InteractionModelError: Failure (0x1)"
},
"10": {
"TLVValue": null,
"Reason": "InteractionModelError: Failure (0x1)"
},
"11": {
"TLVValue": null,
"Reason": "InteractionModelError: Failure (0x1)"
},
"12": {
"TLVValue": null,
"Reason": "InteractionModelError: Failure (0x1)"
},
"13": {
"TLVValue": null,
"Reason": "InteractionModelError: Failure (0x1)"
},
"14": {
"TLVValue": null,
"Reason": "InteractionModelError: Failure (0x1)"
},
"15": {
"TLVValue": null,
"Reason": "InteractionModelError: Failure (0x1)"
},
"16": {
"TLVValue": null,
"Reason": "InteractionModelError: Failure (0x1)"
},
"17": {
"TLVValue": null,
"Reason": "InteractionModelError: Failure (0x1)"
},
"18": {
"TLVValue": null,
"Reason": "InteractionModelError: Failure (0x1)"
},
"19": {
"TLVValue": null,
"Reason": "InteractionModelError: Failure (0x1)"
},
"20": {
"TLVValue": null,
"Reason": "InteractionModelError: Failure (0x1)"
},
"21": {
"TLVValue": null,
"Reason": "InteractionModelError: Failure (0x1)"
},
"22": {
"TLVValue": null,
"Reason": "InteractionModelError: Failure (0x1)"
},
"23": {
"TLVValue": null,
"Reason": "InteractionModelError: Failure (0x1)"
},
"24": {
"TLVValue": null,
"Reason": "InteractionModelError: Failure (0x1)"
},
"25": {
"TLVValue": null,
"Reason": "InteractionModelError: Failure (0x1)"
},
"26": {
"TLVValue": null,
"Reason": "InteractionModelError: Failure (0x1)"
},
"27": {
"TLVValue": null,
"Reason": "InteractionModelError: Failure (0x1)"
},
"28": {
"TLVValue": null,
"Reason": "InteractionModelError: Failure (0x1)"
},
"29": {
"TLVValue": null,
"Reason": "InteractionModelError: Failure (0x1)"
},
"30": {
"TLVValue": null,
"Reason": "InteractionModelError: Failure (0x1)"
},
"31": {
"TLVValue": null,
"Reason": "InteractionModelError: Failure (0x1)"
},
"32": {
"TLVValue": null,
"Reason": "InteractionModelError: Failure (0x1)"
},
"33": {
"TLVValue": null,
"Reason": "InteractionModelError: Failure (0x1)"
},
"34": {
"TLVValue": null,
"Reason": "InteractionModelError: Failure (0x1)"
},
"35": {
"TLVValue": null,
"Reason": "InteractionModelError: Failure (0x1)"
},
"36": {
"TLVValue": null,
"Reason": "InteractionModelError: Failure (0x1)"
},
"37": {
"TLVValue": null,
"Reason": "InteractionModelError: Failure (0x1)"
},
"38": {
"TLVValue": null,
"Reason": "InteractionModelError: Failure (0x1)"
},
"39": {
"TLVValue": null,
"Reason": "InteractionModelError: Failure (0x1)"
},
"40": {
"TLVValue": null,
"Reason": "InteractionModelError: Failure (0x1)"
},
"41": {
"TLVValue": null,
"Reason": "InteractionModelError: Failure (0x1)"
},
"42": {
"TLVValue": null,
"Reason": "InteractionModelError: Failure (0x1)"
},
"43": {
"TLVValue": null,
"Reason": "InteractionModelError: Failure (0x1)"
},
"44": {
"TLVValue": null,
"Reason": "InteractionModelError: Failure (0x1)"
},
"45": {
"TLVValue": null,
"Reason": "InteractionModelError: Failure (0x1)"
},
"46": {
"TLVValue": null,
"Reason": "InteractionModelError: Failure (0x1)"
},
"47": {
"TLVValue": null,
"Reason": "InteractionModelError: Failure (0x1)"
},
"48": {
"TLVValue": null,
"Reason": "InteractionModelError: Failure (0x1)"
},
"49": {
"TLVValue": null,
"Reason": "InteractionModelError: Failure (0x1)"
},
"50": {
"TLVValue": null,
"Reason": "InteractionModelError: Failure (0x1)"
},
"51": {
"TLVValue": null,
"Reason": "InteractionModelError: Failure (0x1)"
},
"52": {
"TLVValue": null,
"Reason": "InteractionModelError: Failure (0x1)"
},
"53": {
"TLVValue": null,
"Reason": "InteractionModelError: Failure (0x1)"
},
"54": {
"TLVValue": null,
"Reason": "InteractionModelError: Failure (0x1)"
},
"55": {
"TLVValue": null,
"Reason": "InteractionModelError: Failure (0x1)"
},
"56": {
"TLVValue": null,
"Reason": "InteractionModelError: Failure (0x1)"
},
"57": {
"TLVValue": null,
"Reason": "InteractionModelError: Failure (0x1)"
},
"58": {
"TLVValue": null,
"Reason": "InteractionModelError: Failure (0x1)"
},
"59": [],
"60": {
"TLVValue": null,
"Reason": "InteractionModelError: Failure (0x1)"
},
"61": [],
"62": [],
"65532": 15,
"65533": 1,
"65528": [],
"65529": [0],
"65531": [
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18,
19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35,
36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52,
53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 65528, 65529, 65531, 65532,
65533
]
},
"Reason": "Failed to decode field [].channel, expected type <class 'chip.tlv.uint'>, got <class 'chip.clusters.Attribute.ValueDecodeFailure'>"
},
"WiFiNetworkDiagnostics": {
"bssid": {
"_type": "bytes",
"value": "1iH5ZUbu"
},
"securityType": 4,
"wiFiVersion": 3,
"channelNumber": 1,
"rssi": -38,
"beaconLostCount": 0,
"beaconRxCount": 0,
"packetMulticastRxCount": 0,
"packetMulticastTxCount": 0,
"packetUnicastRxCount": 0,
"packetUnicastTxCount": 0,
"currentMaxRate": 0,
"overrunCount": 0,
"generatedCommandList": [],
"acceptedCommandList": [0],
"attributeList": [
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 65528, 65529, 65531, 65532,
65533
],
"featureMap": 3,
"clusterRevision": 1,
"_type": "chip.clusters.Objects.WiFiNetworkDiagnostics"
},
"EthernetNetworkDiagnostics": {
"PHYRate": null,
"fullDuplex": null,
"packetRxCount": 0,
"packetTxCount": 0,
"txErrCount": 0,
"collisionCount": 0,
"overrunCount": 0,
"carrierDetect": null,
"timeSinceReset": 0,
"generatedCommandList": [],
"acceptedCommandList": [0],
"attributeList": [
0, 1, 2, 3, 4, 5, 6, 7, 8, 65528, 65529, 65531, 65532, 65533
],
"featureMap": 3,
"clusterRevision": 1,
"_type": "chip.clusters.Objects.EthernetNetworkDiagnostics"
},
"Switch": {
"numberOfPositions": null,
"currentPosition": null,
"multiPressMax": null,
"generatedCommandList": [],
"acceptedCommandList": [],
"attributeList": [65528, 65529, 65531, 65532, 65533],
"featureMap": 0,
"clusterRevision": 1,
"_type": "chip.clusters.Objects.Switch"
},
"AdministratorCommissioning": {
"windowStatus": 0,
"adminFabricIndex": 0,
"adminVendorId": 0,
"generatedCommandList": [],
"acceptedCommandList": [0, 1, 2],
"attributeList": [0, 1, 2, 65528, 65529, 65531, 65532, 65533],
"featureMap": 0,
"clusterRevision": 1,
"_type": "chip.clusters.Objects.AdministratorCommissioning"
},
"OperationalCredentials": {
"NOCs": [
{
"noc": {
"_type": "bytes",
"value": "FTABAQEkAgE3AyQTARgmBIAigScmBYAlTTo3BiQVASUR8RAYJAcBJAgBMAlBBHQsjZ/8Hpm4iqznEv0dAO03bZx8LDgqpIOpBsHeysZu8KAmI0K+p6B8FuI1h3wld1V+tIj5OHVHtrigg6Ssl043CjUBKAEYJAIBNgMEAgQBGDAEFEWrZiyeoUgEIXz4c40+Nzq9cfxHMAUUSTs2LnMMrX7nj+dns0cSq3SmK3MYMAtAoFdxyvsbLm6VekNCQ6yqJOucAcRSVY3Si4ov1alKPK9CaIPl+u5dvBWNfyEPXSLsPmzyfd2njl8WRz8e7CBiSRg="
},
"icac": {
"_type": "bytes",
"value": "FTABAQAkAgE3AyQUABgmBIAigScmBYAlTTo3BiQTARgkBwEkCAEwCUEE09c6S9xVbf3/blpXSgRAZzKXx/4KQC274cEfa2tFjdVAJYJUvM/8PMurRHEroPpA3FXpJ8/hfabkNvHGi2l8tTcKNQEpARgkAmAwBBRJOzYucwytfueP52ezRxKrdKYrczAFFBf0ohq+KHQlEVBIMgEeZCBPR72hGDALQNwd63sOjWKYhjlvDJmcPtIzljSsXlQ10vFrB5j9V9CdiZHDfy537G39fo0RJmpU63EGXYEtXVrEfSMiafshKVcY"
},
"fabricIndex": 1,
"_type": "chip.clusters.Objects.OperationalCredentials.Structs.NOCStruct"
}
],
"fabrics": [
{
"rootPublicKey": {
"_type": "bytes",
"value": "BBGg+O3i3tDVYryXkUmEXk1fnSMHN06+poGIfZODdvbZW4JvxHnrQVAxvZWIE6poLa0sKA8X8A7jmJsVFMUqLFM="
},
"vendorId": 35328,
"fabricId": 1,
"nodeId": 4337,
"label": "",
"fabricIndex": 1,
"_type": "chip.clusters.Objects.OperationalCredentials.Structs.FabricDescriptor"
}
],
"supportedFabrics": 5,
"commissionedFabrics": 1,
"trustedRootCertificates": [
{
"_type": "bytes",
"value": "FTABAQAkAgE3AyQUABgmBIAigScmBYAlTTo3BiQUABgkBwEkCAEwCUEEEaD47eLe0NVivJeRSYReTV+dIwc3Tr6mgYh9k4N29tlbgm/EeetBUDG9lYgTqmgtrSwoDxfwDuOYmxUUxSosUzcKNQEpARgkAmAwBBQX9KIavih0JRFQSDIBHmQgT0e9oTAFFBf0ohq+KHQlEVBIMgEeZCBPR72hGDALQO3xFiF2cEXl+/kk0CQfedzHJxSJiziHEjWCMjIj7SVlDVx4CpvNYHnheq+9vJFgcL8JQhAEdz6p6C3INBDL7dsY"
}
],
"currentFabricIndex": 1,
"generatedCommandList": [1, 3, 5, 8],
"acceptedCommandList": [0, 2, 4, 6, 7, 9, 10, 11],
"attributeList": [0, 1, 2, 3, 4, 5, 65528, 65529, 65531, 65532, 65533],
"featureMap": 0,
"clusterRevision": 1,
"_type": "chip.clusters.Objects.OperationalCredentials"
},
"GroupKeyManagement": {
"groupKeyMap": [],
"groupTable": [],
"maxGroupsPerFabric": 3,
"maxGroupKeysPerFabric": 2,
"generatedCommandList": [2, 5],
"acceptedCommandList": [0, 1, 3, 4],
"attributeList": [0, 1, 2, 3, 65528, 65529, 65531, 65532, 65533],
"featureMap": 0,
"clusterRevision": 1,
"_type": "chip.clusters.Objects.GroupKeyManagement"
},
"FixedLabel": {
"labelList": [
{
"label": "room",
"value": "bedroom 2",
"_type": "chip.clusters.Objects.FixedLabel.Structs.LabelStruct"
},
{
"label": "orientation",
"value": "North",
"_type": "chip.clusters.Objects.FixedLabel.Structs.LabelStruct"
},
{
"label": "floor",
"value": "2",
"_type": "chip.clusters.Objects.FixedLabel.Structs.LabelStruct"
},
{
"label": "direction",
"value": "up",
"_type": "chip.clusters.Objects.FixedLabel.Structs.LabelStruct"
}
],
"generatedCommandList": [],
"acceptedCommandList": [],
"attributeList": [0, 65528, 65529, 65531, 65532, 65533],
"featureMap": 0,
"clusterRevision": 1,
"_type": "chip.clusters.Objects.FixedLabel"
},
"UserLabel": {
"labelList": [],
"generatedCommandList": [],
"acceptedCommandList": [],
"attributeList": [0, 65528, 65529, 65531, 65532, 65533],
"featureMap": 0,
"clusterRevision": 1,
"_type": "chip.clusters.Objects.UserLabel"
}
},
"1": {
"Identify": {
"identifyTime": 0,
"identifyType": 0,
"generatedCommandList": [],
"acceptedCommandList": [0, 64],
"attributeList": [0, 1, 65528, 65529, 65531, 65532, 65533],
"featureMap": 0,
"clusterRevision": 4,
"_type": "chip.clusters.Objects.Identify"
},
"Groups": {
"nameSupport": 128,
"generatedCommandList": [0, 1, 2, 3],
"acceptedCommandList": [0, 1, 2, 3, 4, 5],
"attributeList": [0, 65528, 65529, 65531, 65532, 65533],
"featureMap": 0,
"clusterRevision": 4,
"_type": "chip.clusters.Objects.Groups"
},
"OnOff": {
"onOff": false,
"globalSceneControl": true,
"onTime": 0,
"offWaitTime": 0,
"startUpOnOff": null,
"generatedCommandList": [],
"acceptedCommandList": [0, 1, 2, 64, 65, 66],
"attributeList": [
0, 16384, 16385, 16386, 16387, 65528, 65529, 65531, 65532, 65533
],
"featureMap": 1,
"clusterRevision": 4,
"_type": "chip.clusters.Objects.OnOff"
},
"LevelControl": {
"currentLevel": 254,
"remainingTime": 0,
"minLevel": 0,
"maxLevel": 254,
"currentFrequency": 0,
"minFrequency": 0,
"maxFrequency": 0,
"options": 0,
"onOffTransitionTime": 0,
"onLevel": null,
"onTransitionTime": 0,
"offTransitionTime": 0,
"defaultMoveRate": 50,
"startUpCurrentLevel": null,
"generatedCommandList": [],
"acceptedCommandList": [0, 1, 2, 3, 4, 5, 6, 7],
"attributeList": [
0, 1, 2, 3, 4, 5, 6, 15, 16, 17, 18, 19, 20, 16384, 65528, 65529,
65531, 65532, 65533
],
"featureMap": 3,
"clusterRevision": 5,
"_type": "chip.clusters.Objects.LevelControl"
},
"Descriptor": {
"deviceTypeList": [
{
"type": 257,
"revision": 1,
"_type": "chip.clusters.Objects.Descriptor.Structs.DeviceTypeStruct"
}
],
"serverList": [3, 4, 6, 8, 29, 768, 1030],
"clientList": [],
"partsList": [],
"generatedCommandList": [],
"acceptedCommandList": [],
"attributeList": [0, 1, 2, 3, 65528, 65529, 65531, 65532, 65533],
"featureMap": 0,
"clusterRevision": 1,
"_type": "chip.clusters.Objects.Descriptor"
},
"ColorControl": {
"currentHue": 0,
"currentSaturation": 0,
"remainingTime": 0,
"currentX": 24939,
"currentY": 24701,
"driftCompensation": null,
"compensationText": null,
"colorTemperatureMireds": 0,
"colorMode": 2,
"options": 0,
"numberOfPrimaries": 0,
"primary1X": null,
"primary1Y": null,
"primary1Intensity": null,
"primary2X": null,
"primary2Y": null,
"primary2Intensity": null,
"primary3X": null,
"primary3Y": null,
"primary3Intensity": null,
"primary4X": null,
"primary4Y": null,
"primary4Intensity": null,
"primary5X": null,
"primary5Y": null,
"primary5Intensity": null,
"primary6X": null,
"primary6Y": null,
"primary6Intensity": null,
"whitePointX": null,
"whitePointY": null,
"colorPointRX": null,
"colorPointRY": null,
"colorPointRIntensity": null,
"colorPointGX": null,
"colorPointGY": null,
"colorPointGIntensity": null,
"colorPointBX": null,
"colorPointBY": null,
"colorPointBIntensity": null,
"enhancedCurrentHue": 0,
"enhancedColorMode": 2,
"colorLoopActive": 0,
"colorLoopDirection": 0,
"colorLoopTime": 25,
"colorLoopStartEnhancedHue": 8960,
"colorLoopStoredEnhancedHue": 0,
"colorCapabilities": 0,
"colorTempPhysicalMinMireds": 0,
"colorTempPhysicalMaxMireds": 65279,
"coupleColorTempToLevelMinMireds": 0,
"startUpColorTemperatureMireds": 0,
"generatedCommandList": [],
"acceptedCommandList": [
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 64, 65, 66, 67, 68, 71, 75, 76
],
"attributeList": [
0, 1, 2, 3, 4, 7, 8, 15, 16, 16384, 16385, 16386, 16387, 16388, 16389,
16390, 16394, 16395, 16396, 16397, 16400, 65528, 65529, 65531, 65532,
65533
],
"featureMap": 31,
"clusterRevision": 5,
"_type": "chip.clusters.Objects.ColorControl"
},
"OccupancySensing": {
"occupancy": 0,
"occupancySensorType": 0,
"occupancySensorTypeBitmap": 1,
"pirOccupiedToUnoccupiedDelay": null,
"pirUnoccupiedToOccupiedDelay": null,
"pirUnoccupiedToOccupiedThreshold": null,
"ultrasonicOccupiedToUnoccupiedDelay": null,
"ultrasonicUnoccupiedToOccupiedDelay": null,
"ultrasonicUnoccupiedToOccupiedThreshold": null,
"physicalContactOccupiedToUnoccupiedDelay": null,
"physicalContactUnoccupiedToOccupiedDelay": null,
"physicalContactUnoccupiedToOccupiedThreshold": null,
"generatedCommandList": [],
"acceptedCommandList": [],
"attributeList": [0, 1, 2, 65528, 65529, 65531, 65532, 65533],
"featureMap": 0,
"clusterRevision": 3,
"_type": "chip.clusters.Objects.OccupancySensing"
}
}
},
"events": [
{
"Header": {
"EndpointId": 0,
"ClusterId": 40,
"EventId": 0,
"EventNumber": 262144,
"Priority": 2,
"Timestamp": 2019,
"TimestampType": 0
},
"Status": 0,
"Data": {
"softwareVersion": 1,
"_type": "chip.clusters.Objects.Basic.Events.StartUp"
}
},
{
"Header": {
"EndpointId": 0,
"ClusterId": 51,
"EventId": 3,
"EventNumber": 262145,
"Priority": 2,
"Timestamp": 2020,
"TimestampType": 0
},
"Status": 0,
"Data": {
"bootReason": 1,
"_type": "chip.clusters.Objects.GeneralDiagnostics.Events.BootReason"
}
},
{
"Header": {
"EndpointId": 0,
"ClusterId": 54,
"EventId": 2,
"EventNumber": 262146,
"Priority": 1,
"Timestamp": 2216,
"TimestampType": 0
},
"Status": 0,
"Data": {
"connectionStatus": 0,
"_type": "chip.clusters.Objects.WiFiNetworkDiagnostics.Events.ConnectionStatus"
}
}
],
"node_id": 4337
}

View File

@ -0,0 +1,633 @@
{
"node_id": 1,
"date_commissioned": "2022-11-29T21:23:48.485051",
"last_interview": "2022-11-29T21:23:48.485057",
"interview_version": 1,
"attributes": {
"0/40/0": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 0,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.DataModelRevision",
"attribute_name": "DataModelRevision",
"value": 1
},
"0/40/1": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 1,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.VendorName",
"attribute_name": "VendorName",
"value": "Nabu Casa"
},
"0/40/2": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 2,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.VendorID",
"attribute_name": "VendorID",
"value": 65521
},
"0/40/3": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 3,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.ProductName",
"attribute_name": "ProductName",
"value": "Mock OccupancySensor"
},
"0/40/4": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 4,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.ProductID",
"attribute_name": "ProductID",
"value": 32768
},
"0/40/5": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 5,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.NodeLabel",
"attribute_name": "NodeLabel",
"value": "Mock Occupancy Sensor"
},
"0/40/6": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 6,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.Location",
"attribute_name": "Location",
"value": "XX"
},
"0/40/7": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 7,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.HardwareVersion",
"attribute_name": "HardwareVersion",
"value": 0
},
"0/40/8": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 8,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.HardwareVersionString",
"attribute_name": "HardwareVersionString",
"value": "v1.0"
},
"0/40/9": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 9,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.SoftwareVersion",
"attribute_name": "SoftwareVersion",
"value": 1
},
"0/40/10": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 10,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.SoftwareVersionString",
"attribute_name": "SoftwareVersionString",
"value": "v1.0"
},
"0/40/11": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 11,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.ManufacturingDate",
"attribute_name": "ManufacturingDate",
"value": "20221206"
},
"0/40/12": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 12,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.PartNumber",
"attribute_name": "PartNumber",
"value": ""
},
"0/40/13": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 13,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.ProductURL",
"attribute_name": "ProductURL",
"value": ""
},
"0/40/14": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 14,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.ProductLabel",
"attribute_name": "ProductLabel",
"value": ""
},
"0/40/15": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 15,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.SerialNumber",
"attribute_name": "SerialNumber",
"value": "TEST_SN"
},
"0/40/16": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 16,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.LocalConfigDisabled",
"attribute_name": "LocalConfigDisabled",
"value": false
},
"0/40/17": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 17,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.Reachable",
"attribute_name": "Reachable",
"value": true
},
"0/40/18": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 18,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.UniqueID",
"attribute_name": "UniqueID",
"value": "mock-temperature-sensor"
},
"0/40/19": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 19,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.CapabilityMinima",
"attribute_name": "CapabilityMinima",
"value": {
"caseSessionsPerFabric": 3,
"subscriptionsPerFabric": 3
}
},
"0/40/65532": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 65532,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.FeatureMap",
"attribute_name": "FeatureMap",
"value": 0
},
"0/40/65533": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 65533,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.ClusterRevision",
"attribute_name": "ClusterRevision",
"value": 1
},
"0/40/65528": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 65528,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.GeneratedCommandList",
"attribute_name": "GeneratedCommandList",
"value": []
},
"0/40/65529": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 65529,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.AcceptedCommandList",
"attribute_name": "AcceptedCommandList",
"value": []
},
"0/40/65531": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 65531,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.AttributeList",
"attribute_name": "AttributeList",
"value": [
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
65528, 65529, 65531, 65532, 65533
]
},
"1/3/0": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 3,
"cluster_type": "chip.clusters.Objects.Identify",
"cluster_name": "Identify",
"attribute_id": 0,
"attribute_type": "chip.clusters.Objects.Identify.Attributes.IdentifyTime",
"attribute_name": "IdentifyTime",
"value": 0
},
"1/3/1": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 3,
"cluster_type": "chip.clusters.Objects.Identify",
"cluster_name": "Identify",
"attribute_id": 1,
"attribute_type": "chip.clusters.Objects.Identify.Attributes.IdentifyType",
"attribute_name": "IdentifyType",
"value": 2
},
"1/3/65532": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 3,
"cluster_type": "chip.clusters.Objects.Identify",
"cluster_name": "Identify",
"attribute_id": 65532,
"attribute_type": "chip.clusters.Objects.Identify.Attributes.FeatureMap",
"attribute_name": "FeatureMap",
"value": 0
},
"1/3/65533": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 3,
"cluster_type": "chip.clusters.Objects.Identify",
"cluster_name": "Identify",
"attribute_id": 65533,
"attribute_type": "chip.clusters.Objects.Identify.Attributes.ClusterRevision",
"attribute_name": "ClusterRevision",
"value": 4
},
"1/3/65528": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 3,
"cluster_type": "chip.clusters.Objects.Identify",
"cluster_name": "Identify",
"attribute_id": 65528,
"attribute_type": "chip.clusters.Objects.Identify.Attributes.GeneratedCommandList",
"attribute_name": "GeneratedCommandList",
"value": []
},
"1/3/65529": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 3,
"cluster_type": "chip.clusters.Objects.Identify",
"cluster_name": "Identify",
"attribute_id": 65529,
"attribute_type": "chip.clusters.Objects.Identify.Attributes.AcceptedCommandList",
"attribute_name": "AcceptedCommandList",
"value": [0, 64]
},
"1/3/65531": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 3,
"cluster_type": "chip.clusters.Objects.Identify",
"cluster_name": "Identify",
"attribute_id": 65531,
"attribute_type": "chip.clusters.Objects.Identify.Attributes.AttributeList",
"attribute_name": "AttributeList",
"value": [0, 1, 65528, 65529, 65531, 65532, 65533]
},
"1/29/0": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 29,
"cluster_type": "chip.clusters.Objects.Descriptor",
"cluster_name": "Descriptor",
"attribute_id": 0,
"attribute_type": "chip.clusters.Objects.Descriptor.Attributes.DeviceTypeList",
"attribute_name": "DeviceTypeList",
"value": [
{
"type": 263,
"revision": 1
}
]
},
"1/29/1": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 29,
"cluster_type": "chip.clusters.Objects.Descriptor",
"cluster_name": "Descriptor",
"attribute_id": 1,
"attribute_type": "chip.clusters.Objects.Descriptor.Attributes.ServerList",
"attribute_name": "ServerList",
"value": [
3, 4, 5, 6, 7, 8, 15, 29, 30, 37, 47, 59, 64, 65, 69, 80, 257, 258, 259,
512, 513, 514, 516, 768, 1024, 1026, 1027, 1028, 1029, 1030, 1283, 1284,
1285, 1286, 1287, 1288, 1289, 1290, 1291, 1292, 1293, 1294, 2820,
4294048773
]
},
"1/29/2": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 29,
"cluster_type": "chip.clusters.Objects.Descriptor",
"cluster_name": "Descriptor",
"attribute_id": 2,
"attribute_type": "chip.clusters.Objects.Descriptor.Attributes.ClientList",
"attribute_name": "ClientList",
"value": []
},
"1/29/3": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 29,
"cluster_type": "chip.clusters.Objects.Descriptor",
"cluster_name": "Descriptor",
"attribute_id": 3,
"attribute_type": "chip.clusters.Objects.Descriptor.Attributes.PartsList",
"attribute_name": "PartsList",
"value": []
},
"1/29/65532": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 29,
"cluster_type": "chip.clusters.Objects.Descriptor",
"cluster_name": "Descriptor",
"attribute_id": 65532,
"attribute_type": "chip.clusters.Objects.Descriptor.Attributes.FeatureMap",
"attribute_name": "FeatureMap",
"value": 0
},
"1/29/65533": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 29,
"cluster_type": "chip.clusters.Objects.Descriptor",
"cluster_name": "Descriptor",
"attribute_id": 65533,
"attribute_type": "chip.clusters.Objects.Descriptor.Attributes.ClusterRevision",
"attribute_name": "ClusterRevision",
"value": 1
},
"1/29/65528": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 29,
"cluster_type": "chip.clusters.Objects.Descriptor",
"cluster_name": "Descriptor",
"attribute_id": 65528,
"attribute_type": "chip.clusters.Objects.Descriptor.Attributes.GeneratedCommandList",
"attribute_name": "GeneratedCommandList",
"value": []
},
"1/29/65529": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 29,
"cluster_type": "chip.clusters.Objects.Descriptor",
"cluster_name": "Descriptor",
"attribute_id": 65529,
"attribute_type": "chip.clusters.Objects.Descriptor.Attributes.AcceptedCommandList",
"attribute_name": "AcceptedCommandList",
"value": []
},
"1/29/65531": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 29,
"cluster_type": "chip.clusters.Objects.Descriptor",
"cluster_name": "Descriptor",
"attribute_id": 65531,
"attribute_type": "chip.clusters.Objects.Descriptor.Attributes.AttributeList",
"attribute_name": "AttributeList",
"value": [0, 1, 2, 3, 65528, 65529, 65531, 65532, 65533]
},
"1/30/0": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 30,
"cluster_type": "chip.clusters.Objects.Binding",
"cluster_name": "Binding",
"attribute_id": 0,
"attribute_type": "chip.clusters.Objects.Binding.Attributes.Binding",
"attribute_name": "Binding",
"value": []
},
"1/30/65532": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 30,
"cluster_type": "chip.clusters.Objects.Binding",
"cluster_name": "Binding",
"attribute_id": 65532,
"attribute_type": "chip.clusters.Objects.Binding.Attributes.FeatureMap",
"attribute_name": "FeatureMap",
"value": 0
},
"1/30/65533": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 30,
"cluster_type": "chip.clusters.Objects.Binding",
"cluster_name": "Binding",
"attribute_id": 65533,
"attribute_type": "chip.clusters.Objects.Binding.Attributes.ClusterRevision",
"attribute_name": "ClusterRevision",
"value": 1
},
"1/30/65528": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 30,
"cluster_type": "chip.clusters.Objects.Binding",
"cluster_name": "Binding",
"attribute_id": 65528,
"attribute_type": "chip.clusters.Objects.Binding.Attributes.GeneratedCommandList",
"attribute_name": "GeneratedCommandList",
"value": []
},
"1/30/65529": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 30,
"cluster_type": "chip.clusters.Objects.Binding",
"cluster_name": "Binding",
"attribute_id": 65529,
"attribute_type": "chip.clusters.Objects.Binding.Attributes.AcceptedCommandList",
"attribute_name": "AcceptedCommandList",
"value": []
},
"1/30/65531": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 30,
"cluster_type": "chip.clusters.Objects.Binding",
"cluster_name": "Binding",
"attribute_id": 65531,
"attribute_type": "chip.clusters.Objects.Binding.Attributes.AttributeList",
"attribute_name": "AttributeList",
"value": [0, 65528, 65529, 65531, 65532, 65533]
},
"1/1030/0": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 1030,
"cluster_type": "chip.clusters.Objects.OccupancySensing",
"cluster_name": "OccupancySensing",
"attribute_id": 0,
"attribute_type": "chip.clusters.Objects.OccupancySensing.Attributes.Occupancy",
"attribute_name": "Occupancy",
"value": 1
},
"1/1030/1": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 1030,
"cluster_type": "chip.clusters.Objects.OccupancySensing",
"cluster_name": "OccupancySensing",
"attribute_id": 1,
"attribute_type": "chip.clusters.Objects.OccupancySensing.Attributes.OccupancySensorType",
"attribute_name": "OccupancySensorType",
"value": 0
},
"1/1030/2": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 1030,
"cluster_type": "chip.clusters.Objects.OccupancySensing",
"cluster_name": "OccupancySensing",
"attribute_id": 2,
"attribute_type": "chip.clusters.Objects.OccupancySensing.Attributes.OccupancySensorTypeBitmap",
"attribute_name": "OccupancySensorTypeBitmap",
"value": 1
},
"1/1030/65532": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 1030,
"cluster_type": "chip.clusters.Objects.OccupancySensing",
"cluster_name": "OccupancySensing",
"attribute_id": 65532,
"attribute_type": "chip.clusters.Objects.OccupancySensing.Attributes.FeatureMap",
"attribute_name": "FeatureMap",
"value": 0
},
"1/1030/65533": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 1030,
"cluster_type": "chip.clusters.Objects.OccupancySensing",
"cluster_name": "OccupancySensing",
"attribute_id": 65533,
"attribute_type": "chip.clusters.Objects.OccupancySensing.Attributes.ClusterRevision",
"attribute_name": "ClusterRevision",
"value": 3
},
"1/1030/65528": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 1030,
"cluster_type": "chip.clusters.Objects.OccupancySensing",
"cluster_name": "OccupancySensing",
"attribute_id": 65528,
"attribute_type": "chip.clusters.Objects.OccupancySensing.Attributes.GeneratedCommandList",
"attribute_name": "GeneratedCommandList",
"value": []
},
"1/1030/65529": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 1030,
"cluster_type": "chip.clusters.Objects.OccupancySensing",
"cluster_name": "OccupancySensing",
"attribute_id": 65529,
"attribute_type": "chip.clusters.Objects.OccupancySensing.Attributes.AcceptedCommandList",
"attribute_name": "AcceptedCommandList",
"value": []
},
"1/1030/65531": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 1030,
"cluster_type": "chip.clusters.Objects.OccupancySensing",
"cluster_name": "OccupancySensing",
"attribute_id": 65531,
"attribute_type": "chip.clusters.Objects.OccupancySensing.Attributes.AttributeList",
"attribute_name": "AttributeList",
"value": [0, 1, 2, 65528, 65529, 65531, 65532, 65533]
}
},
"endpoints": [0, 1],
"_type": "matter_server.common.models.node.MatterNode"
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,507 @@
{
"node_id": 1,
"date_commissioned": "2022-11-29T21:23:48.485051",
"last_interview": "2022-11-29T21:23:48.485057",
"interview_version": 1,
"attributes": {
"0/40/0": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 0,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.DataModelRevision",
"attribute_name": "DataModelRevision",
"value": 1
},
"0/40/1": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 1,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.VendorName",
"attribute_name": "VendorName",
"value": "Nabu Casa"
},
"0/40/2": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 2,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.VendorID",
"attribute_name": "VendorID",
"value": 65521
},
"0/40/3": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 3,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.ProductName",
"attribute_name": "ProductName",
"value": "Mock PressureSensor"
},
"0/40/4": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 4,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.ProductID",
"attribute_name": "ProductID",
"value": 32768
},
"0/40/5": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 5,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.NodeLabel",
"attribute_name": "NodeLabel",
"value": "Mock Pressure Sensor"
},
"0/40/6": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 6,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.Location",
"attribute_name": "Location",
"value": "XX"
},
"0/40/7": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 7,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.HardwareVersion",
"attribute_name": "HardwareVersion",
"value": 0
},
"0/40/8": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 8,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.HardwareVersionString",
"attribute_name": "HardwareVersionString",
"value": "v1.0"
},
"0/40/9": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 9,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.SoftwareVersion",
"attribute_name": "SoftwareVersion",
"value": 1
},
"0/40/10": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 10,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.SoftwareVersionString",
"attribute_name": "SoftwareVersionString",
"value": "v1.0"
},
"0/40/11": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 11,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.ManufacturingDate",
"attribute_name": "ManufacturingDate",
"value": "20221206"
},
"0/40/12": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 12,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.PartNumber",
"attribute_name": "PartNumber",
"value": ""
},
"0/40/13": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 13,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.ProductURL",
"attribute_name": "ProductURL",
"value": ""
},
"0/40/14": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 14,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.ProductLabel",
"attribute_name": "ProductLabel",
"value": ""
},
"0/40/15": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 15,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.SerialNumber",
"attribute_name": "SerialNumber",
"value": "TEST_SN"
},
"0/40/16": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 16,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.LocalConfigDisabled",
"attribute_name": "LocalConfigDisabled",
"value": false
},
"0/40/17": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 17,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.Reachable",
"attribute_name": "Reachable",
"value": true
},
"0/40/18": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 18,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.UniqueID",
"attribute_name": "UniqueID",
"value": "mock-pressure-sensor"
},
"0/40/19": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 19,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.CapabilityMinima",
"attribute_name": "CapabilityMinima",
"value": {
"caseSessionsPerFabric": 3,
"subscriptionsPerFabric": 3
}
},
"0/40/65532": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 65532,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.FeatureMap",
"attribute_name": "FeatureMap",
"value": 0
},
"0/40/65533": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 65533,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.ClusterRevision",
"attribute_name": "ClusterRevision",
"value": 1
},
"0/40/65528": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 65528,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.GeneratedCommandList",
"attribute_name": "GeneratedCommandList",
"value": []
},
"0/40/65529": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 65529,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.AcceptedCommandList",
"attribute_name": "AcceptedCommandList",
"value": []
},
"0/40/65531": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 65531,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.AttributeList",
"attribute_name": "AttributeList",
"value": [
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
65528, 65529, 65531, 65532, 65533
]
},
"1/3/65529": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 3,
"cluster_type": "chip.clusters.Objects.Identify",
"cluster_name": "Identify",
"attribute_id": 65529,
"attribute_type": "chip.clusters.Objects.Identify.Attributes.AcceptedCommandList",
"attribute_name": "AcceptedCommandList",
"value": [0, 64]
},
"1/3/65531": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 3,
"cluster_type": "chip.clusters.Objects.Identify",
"cluster_name": "Identify",
"attribute_id": 65531,
"attribute_type": "chip.clusters.Objects.Identify.Attributes.AttributeList",
"attribute_name": "AttributeList",
"value": [0, 1, 65528, 65529, 65531, 65532, 65533]
},
"1/29/0": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 29,
"cluster_type": "chip.clusters.Objects.Descriptor",
"cluster_name": "Descriptor",
"attribute_id": 0,
"attribute_type": "chip.clusters.Objects.Descriptor.Attributes.DeviceTypeList",
"attribute_name": "DeviceTypeList",
"value": [
{
"type": 773,
"revision": 1
}
]
},
"1/29/1": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 29,
"cluster_type": "chip.clusters.Objects.Descriptor",
"cluster_name": "Descriptor",
"attribute_id": 1,
"attribute_type": "chip.clusters.Objects.Descriptor.Attributes.ServerList",
"attribute_name": "ServerList",
"value": [6, 29, 57, 768, 8, 40]
},
"1/29/2": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 29,
"cluster_type": "chip.clusters.Objects.Descriptor",
"cluster_name": "Descriptor",
"attribute_id": 2,
"attribute_type": "chip.clusters.Objects.Descriptor.Attributes.ClientList",
"attribute_name": "ClientList",
"value": []
},
"1/29/3": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 29,
"cluster_type": "chip.clusters.Objects.Descriptor",
"cluster_name": "Descriptor",
"attribute_id": 3,
"attribute_type": "chip.clusters.Objects.Descriptor.Attributes.PartsList",
"attribute_name": "PartsList",
"value": [9, 10]
},
"1/29/65532": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 29,
"cluster_type": "chip.clusters.Objects.Descriptor",
"cluster_name": "Descriptor",
"attribute_id": 65532,
"attribute_type": "chip.clusters.Objects.Descriptor.Attributes.FeatureMap",
"attribute_name": "FeatureMap",
"value": null
},
"1/29/65533": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 29,
"cluster_type": "chip.clusters.Objects.Descriptor",
"cluster_name": "Descriptor",
"attribute_id": 65533,
"attribute_type": "chip.clusters.Objects.Descriptor.Attributes.ClusterRevision",
"attribute_name": "ClusterRevision",
"value": 1
},
"1/29/65528": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 29,
"cluster_type": "chip.clusters.Objects.Descriptor",
"cluster_name": "Descriptor",
"attribute_id": 65528,
"attribute_type": "chip.clusters.Objects.Descriptor.Attributes.GeneratedCommandList",
"attribute_name": "GeneratedCommandList",
"value": []
},
"1/29/65529": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 29,
"cluster_type": "chip.clusters.Objects.Descriptor",
"cluster_name": "Descriptor",
"attribute_id": 65529,
"attribute_type": "chip.clusters.Objects.Descriptor.Attributes.AcceptedCommandList",
"attribute_name": "AcceptedCommandList",
"value": []
},
"1/29/65531": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 29,
"cluster_type": "chip.clusters.Objects.Descriptor",
"cluster_name": "Descriptor",
"attribute_id": 65531,
"attribute_type": "chip.clusters.Objects.Descriptor.Attributes.AttributeList",
"attribute_name": "AttributeList",
"value": [0, 1, 2, 3, 65528, 65529, 65531, 65532, 65533]
},
"1/1027/0": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 1027,
"cluster_type": "chip.clusters.Objects.PressureMeasurement",
"cluster_name": "PressureMeasurement",
"attribute_id": 0,
"attribute_type": "chip.clusters.Objects.PressureMeasurement.Attributes.MeasuredValue",
"attribute_name": "MeasuredValue",
"value": 0
},
"1/1027/1": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 1027,
"cluster_type": "chip.clusters.Objects.PressureMeasurement",
"cluster_name": "PressureMeasurement",
"attribute_id": 1,
"attribute_type": "chip.clusters.Objects.PressureMeasurement.Attributes.MinMeasuredValue",
"attribute_name": "MinMeasuredValue",
"value": 0
},
"1/1027/2": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 1027,
"cluster_type": "chip.clusters.Objects.PressureMeasurement",
"cluster_name": "PressureMeasurement",
"attribute_id": 2,
"attribute_type": "chip.clusters.Objects.PressureMeasurement.Attributes.MaxMeasuredValue",
"attribute_name": "MaxMeasuredValue",
"value": 0
},
"1/1027/65532": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 1027,
"cluster_type": "chip.clusters.Objects.PressureMeasurement",
"cluster_name": "PressureMeasurement",
"attribute_id": 65532,
"attribute_type": "chip.clusters.Objects.PressureMeasurement.Attributes.FeatureMap",
"attribute_name": "FeatureMap",
"value": 0
},
"1/1027/65533": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 1027,
"cluster_type": "chip.clusters.Objects.PressureMeasurement",
"cluster_name": "PressureMeasurement",
"attribute_id": 65533,
"attribute_type": "chip.clusters.Objects.PressureMeasurement.Attributes.ClusterRevision",
"attribute_name": "ClusterRevision",
"value": 3
},
"1/1027/65528": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 1027,
"cluster_type": "chip.clusters.Objects.PressureMeasurement",
"cluster_name": "PressureMeasurement",
"attribute_id": 65528,
"attribute_type": "chip.clusters.Objects.PressureMeasurement.Attributes.GeneratedCommandList",
"attribute_name": "GeneratedCommandList",
"value": []
},
"1/1027/65529": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 1027,
"cluster_type": "chip.clusters.Objects.PressureMeasurement",
"cluster_name": "PressureMeasurement",
"attribute_id": 65529,
"attribute_type": "chip.clusters.Objects.PressureMeasurement.Attributes.AcceptedCommandList",
"attribute_name": "AcceptedCommandList",
"value": []
},
"1/1027/65531": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 1027,
"cluster_type": "chip.clusters.Objects.PressureMeasurement",
"cluster_name": "PressureMeasurement",
"attribute_id": 65531,
"attribute_type": "chip.clusters.Objects.PressureMeasurement.Attributes.AttributeList",
"attribute_name": "AttributeList",
"value": [0, 1, 2, 65528, 65529, 65531, 65532, 65533]
}
},
"endpoints": [0, 1],
"_type": "matter_server.common.models.node.MatterNode"
}

View File

@ -0,0 +1,574 @@
{
"node_id": 1,
"date_commissioned": "2022-11-29T21:23:48.485051",
"last_interview": "2022-11-29T21:23:48.485057",
"interview_version": 1,
"attributes": {
"0/40/0": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 0,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.DataModelRevision",
"attribute_name": "DataModelRevision",
"value": 1
},
"0/40/1": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 1,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.VendorName",
"attribute_name": "VendorName",
"value": "Nabu Casa"
},
"0/40/2": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 2,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.VendorID",
"attribute_name": "VendorID",
"value": 65521
},
"0/40/3": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 3,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.ProductName",
"attribute_name": "ProductName",
"value": "Mock PressureSensor"
},
"0/40/4": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 4,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.ProductID",
"attribute_name": "ProductID",
"value": 32768
},
"0/40/5": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 5,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.NodeLabel",
"attribute_name": "NodeLabel",
"value": "Mock Temperature Sensor"
},
"0/40/6": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 6,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.Location",
"attribute_name": "Location",
"value": "XX"
},
"0/40/7": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 7,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.HardwareVersion",
"attribute_name": "HardwareVersion",
"value": 0
},
"0/40/8": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 8,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.HardwareVersionString",
"attribute_name": "HardwareVersionString",
"value": "v1.0"
},
"0/40/9": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 9,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.SoftwareVersion",
"attribute_name": "SoftwareVersion",
"value": 1
},
"0/40/10": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 10,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.SoftwareVersionString",
"attribute_name": "SoftwareVersionString",
"value": "v1.0"
},
"0/40/11": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 11,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.ManufacturingDate",
"attribute_name": "ManufacturingDate",
"value": "20221206"
},
"0/40/12": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 12,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.PartNumber",
"attribute_name": "PartNumber",
"value": ""
},
"0/40/13": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 13,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.ProductURL",
"attribute_name": "ProductURL",
"value": ""
},
"0/40/14": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 14,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.ProductLabel",
"attribute_name": "ProductLabel",
"value": ""
},
"0/40/15": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 15,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.SerialNumber",
"attribute_name": "SerialNumber",
"value": "TEST_SN"
},
"0/40/16": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 16,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.LocalConfigDisabled",
"attribute_name": "LocalConfigDisabled",
"value": false
},
"0/40/17": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 17,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.Reachable",
"attribute_name": "Reachable",
"value": true
},
"0/40/18": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 18,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.UniqueID",
"attribute_name": "UniqueID",
"value": "mock-temperature-sensor"
},
"0/40/19": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 19,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.CapabilityMinima",
"attribute_name": "CapabilityMinima",
"value": {
"caseSessionsPerFabric": 3,
"subscriptionsPerFabric": 3
}
},
"0/40/65532": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 65532,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.FeatureMap",
"attribute_name": "FeatureMap",
"value": 0
},
"0/40/65533": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 65533,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.ClusterRevision",
"attribute_name": "ClusterRevision",
"value": 1
},
"0/40/65528": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 65528,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.GeneratedCommandList",
"attribute_name": "GeneratedCommandList",
"value": []
},
"0/40/65529": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 65529,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.AcceptedCommandList",
"attribute_name": "AcceptedCommandList",
"value": []
},
"0/40/65531": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 40,
"cluster_type": "chip.clusters.Objects.Basic",
"cluster_name": "Basic",
"attribute_id": 65531,
"attribute_type": "chip.clusters.Objects.Basic.Attributes.AttributeList",
"attribute_name": "AttributeList",
"value": [
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
65528, 65529, 65531, 65532, 65533
]
},
"0/3/0": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 3,
"cluster_type": "chip.clusters.Objects.Identify",
"cluster_name": "Identify",
"attribute_id": 0,
"attribute_type": "chip.clusters.Objects.Identify.Attributes.IdentifyTime",
"attribute_name": "IdentifyTime",
"value": 0
},
"0/3/1": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 3,
"cluster_type": "chip.clusters.Objects.Identify",
"cluster_name": "Identify",
"attribute_id": 1,
"attribute_type": "chip.clusters.Objects.Identify.Attributes.IdentifyType",
"attribute_name": "IdentifyType",
"value": 2
},
"0/3/65532": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 3,
"cluster_type": "chip.clusters.Objects.Identify",
"cluster_name": "Identify",
"attribute_id": 65532,
"attribute_type": "chip.clusters.Objects.Identify.Attributes.FeatureMap",
"attribute_name": "FeatureMap",
"value": 0
},
"0/3/65533": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 3,
"cluster_type": "chip.clusters.Objects.Identify",
"cluster_name": "Identify",
"attribute_id": 65533,
"attribute_type": "chip.clusters.Objects.Identify.Attributes.ClusterRevision",
"attribute_name": "ClusterRevision",
"value": 4
},
"0/3/65528": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 3,
"cluster_type": "chip.clusters.Objects.Identify",
"cluster_name": "Identify",
"attribute_id": 65528,
"attribute_type": "chip.clusters.Objects.Identify.Attributes.GeneratedCommandList",
"attribute_name": "GeneratedCommandList",
"value": []
},
"1/3/65529": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 3,
"cluster_type": "chip.clusters.Objects.Identify",
"cluster_name": "Identify",
"attribute_id": 65529,
"attribute_type": "chip.clusters.Objects.Identify.Attributes.AcceptedCommandList",
"attribute_name": "AcceptedCommandList",
"value": [0, 64]
},
"1/3/65531": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 3,
"cluster_type": "chip.clusters.Objects.Identify",
"cluster_name": "Identify",
"attribute_id": 65531,
"attribute_type": "chip.clusters.Objects.Identify.Attributes.AttributeList",
"attribute_name": "AttributeList",
"value": [0, 1, 65528, 65529, 65531, 65532, 65533]
},
"1/29/0": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 29,
"cluster_type": "chip.clusters.Objects.Descriptor",
"cluster_name": "Descriptor",
"attribute_id": 0,
"attribute_type": "chip.clusters.Objects.Descriptor.Attributes.DeviceTypeList",
"attribute_name": "DeviceTypeList",
"value": [
{
"type": 770,
"revision": 1
}
]
},
"1/29/1": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 29,
"cluster_type": "chip.clusters.Objects.Descriptor",
"cluster_name": "Descriptor",
"attribute_id": 1,
"attribute_type": "chip.clusters.Objects.Descriptor.Attributes.ServerList",
"attribute_name": "ServerList",
"value": [6, 29, 57, 768, 8, 40]
},
"1/29/2": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 29,
"cluster_type": "chip.clusters.Objects.Descriptor",
"cluster_name": "Descriptor",
"attribute_id": 2,
"attribute_type": "chip.clusters.Objects.Descriptor.Attributes.ClientList",
"attribute_name": "ClientList",
"value": []
},
"1/29/3": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 29,
"cluster_type": "chip.clusters.Objects.Descriptor",
"cluster_name": "Descriptor",
"attribute_id": 3,
"attribute_type": "chip.clusters.Objects.Descriptor.Attributes.PartsList",
"attribute_name": "PartsList",
"value": [9, 10]
},
"1/29/65532": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 29,
"cluster_type": "chip.clusters.Objects.Descriptor",
"cluster_name": "Descriptor",
"attribute_id": 65532,
"attribute_type": "chip.clusters.Objects.Descriptor.Attributes.FeatureMap",
"attribute_name": "FeatureMap",
"value": null
},
"1/29/65533": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 29,
"cluster_type": "chip.clusters.Objects.Descriptor",
"cluster_name": "Descriptor",
"attribute_id": 65533,
"attribute_type": "chip.clusters.Objects.Descriptor.Attributes.ClusterRevision",
"attribute_name": "ClusterRevision",
"value": 1
},
"1/29/65528": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 29,
"cluster_type": "chip.clusters.Objects.Descriptor",
"cluster_name": "Descriptor",
"attribute_id": 65528,
"attribute_type": "chip.clusters.Objects.Descriptor.Attributes.GeneratedCommandList",
"attribute_name": "GeneratedCommandList",
"value": []
},
"1/29/65529": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 29,
"cluster_type": "chip.clusters.Objects.Descriptor",
"cluster_name": "Descriptor",
"attribute_id": 65529,
"attribute_type": "chip.clusters.Objects.Descriptor.Attributes.AcceptedCommandList",
"attribute_name": "AcceptedCommandList",
"value": []
},
"1/29/65531": {
"node_id": 1,
"endpoint": 0,
"cluster_id": 29,
"cluster_type": "chip.clusters.Objects.Descriptor",
"cluster_name": "Descriptor",
"attribute_id": 65531,
"attribute_type": "chip.clusters.Objects.Descriptor.Attributes.AttributeList",
"attribute_name": "AttributeList",
"value": [0, 1, 2, 3, 65528, 65529, 65531, 65532, 65533]
},
"1/1026/0": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 1026,
"cluster_type": "chip.clusters.Objects.TemperatureMeasurement",
"cluster_name": "TemperatureMeasurement",
"attribute_id": 0,
"attribute_type": "chip.clusters.Objects.TemperatureMeasurement.Attributes.MeasuredValue",
"attribute_name": "MeasuredValue",
"value": 2100
},
"1/1026/1": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 1026,
"cluster_type": "chip.clusters.Objects.TemperatureMeasurement",
"cluster_name": "TemperatureMeasurement",
"attribute_id": 1,
"attribute_type": "chip.clusters.Objects.TemperatureMeasurement.Attributes.MinMeasuredValue",
"attribute_name": "MinMeasuredValue",
"value": null
},
"1/1026/2": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 1026,
"cluster_type": "chip.clusters.Objects.TemperatureMeasurement",
"cluster_name": "TemperatureMeasurement",
"attribute_id": 2,
"attribute_type": "chip.clusters.Objects.TemperatureMeasurement.Attributes.MaxMeasuredValue",
"attribute_name": "MaxMeasuredValue",
"value": null
},
"1/1026/3": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 1026,
"cluster_type": "chip.clusters.Objects.TemperatureMeasurement",
"cluster_name": "TemperatureMeasurement",
"attribute_id": 3,
"attribute_type": "chip.clusters.Objects.TemperatureMeasurement.Attributes.Tolerance",
"attribute_name": "Tolerance",
"value": 0
},
"1/1026/65532": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 1026,
"cluster_type": "chip.clusters.Objects.TemperatureMeasurement",
"cluster_name": "TemperatureMeasurement",
"attribute_id": 65532,
"attribute_type": "chip.clusters.Objects.TemperatureMeasurement.Attributes.FeatureMap",
"attribute_name": "FeatureMap",
"value": 0
},
"1/1026/65533": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 1026,
"cluster_type": "chip.clusters.Objects.TemperatureMeasurement",
"cluster_name": "TemperatureMeasurement",
"attribute_id": 65533,
"attribute_type": "chip.clusters.Objects.TemperatureMeasurement.Attributes.ClusterRevision",
"attribute_name": "ClusterRevision",
"value": 4
},
"1/1026/65528": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 1026,
"cluster_type": "chip.clusters.Objects.TemperatureMeasurement",
"cluster_name": "TemperatureMeasurement",
"attribute_id": 65528,
"attribute_type": "chip.clusters.Objects.TemperatureMeasurement.Attributes.GeneratedCommandList",
"attribute_name": "GeneratedCommandList",
"value": []
},
"1/1026/65529": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 1026,
"cluster_type": "chip.clusters.Objects.TemperatureMeasurement",
"cluster_name": "TemperatureMeasurement",
"attribute_id": 65529,
"attribute_type": "chip.clusters.Objects.TemperatureMeasurement.Attributes.AcceptedCommandList",
"attribute_name": "AcceptedCommandList",
"value": []
},
"1/1026/65531": {
"node_id": 1,
"endpoint": 1,
"cluster_id": 1026,
"cluster_type": "chip.clusters.Objects.TemperatureMeasurement",
"cluster_name": "TemperatureMeasurement",
"attribute_id": 65531,
"attribute_type": "chip.clusters.Objects.TemperatureMeasurement.Attributes.AttributeList",
"attribute_name": "AttributeList",
"value": [0, 1, 2, 3, 65528, 65529, 65531, 65532, 65533]
}
},
"endpoints": [0, 1],
"_type": "matter_server.common.models.node.MatterNode"
}

View File

@ -1,5 +1,5 @@
"""Test Matter lights."""
from typing import Any
from unittest.mock import MagicMock, call
from chip.clusters import Objects as clusters
from matter_server.common.models.node import MatterNode
@ -7,76 +7,100 @@ import pytest
from homeassistant.core import HomeAssistant
from .common import setup_integration_with_node_fixture
# TEMP: Tests need to be fixed
pytestmark = pytest.mark.skip("all tests still WIP")
from .common import (
set_node_attribute,
setup_integration_with_node_fixture,
trigger_subscription_callback,
)
@pytest.fixture(name="light_node")
async def light_node_fixture(
hass: HomeAssistant, hass_storage: dict[str, Any]
hass: HomeAssistant, matter_client: MagicMock
) -> MatterNode:
"""Fixture for a light node."""
return await setup_integration_with_node_fixture(
hass, hass_storage, "lighting-example-app"
hass, "dimmable-light", matter_client
)
async def test_turn_on(hass: HomeAssistant, light_node: MatterNode) -> None:
async def test_turn_on(
hass: HomeAssistant,
matter_client: MagicMock,
light_node: MatterNode,
) -> None:
"""Test turning on a light."""
light_node.matter.client.mock_command(clusters.OnOff.Commands.On, None)
state = hass.states.get("light.mock_dimmable_light")
assert state
assert state.state == "on"
set_node_attribute(light_node, 1, 6, 0, False)
await trigger_subscription_callback(hass, matter_client)
state = hass.states.get("light.mock_dimmable_light")
assert state
assert state.state == "off"
await hass.services.async_call(
"light",
"turn_on",
{
"entity_id": "light.my_cool_light",
"entity_id": "light.mock_dimmable_light",
},
blocking=True,
)
assert len(light_node.matter.client.mock_sent_commands) == 1
args = light_node.matter.client.mock_sent_commands[0]
assert args["nodeid"] == light_node.node_id
assert args["endpoint"] == 1
light_node.matter.client.mock_command(
clusters.LevelControl.Commands.MoveToLevelWithOnOff, None
assert matter_client.send_device_command.call_count == 1
assert matter_client.send_device_command.call_args == call(
node_id=light_node.node_id,
endpoint=1,
command=clusters.OnOff.Commands.On(),
)
matter_client.send_device_command.reset_mock()
await hass.services.async_call(
"light",
"turn_on",
{
"entity_id": "light.my_cool_light",
"entity_id": "light.mock_dimmable_light",
"brightness": 128,
},
blocking=True,
)
assert len(light_node.matter.client.mock_sent_commands) == 2
args = light_node.matter.client.mock_sent_commands[1]
assert args["nodeid"] == light_node.node_id
assert args["endpoint"] == 1
assert args["payload"].level == 127
assert args["payload"].transitionTime == 0
assert matter_client.send_device_command.call_count == 1
assert matter_client.send_device_command.call_args == call(
node_id=light_node.node_id,
endpoint=1,
command=clusters.LevelControl.Commands.MoveToLevelWithOnOff(
level=128,
transitionTime=0,
),
)
async def test_turn_off(hass: HomeAssistant, light_node: MatterNode) -> None:
async def test_turn_off(
hass: HomeAssistant,
matter_client: MagicMock,
light_node: MatterNode,
) -> None:
"""Test turning off a light."""
light_node.matter.client.mock_command(clusters.OnOff.Commands.Off, None)
state = hass.states.get("light.mock_dimmable_light")
assert state
assert state.state == "on"
await hass.services.async_call(
"light",
"turn_off",
{
"entity_id": "light.my_cool_light",
"entity_id": "light.mock_dimmable_light",
},
blocking=True,
)
assert len(light_node.matter.client.mock_sent_commands) == 1
args = light_node.matter.client.mock_sent_commands[0]
assert args["nodeid"] == light_node.node_id
assert args["endpoint"] == 1
assert matter_client.send_device_command.call_count == 1
assert matter_client.send_device_command.call_args == call(
node_id=light_node.node_id,
endpoint=1,
command=clusters.OnOff.Commands.Off(),
)