From 1d206963f7323dafc9b4fc31a866672ce21cae5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20BOU=C3=89?= Date: Wed, 18 Sep 2024 11:52:41 +0200 Subject: [PATCH 001/400] MotionSensitivity attribute within the Eve Cluster (#887) --- matter_server/common/custom_clusters.py | 29 +++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/matter_server/common/custom_clusters.py b/matter_server/common/custom_clusters.py index b5e8d59b..74fa24ff 100644 --- a/matter_server/common/custom_clusters.py +++ b/matter_server/common/custom_clusters.py @@ -93,6 +93,9 @@ def descriptor(cls) -> ClusterObjectDescriptor: ClusterObjectFieldDescriptor( Label="valvePosition", Tag=0x130A0018, Type=int ), + ClusterObjectFieldDescriptor( + Label="motionSensitivity", Tag=0x130A000D, Type=int + ), ] ) @@ -105,6 +108,7 @@ def descriptor(cls) -> ClusterObjectDescriptor: altitude: float32 | None = None pressure: float32 | None = None valvePosition: int | None = None + motionSensitivity: int | None = None class Attributes: """Attributes for the Eve Cluster.""" @@ -314,6 +318,31 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: int = 0 + @dataclass + class MotionSensitivity( + ClusterAttributeDescriptor, CustomClusterAttributeMixin + ): + """MotionSensitivity Attribute within the Eve Cluster.""" + + should_poll = False + + @ChipUtility.classproperty + def cluster_id(cls) -> int: + """Return cluster id.""" + return 0x130AFC01 + + @ChipUtility.classproperty + def attribute_id(cls) -> int: + """Return attribute id.""" + return 0x130A000D + + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + """Return attribute type.""" + return ClusterObjectFieldDescriptor(Type=int) + + value: int = 0 + @dataclass class NeoCluster(Cluster, CustomClusterMixin): From 0376098ff2d9032688079748f2324b2e0344fcc8 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Wed, 18 Sep 2024 11:52:53 +0200 Subject: [PATCH 002/400] Update to Matter SDK wheels 2024.9.0 (#890) --- matter_server/server/sdk.py | 10 ++++++---- pyproject.toml | 4 ++-- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/matter_server/server/sdk.py b/matter_server/server/sdk.py index 3485c371..3add3f83 100644 --- a/matter_server/server/sdk.py +++ b/matter_server/server/sdk.py @@ -338,15 +338,17 @@ async def read( allowPASE=False, timeoutMs=None, ) + transaction = Attribute.AsyncReadTransaction( + future, self.server.loop, self._chip_controller, True + ) Attribute.Read( - future=future, - eventLoop=self.server.loop, + transaction=transaction, device=device.deviceProxy, - devCtrl=self._chip_controller, attributes=attributes, fabricFiltered=fabric_filtered, ).raise_on_error() - return await future + await future + return transaction.GetReadResponse() async def write_attribute( self, diff --git a/pyproject.toml b/pyproject.toml index b79a65ed..faad52ff 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -20,7 +20,7 @@ dependencies = [ "async-timeout", "coloredlogs", "orjson", - "home-assistant-chip-clusters==2024.7.1", + "home-assistant-chip-clusters==2024.9.0", ] description = "Python Matter WebSocket Server" license = {text = "Apache-2.0"} @@ -39,7 +39,7 @@ server = [ "cryptography==43.0.1", "orjson==3.10.7", "zeroconf==0.134.0", - "home-assistant-chip-core==2024.7.1", + "home-assistant-chip-core==2024.9.0", ] test = [ "aioresponses==0.7.6", From 832819095dd416f3b35cbc87ba6d8d464fabfb7d Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Thu, 19 Sep 2024 10:16:21 +0200 Subject: [PATCH 003/400] Change subscription floor to 1 second to prevent flooding (#891) --- matter_server/server/device_controller.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/matter_server/server/device_controller.py b/matter_server/server/device_controller.py index 54bf15b4..72a378de 100644 --- a/matter_server/server/device_controller.py +++ b/matter_server/server/device_controller.py @@ -78,6 +78,7 @@ DATA_KEY_LAST_NODE_ID = "last_node_id" LOGGER = logging.getLogger(__name__) +NODE_SUBSCRIPTION_FLOOR = 1 NODE_SUBSCRIPTION_CEILING_WIFI = 60 NODE_SUBSCRIPTION_CEILING_THREAD = 60 NODE_SUBSCRIPTION_CEILING_BATTERY_POWERED = 600 @@ -1221,7 +1222,6 @@ def resubscription_succeeded( self.server.signal_event(EventType.NODE_UPDATED, node) node_logger.info("Setting up attributes and events subscription.") - interval_floor = 0 # determine subscription ceiling based on routing role # Endpoint 0, ThreadNetworkDiagnostics Cluster, routingRole attribute # for WiFi devices, this cluster doesn't exist. @@ -1244,7 +1244,7 @@ def resubscription_succeeded( [()], events=[("*", 1)], return_cluster_objects=False, - report_interval=(interval_floor, interval_ceiling), + report_interval=(NODE_SUBSCRIPTION_FLOOR, interval_ceiling), auto_resubscribe=True, ) ) From ed4d17f1a4bee6fbe4a70f97223842385f2f0126 Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Fri, 20 Sep 2024 11:23:34 +0200 Subject: [PATCH 004/400] Use interval floor of 0 for ICD devices (#892) --- matter_server/server/device_controller.py | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/matter_server/server/device_controller.py b/matter_server/server/device_controller.py index 72a378de..e96b537d 100644 --- a/matter_server/server/device_controller.py +++ b/matter_server/server/device_controller.py @@ -78,7 +78,8 @@ DATA_KEY_LAST_NODE_ID = "last_node_id" LOGGER = logging.getLogger(__name__) -NODE_SUBSCRIPTION_FLOOR = 1 +NODE_SUBSCRIPTION_FLOOR_DEFAULT = 1 +NODE_SUBSCRIPTION_FLOOR_ICD = 1 NODE_SUBSCRIPTION_CEILING_WIFI = 60 NODE_SUBSCRIPTION_CEILING_THREAD = 60 NODE_SUBSCRIPTION_CEILING_BATTERY_POWERED = 600 @@ -117,6 +118,9 @@ 0, Clusters.BasicInformation.Attributes.SoftwareVersionString ) ) +ICD_ATTR_LIST_ATTRIBUTE_PATH = create_attribute_path_from_attribute( + 0, Clusters.IcdManagement.Attributes.AttributeList +) # pylint: disable=too-many-lines,too-many-instance-attributes,too-many-public-methods @@ -1236,6 +1240,13 @@ def resubscription_succeeded( interval_ceiling = NODE_SUBSCRIPTION_CEILING_BATTERY_POWERED else: interval_ceiling = NODE_SUBSCRIPTION_CEILING_THREAD + if node.attributes.get(ICD_ATTR_LIST_ATTRIBUTE_PATH) is not None: + # for ICD devices, the interval floor must be 0 according to the spec, + # to prevent additional battery drainage. See Matter core spec, chapter 8.5.2.2. + # TODO: revisit this after Matter 1.4 release (as that mighht change this again). + interval_floor = NODE_SUBSCRIPTION_FLOOR_ICD + else: + interval_floor = NODE_SUBSCRIPTION_FLOOR_DEFAULT self._resubscription_attempt[node_id] = 0 # set-up the actual subscription sub: Attribute.SubscriptionTransaction = ( @@ -1244,7 +1255,7 @@ def resubscription_succeeded( [()], events=[("*", 1)], return_cluster_objects=False, - report_interval=(NODE_SUBSCRIPTION_FLOOR, interval_ceiling), + report_interval=(interval_floor, interval_ceiling), auto_resubscribe=True, ) ) From 27ca3f563cdc6e5edc872206b09a3d851793f8e4 Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Mon, 23 Sep 2024 11:54:28 +0200 Subject: [PATCH 005/400] Prevent Eve devices with newer firmware to be polled (#893) --- matter_server/common/custom_clusters.py | 56 ++++++++++++++++++------- 1 file changed, 40 insertions(+), 16 deletions(-) diff --git a/matter_server/common/custom_clusters.py b/matter_server/common/custom_clusters.py index 74fa24ff..a49c51eb 100644 --- a/matter_server/common/custom_clusters.py +++ b/matter_server/common/custom_clusters.py @@ -12,9 +12,13 @@ ClusterObjectDescriptor, ClusterObjectFieldDescriptor, ) +from chip.clusters.Objects import BasicInformation, ElectricalPowerMeasurement from chip.tlv import float32, uint -from matter_server.common.helpers.util import parse_attribute_path +from matter_server.common.helpers.util import ( + create_attribute_path_from_attribute, + parse_attribute_path, +) if TYPE_CHECKING: from matter_server.common.models import MatterNodeData @@ -27,13 +31,19 @@ ALL_CUSTOM_CLUSTERS: dict[int, Cluster] = {} ALL_CUSTOM_ATTRIBUTES: dict[int, dict[int, ClusterAttributeDescriptor]] = {} +VENDOR_ID_EVE = 4874 + @dataclass class CustomClusterMixin: """Base model for a vendor specific custom cluster.""" id: ClassVar[int] # cluster id - should_poll: bool = False # should the entire cluster be polled for state changes? + + @staticmethod + def should_poll(node_data: MatterNodeData) -> bool: # noqa: ARG004 + """Check if the (entire) custom cluster should be polled for state changes.""" + return False def __init_subclass__(cls: Cluster, *args, **kwargs) -> None: """Register a subclass.""" @@ -45,7 +55,10 @@ def __init_subclass__(cls: Cluster, *args, **kwargs) -> None: class CustomClusterAttributeMixin: """Base model for a vendor specific custom cluster attribute.""" - should_poll: bool = False # should this attribute be polled ? + @staticmethod + def should_poll(node_data: MatterNodeData) -> bool: # noqa: ARG004 + """Check if the custom attribute should be polled for state changes.""" + return False def __init_subclass__(cls: ClusterAttributeDescriptor, *args, **kwargs) -> None: """Register a subclass.""" @@ -55,6 +68,23 @@ def __init_subclass__(cls: ClusterAttributeDescriptor, *args, **kwargs) -> None: ALL_CUSTOM_ATTRIBUTES[cls.cluster_id][cls.attribute_id] = cls +def should_poll_eve_energy(node_data: MatterNodeData) -> bool: + """Check if the (Eve Energy) custom attribute should be polled for state changes.""" + attr_path = create_attribute_path_from_attribute( + 0, BasicInformation.Attributes.VendorID + ) + if node_data.attributes.get(attr_path) != VENDOR_ID_EVE: + # Some implementation (such as MatterBridge) use the + # Eve cluster to send the power measurements. Filter that out. + return False + # if the ElectricalPowerMeasurement cluster is NOT present, + # we should poll the custom Eve cluster attribute(s). + attr_path = create_attribute_path_from_attribute( + 2, ElectricalPowerMeasurement.Attributes.AttributeList + ) + return node_data.attributes.get(attr_path) is None + + @dataclass class EveCluster(Cluster, CustomClusterMixin): """Custom (vendor-specific) cluster for Eve - Vendor ID 4874 (0x130a).""" @@ -117,8 +147,6 @@ class Attributes: class TimesOpened(ClusterAttributeDescriptor, CustomClusterAttributeMixin): """TimesOpened Attribute within the Eve Cluster.""" - should_poll = True - @ChipUtility.classproperty def cluster_id(cls) -> int: """Return cluster id.""" @@ -140,7 +168,7 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: class Watt(ClusterAttributeDescriptor, CustomClusterAttributeMixin): """Watt Attribute within the Eve Cluster.""" - should_poll = True + should_poll = should_poll_eve_energy @ChipUtility.classproperty def cluster_id(cls) -> int: @@ -163,7 +191,7 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: class WattAccumulated(ClusterAttributeDescriptor, CustomClusterAttributeMixin): """WattAccumulated Attribute within the Eve Cluster.""" - should_poll = True + should_poll = should_poll_eve_energy @ChipUtility.classproperty def cluster_id(cls) -> int: @@ -188,7 +216,7 @@ class WattAccumulatedControlPoint( ): """wattAccumulatedControlPoint Attribute within the Eve Cluster.""" - should_poll = True + should_poll = should_poll_eve_energy @ChipUtility.classproperty def cluster_id(cls) -> int: @@ -211,7 +239,7 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: class Voltage(ClusterAttributeDescriptor, CustomClusterAttributeMixin): """Voltage Attribute within the Eve Cluster.""" - should_poll = True + should_poll = should_poll_eve_energy @ChipUtility.classproperty def cluster_id(cls) -> int: @@ -234,7 +262,7 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: class Current(ClusterAttributeDescriptor, CustomClusterAttributeMixin): """Current Attribute within the Eve Cluster.""" - should_poll = True + should_poll = should_poll_eve_energy @ChipUtility.classproperty def cluster_id(cls) -> int: @@ -299,8 +327,6 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: class ValvePosition(ClusterAttributeDescriptor, CustomClusterAttributeMixin): """ValvePosition Attribute within the Eve Cluster.""" - should_poll = True - @ChipUtility.classproperty def cluster_id(cls) -> int: """Return cluster id.""" @@ -324,8 +350,6 @@ class MotionSensitivity( ): """MotionSensitivity Attribute within the Eve Cluster.""" - should_poll = False - @ChipUtility.classproperty def cluster_id(cls) -> int: """Return cluster id.""" @@ -558,12 +582,12 @@ def check_polled_attributes(node_data: MatterNodeData) -> set[str]: endpoint_id, cluster_id, attribute_id = parse_attribute_path(attr_path) if not (custom_cluster := ALL_CUSTOM_CLUSTERS.get(cluster_id)): continue - if custom_cluster.should_poll: + if custom_cluster.should_poll(node_data): # the entire cluster needs to be polled attributes_to_poll.add(f"{endpoint_id}/{cluster_id}/*") continue custom_attribute = ALL_CUSTOM_ATTRIBUTES[cluster_id].get(attribute_id) - if custom_attribute and custom_attribute.should_poll: + if custom_attribute and custom_attribute.should_poll(node_data): # this attribute needs to be polled attributes_to_poll.add(attr_path) return attributes_to_poll From e8f3472802cddf1973cb46de4215d11459d9da28 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 23 Sep 2024 11:55:54 +0200 Subject: [PATCH 006/400] Bump pypa/gh-action-pypi-publish from 1.10.1 to 1.10.2 (#896) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1ae57bb2..8376274f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -64,7 +64,7 @@ jobs: run: >- python3 -m build - name: Publish release to PyPI - uses: pypa/gh-action-pypi-publish@v1.10.1 + uses: pypa/gh-action-pypi-publish@v1.10.2 with: user: __token__ password: ${{ secrets.PYPI_TOKEN }} From e9cd2a941af8ca1c536194dbd2a5e95f40bd24c4 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 23 Sep 2024 11:56:14 +0200 Subject: [PATCH 007/400] Bump ruff from 0.6.5 to 0.6.7 (#894) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index faad52ff..734e5148 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -53,7 +53,7 @@ test = [ "pytest-asyncio==0.24.0", "pytest-aiohttp==1.0.5", "pytest-cov==5.0.0", - "ruff==0.6.5", + "ruff==0.6.7", "tomli==2.0.1", ] From c0b8bc7082d8058bfd3604f4a6cdc2423d0b31d9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 23 Sep 2024 13:20:25 +0200 Subject: [PATCH 008/400] Bump pylint from 3.2.7 to 3.3.0 (#895) --- matter_server/server/server.py | 2 +- pyproject.toml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/matter_server/server/server.py b/matter_server/server/server.py index 68b78f00..7fd96f22 100644 --- a/matter_server/server/server.py +++ b/matter_server/server/server.py @@ -100,7 +100,7 @@ class MatterServer: _runner: web.AppRunner | None = None _http: MultiHostTCPSite | None = None - def __init__( # noqa: PLR0913, pylint: disable=too-many-arguments + def __init__( # noqa: PLR0913, pylint: disable=too-many-positional-arguments, too-many-arguments self, storage_path: str, vendor_id: int, diff --git a/pyproject.toml b/pyproject.toml index 734e5148..88f1eb2e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -48,7 +48,7 @@ test = [ "mypy==1.11.2", "pre-commit==3.8.0", "pre-commit-hooks==4.6.0", - "pylint==3.2.7", + "pylint==3.3.0", "pytest==8.3.3", "pytest-asyncio==0.24.0", "pytest-aiohttp==1.0.5", @@ -117,6 +117,7 @@ good-names = [ [tool.pylint.DESIGN] max-args = 10 max-attributes = 12 +max-positional-arguments = 10 [tool.pylint."MESSAGES CONTROL"] disable = [ From 9cb59570697169d40951fedbc4f3a0e0058e6acb Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Tue, 24 Sep 2024 10:34:30 +0200 Subject: [PATCH 009/400] Correct typo in the subscription floor (#897) --- matter_server/server/device_controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matter_server/server/device_controller.py b/matter_server/server/device_controller.py index e96b537d..54dd1ab9 100644 --- a/matter_server/server/device_controller.py +++ b/matter_server/server/device_controller.py @@ -79,7 +79,7 @@ LOGGER = logging.getLogger(__name__) NODE_SUBSCRIPTION_FLOOR_DEFAULT = 1 -NODE_SUBSCRIPTION_FLOOR_ICD = 1 +NODE_SUBSCRIPTION_FLOOR_ICD = 0 NODE_SUBSCRIPTION_CEILING_WIFI = 60 NODE_SUBSCRIPTION_CEILING_THREAD = 60 NODE_SUBSCRIPTION_CEILING_BATTERY_POWERED = 600 From 99c14e8d2374baf4f1fab56636bc2d84c9bce259 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 26 Sep 2024 13:48:19 +0200 Subject: [PATCH 010/400] Bump actions/checkout from 4.1.7 to 4.2.0 (#898) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 4 ++-- .github/workflows/test.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8376274f..78afa237 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,7 +14,7 @@ jobs: outputs: version: ${{ steps.vars.outputs.tag }} steps: - - uses: actions/checkout@v4.1.7 + - uses: actions/checkout@v4.2.0 - name: Get tag id: vars run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT @@ -77,7 +77,7 @@ jobs: packages: write needs: build-and-publish-pypi steps: - - uses: actions/checkout@v4.1.7 + - uses: actions/checkout@v4.2.0 - name: Log in to the GitHub container registry uses: docker/login-action@v3.3.0 with: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index dac6a7d0..ab3a2a2f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,7 +16,7 @@ jobs: steps: - name: Check out code from GitHub - uses: actions/checkout@v4.1.7 + uses: actions/checkout@v4.2.0 - name: Set up Python uses: actions/setup-python@v5.2.0 with: @@ -43,7 +43,7 @@ jobs: steps: - name: Check out code from GitHub - uses: actions/checkout@v4.1.7 + uses: actions/checkout@v4.2.0 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v5.2.0 with: From 6dcde5cb85063dc970e55f0fd585b271d4c0a05c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 30 Sep 2024 13:24:21 +0200 Subject: [PATCH 011/400] Bump docker/build-push-action from 6.7.0 to 6.8.0 (#904) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 78afa237..fb3e4259 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -95,7 +95,7 @@ jobs: echo "minor=${patch%.*}" >> $GITHUB_OUTPUT echo "major=${patch%.*.*}" >> $GITHUB_OUTPUT - name: Build and Push release - uses: docker/build-push-action@v6.7.0 + uses: docker/build-push-action@v6.8.0 if: github.event.release.prerelease == false with: context: . @@ -109,7 +109,7 @@ jobs: push: true build-args: "PYTHON_MATTER_SERVER=${{ needs.build-and-publish-pypi.outputs.version }}" - name: Build and Push pre-release - uses: docker/build-push-action@v6.7.0 + uses: docker/build-push-action@v6.8.0 if: github.event.release.prerelease == true with: context: . From d3ac6389ca91ef293c0872d1ab97466fa4eb03bd Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 30 Sep 2024 14:59:20 +0200 Subject: [PATCH 012/400] Bump ruff from 0.6.7 to 0.6.8 (#900) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 88f1eb2e..67bdada8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -53,7 +53,7 @@ test = [ "pytest-asyncio==0.24.0", "pytest-aiohttp==1.0.5", "pytest-cov==5.0.0", - "ruff==0.6.7", + "ruff==0.6.8", "tomli==2.0.1", ] From c83300af904d5faf2742148cfc8844c9b8f50e26 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 30 Sep 2024 15:11:23 +0200 Subject: [PATCH 013/400] Bump aiohttp from 3.10.5 to 3.10.8 (#903) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 67bdada8..47a533e5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,7 +32,7 @@ version = "0.0.0" [project.optional-dependencies] server = [ - "aiohttp==3.10.5", + "aiohttp==3.10.8", "aiorun==2024.8.1", "async-timeout==4.0.3", "coloredlogs==15.0.1", From a6b2ab4589b67a8d5438ae058a6a40ede1d90af1 Mon Sep 17 00:00:00 2001 From: Darren Griffin Date: Mon, 30 Sep 2024 17:37:23 +0100 Subject: [PATCH 014/400] Add OHF logo to README (#905) --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 7239061d..df84d567 100644 --- a/README.md +++ b/README.md @@ -315,3 +315,5 @@ There is also a Python client library hosted in this repository (used by Home As The client library has a dependency on the chip/matter clusters package which contains all (Cluster) models and this package is os/platform independent. The server library depends on the Matter Core SDK (still named CHIP) which is architecture and OS specific. We build (and publish) wheels for Linux (amd64 and aarch64) to pypi but for other platforms (like Macos) you will need to build those wheels yourself using the exact same version of the SDK as we use for the clusters package. Take a look at our build script for directions: https://github.com/home-assistant-libs/chip-wheels/blob/main/.github/workflows/build.yaml To only install the client part: `pip install python-matter-server` + +[![Python Matter Server - A library from the Open Home Foundation](https://www.openhomefoundation.org/badges/python-matter-server.png)](https://www.openhomefoundation.org/) From 86db296c11ac7dc89e2def900ebbc7b540ceec81 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 1 Oct 2024 06:55:54 +0200 Subject: [PATCH 015/400] Bump pylint from 3.3.0 to 3.3.1 (#901) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 47a533e5..91e9d455 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -48,7 +48,7 @@ test = [ "mypy==1.11.2", "pre-commit==3.8.0", "pre-commit-hooks==4.6.0", - "pylint==3.3.0", + "pylint==3.3.1", "pytest==8.3.3", "pytest-asyncio==0.24.0", "pytest-aiohttp==1.0.5", From 3eaba779e7e6e62a99e8ca313027ddc71a0d769a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 1 Oct 2024 06:59:37 +0200 Subject: [PATCH 016/400] Bump zeroconf from 0.134.0 to 0.135.0 (#902) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 91e9d455..e094353e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,7 +38,7 @@ server = [ "coloredlogs==15.0.1", "cryptography==43.0.1", "orjson==3.10.7", - "zeroconf==0.134.0", + "zeroconf==0.135.0", "home-assistant-chip-core==2024.9.0", ] test = [ From 0b32ca90ccf8ab90a6c36d6f70adc85f254398a3 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Tue, 1 Oct 2024 08:50:49 +0200 Subject: [PATCH 017/400] Add fabric label on commissioning (#899) --- matter_server/client/client.py | 6 ++++++ matter_server/common/const.py | 2 +- matter_server/common/models.py | 1 + matter_server/server/device_controller.py | 15 +++++++++++++++ 4 files changed, 23 insertions(+), 1 deletion(-) diff --git a/matter_server/client/client.py b/matter_server/client/client.py index aa5f629d..aababf67 100644 --- a/matter_server/client/client.py +++ b/matter_server/client/client.py @@ -131,6 +131,12 @@ def get_node(self, node_id: int) -> MatterNode: return node raise NodeNotExists(f"Node {node_id} does not exist or is not yet interviewed") + async def set_default_fabric_label(self, label: str | None) -> None: + """Set the default fabric label.""" + await self.send_command( + APICommand.SET_DEFAULT_FABRIC_LABEL, require_schema=11, label=label + ) + async def commission_with_code( self, code: str, network_only: bool = False ) -> MatterNodeData: diff --git a/matter_server/common/const.py b/matter_server/common/const.py index 26a4737e..f5ac9b2c 100644 --- a/matter_server/common/const.py +++ b/matter_server/common/const.py @@ -2,7 +2,7 @@ # schema version is used to determine compatibility between server and client # bump schema if we add new features and/or make other (breaking) changes -SCHEMA_VERSION = 10 +SCHEMA_VERSION = 11 VERBOSE_LOG_LEVEL = 5 diff --git a/matter_server/common/models.py b/matter_server/common/models.py index c7128eb0..2c71b2b5 100644 --- a/matter_server/common/models.py +++ b/matter_server/common/models.py @@ -50,6 +50,7 @@ class APICommand(str, Enum): IMPORT_TEST_NODE = "import_test_node" CHECK_NODE_UPDATE = "check_node_update" UPDATE_NODE = "update_node" + SET_DEFAULT_FABRIC_LABEL = "set_default_fabric_label" EventCallBackType = Callable[[EventType, Any], None] diff --git a/matter_server/server/device_controller.py b/matter_server/server/device_controller.py index 54dd1ab9..88c14429 100644 --- a/matter_server/server/device_controller.py +++ b/matter_server/server/device_controller.py @@ -166,6 +166,7 @@ def __init__( self._custom_attribute_poller_timer: asyncio.TimerHandle | None = None self._custom_attribute_poller_task: asyncio.Task | None = None self._attribute_update_callbacks: dict[int, list[Callable]] = {} + self._default_fabric_label: str | None = None async def initialize(self) -> None: """Initialize the device controller.""" @@ -280,6 +281,11 @@ def get_node(self, node_id: int) -> MatterNodeData: return node raise NodeNotExists(f"Node {node_id} does not exist or is not yet interviewed") + @api_command(APICommand.SET_DEFAULT_FABRIC_LABEL) + async def set_default_fabric_label(self, label: str | None) -> None: + """Set the default fabric label.""" + self._default_fabric_label = label + @api_command(APICommand.COMMISSION_WITH_CODE) async def commission_with_code( self, code: str, network_only: bool = False @@ -315,6 +321,15 @@ async def commission_with_code( LOGGER.info("Commissioned Node ID: %s vs %s", commissioned_node_id, node_id) if commissioned_node_id != node_id: raise RuntimeError("Returned Node ID must match requested Node ID") + + if self._default_fabric_label: + await self._chip_device_controller.send_command( + node_id, + 0, + Clusters.OperationalCredentials.Commands.UpdateFabricLabel( + self._default_fabric_label + ), + ) except ChipStackError as err: raise NodeCommissionFailed( f"Commission with code failed for node {node_id}." From dff075b3df72d469404a4e8b1bd0ba86a601a474 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Tue, 1 Oct 2024 10:07:25 +0200 Subject: [PATCH 018/400] Abort update when device goes offline (#906) --- matter_server/server/device_controller.py | 5 +++++ matter_server/server/ota/provider.py | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/matter_server/server/device_controller.py b/matter_server/server/device_controller.py index 88c14429..ec4dd0d4 100644 --- a/matter_server/server/device_controller.py +++ b/matter_server/server/device_controller.py @@ -1603,6 +1603,11 @@ async def _node_offline(self, node_id: int) -> None: node_logger.info("Node considered offline, shutdown subscription") await self._chip_device_controller.shutdown_subscription(node_id) + # inform listeners for update callbacks that this subscription is now offline + if node_id in self._attribute_update_callbacks: + for callback in self._attribute_update_callbacks[node_id]: + self._loop.create_task(callback(None, None, None)) + # mark node as unavailable (if it wasn't already) self._node_unavailable(node_id) diff --git a/matter_server/server/ota/provider.py b/matter_server/server/ota/provider.py index f53aa316..73a19384 100644 --- a/matter_server/server/ota/provider.py +++ b/matter_server/server/ota/provider.py @@ -353,6 +353,12 @@ async def check_update_state( ) -> None: """Check the update state of a node and take appropriate action.""" + if path is None: + self._ota_done.set_exception( + UpdateError("Device went offline during OTA update") + ) + return + if str(path) != OTA_SOFTWARE_UPDATE_REQUESTOR_UPDATE_STATE_ATTRIBUTE_PATH: return From 232d380a36f2c0c5d61d7ccd856e5ec2bd01b764 Mon Sep 17 00:00:00 2001 From: Darren Griffin Date: Tue, 1 Oct 2024 09:07:56 +0100 Subject: [PATCH 019/400] Moved OHF badge to suitable location in README (#907) --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index df84d567..b1dc8c80 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,8 @@ as a base and provides both a server and client implementation. The goal of this project is primarily to have Matter support in Home Assistant but its universal approach makes it suitable to be used in other projects too. +[![Python Matter Server - A library from the Open Home Foundation](https://www.openhomefoundation.org/badges/python-matter-server.png)](https://www.openhomefoundation.org/) + ## Support Got questions? @@ -315,5 +317,3 @@ There is also a Python client library hosted in this repository (used by Home As The client library has a dependency on the chip/matter clusters package which contains all (Cluster) models and this package is os/platform independent. The server library depends on the Matter Core SDK (still named CHIP) which is architecture and OS specific. We build (and publish) wheels for Linux (amd64 and aarch64) to pypi but for other platforms (like Macos) you will need to build those wheels yourself using the exact same version of the SDK as we use for the clusters package. Take a look at our build script for directions: https://github.com/home-assistant-libs/chip-wheels/blob/main/.github/workflows/build.yaml To only install the client part: `pip install python-matter-server` - -[![Python Matter Server - A library from the Open Home Foundation](https://www.openhomefoundation.org/badges/python-matter-server.png)](https://www.openhomefoundation.org/) From 90418ba44da74c23171772168d6a5e578aedd18b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 1 Oct 2024 10:48:28 +0200 Subject: [PATCH 020/400] Bump docker/build-push-action from 6.8.0 to 6.9.0 (#908) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fb3e4259..63cd3b87 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -95,7 +95,7 @@ jobs: echo "minor=${patch%.*}" >> $GITHUB_OUTPUT echo "major=${patch%.*.*}" >> $GITHUB_OUTPUT - name: Build and Push release - uses: docker/build-push-action@v6.8.0 + uses: docker/build-push-action@v6.9.0 if: github.event.release.prerelease == false with: context: . @@ -109,7 +109,7 @@ jobs: push: true build-args: "PYTHON_MATTER_SERVER=${{ needs.build-and-publish-pypi.outputs.version }}" - name: Build and Push pre-release - uses: docker/build-push-action@v6.8.0 + uses: docker/build-push-action@v6.9.0 if: github.event.release.prerelease == true with: context: . From dd50c4671aea1b65f6a2c327a0bfb357ca2f5a10 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Tue, 1 Oct 2024 21:25:24 +0200 Subject: [PATCH 021/400] Update label on interview (#909) --- matter_server/server/device_controller.py | 44 ++++++++++++++--------- 1 file changed, 28 insertions(+), 16 deletions(-) diff --git a/matter_server/server/device_controller.py b/matter_server/server/device_controller.py index ec4dd0d4..fbe540d3 100644 --- a/matter_server/server/device_controller.py +++ b/matter_server/server/device_controller.py @@ -345,7 +345,7 @@ async def commission_with_code( retries = 3 while retries: try: - await self.interview_node(node_id) + await self._interview_node(node_id) except (NodeNotResolving, NodeInterviewFailed) as err: if retries <= 0: raise err @@ -425,7 +425,7 @@ async def commission_on_network( retries = 3 while retries: try: - await self.interview_node(node_id) + await self._interview_node(node_id) except NodeInterviewFailed as err: if retries <= 0: raise err @@ -567,17 +567,7 @@ async def discover_commissionable_nodes( for x in sdk_result ] - @api_command(APICommand.INTERVIEW_NODE) - async def interview_node(self, node_id: int) -> None: - """Interview a node.""" - if node_id >= TEST_NODE_START: - LOGGER.debug( - "interview_node called for test node %s", - node_id, - ) - self.server.signal_event(EventType.NODE_UPDATED, self._nodes[node_id]) - return - + async def _interview_node(self, node_id: int) -> None: try: LOGGER.info("Interviewing node: %s", node_id) read_response: Attribute.AsyncReadTransaction.ReadResponse = ( @@ -622,6 +612,28 @@ async def interview_node(self, node_id: int) -> None: LOGGER.debug("Interview of node %s completed", node_id) + @api_command(APICommand.INTERVIEW_NODE) + async def interview_node(self, node_id: int) -> None: + """Interview a node.""" + if node_id >= TEST_NODE_START: + LOGGER.debug( + "interview_node called for test node %s", + node_id, + ) + self.server.signal_event(EventType.NODE_UPDATED, self._nodes[node_id]) + return + + await self._interview_node(node_id) + + if self._default_fabric_label: + await self._chip_device_controller.send_command( + node_id, + 0, + Clusters.OperationalCredentials.Commands.UpdateFabricLabel( + self._default_fabric_label + ), + ) + @api_command(APICommand.DEVICE_COMMAND) async def send_device_command( self, @@ -1114,7 +1126,7 @@ def attribute_updated_callback( and new_value != old_value ): # schedule a full interview of the node if the software version changed - self._loop.create_task(self.interview_node(node_id)) + self._loop.create_task(self._interview_node(node_id)) # store updated value in node attributes node.attributes[str(path)] = new_value @@ -1346,7 +1358,7 @@ async def _setup_node_try_once( or node_data.interview_version != DATA_MODEL_SCHEMA_VERSION ): try: - await self.interview_node(node_id) + await self._interview_node(node_id) except NodeInterviewFailed as err: node_logger.warning( "Setup for node failed: %s", @@ -1436,7 +1448,7 @@ async def _handle_endpoints_added( ) -> None: """Handle callback for when bridge endpoint(s) get added.""" # we simply do a full interview of the node - await self.interview_node(node_id) + await self._interview_node(node_id) # signal event to consumers for endpoint_id in endpoints: self.server.signal_event( From a1bc33bad16f9f72b17d785cae3f46c0c81bf4cb Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 3 Oct 2024 12:34:17 +0200 Subject: [PATCH 022/400] Bump docker/setup-buildx-action from 3.6.1 to 3.7.0 (#910) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 63cd3b87..f140f1c8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -85,7 +85,7 @@ jobs: username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3.6.1 + uses: docker/setup-buildx-action@v3.7.0 - name: Version number for tags id: tags shell: bash From aedeaf9bc7822c4d6dbba11e426a42acfadcd922 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 4 Oct 2024 10:19:28 +0200 Subject: [PATCH 023/400] Bump docker/setup-buildx-action from 3.7.0 to 3.7.1 (#912) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f140f1c8..bae3c4f4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -85,7 +85,7 @@ jobs: username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3.7.0 + uses: docker/setup-buildx-action@v3.7.1 - name: Version number for tags id: tags shell: bash From 8cd34b65f4580ce0c5bd7218b8bfef6dc7855c46 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 4 Oct 2024 10:20:12 +0200 Subject: [PATCH 024/400] Bump pypa/gh-action-pypi-publish from 1.10.2 to 1.10.3 (#911) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bae3c4f4..2d8a11fe 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -64,7 +64,7 @@ jobs: run: >- python3 -m build - name: Publish release to PyPI - uses: pypa/gh-action-pypi-publish@v1.10.2 + uses: pypa/gh-action-pypi-publish@v1.10.3 with: user: __token__ password: ${{ secrets.PYPI_TOKEN }} From 5090e9098975f417b2a3dfa88d57dae9971a1230 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 7 Oct 2024 11:15:46 +0200 Subject: [PATCH 025/400] Bump aiohttp from 3.10.8 to 3.10.9 (#919) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index e094353e..da037727 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,7 +32,7 @@ version = "0.0.0" [project.optional-dependencies] server = [ - "aiohttp==3.10.8", + "aiohttp==3.10.9", "aiorun==2024.8.1", "async-timeout==4.0.3", "coloredlogs==15.0.1", From 7d6a1c4bea8a3f1433a466f30303481a693b0709 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 7 Oct 2024 11:16:46 +0200 Subject: [PATCH 026/400] Bump pre-commit-hooks from 4.6.0 to 5.0.0 (#916) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index da037727..0f2269c1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -47,7 +47,7 @@ test = [ "isort==5.13.2", "mypy==1.11.2", "pre-commit==3.8.0", - "pre-commit-hooks==4.6.0", + "pre-commit-hooks==5.0.0", "pylint==3.3.1", "pytest==8.3.3", "pytest-asyncio==0.24.0", From ae75c43a0469aaa6f7daf6d8852af27c18afe3d7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 7 Oct 2024 11:19:51 +0200 Subject: [PATCH 027/400] Bump pre-commit from 3.8.0 to 4.0.0 (#918) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 0f2269c1..1db591a7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -46,7 +46,7 @@ test = [ "codespell==2.3.0", "isort==5.13.2", "mypy==1.11.2", - "pre-commit==3.8.0", + "pre-commit==4.0.0", "pre-commit-hooks==5.0.0", "pylint==3.3.1", "pytest==8.3.3", From 47ef1a6cbce996d00241e182283596ff9138edd8 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 7 Oct 2024 14:44:38 +0200 Subject: [PATCH 028/400] Bump tomli from 2.0.1 to 2.0.2 (#917) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 1db591a7..1f389c02 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,7 +54,7 @@ test = [ "pytest-aiohttp==1.0.5", "pytest-cov==5.0.0", "ruff==0.6.8", - "tomli==2.0.1", + "tomli==2.0.2", ] [project.scripts] From 1ece8f11562aa49b129de10c74f0adab8af12b4d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 7 Oct 2024 18:01:15 +0200 Subject: [PATCH 029/400] Bump ruff from 0.6.8 to 0.6.9 (#915) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 1f389c02..60149156 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -53,7 +53,7 @@ test = [ "pytest-asyncio==0.24.0", "pytest-aiohttp==1.0.5", "pytest-cov==5.0.0", - "ruff==0.6.8", + "ruff==0.6.9", "tomli==2.0.2", ] From ac7e7b9a1508757402a70660c58b1de7d901c893 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 8 Oct 2024 10:59:05 +0200 Subject: [PATCH 030/400] Bump actions/checkout from 4.2.0 to 4.2.1 (#920) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 4 ++-- .github/workflows/test.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2d8a11fe..626df632 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,7 +14,7 @@ jobs: outputs: version: ${{ steps.vars.outputs.tag }} steps: - - uses: actions/checkout@v4.2.0 + - uses: actions/checkout@v4.2.1 - name: Get tag id: vars run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT @@ -77,7 +77,7 @@ jobs: packages: write needs: build-and-publish-pypi steps: - - uses: actions/checkout@v4.2.0 + - uses: actions/checkout@v4.2.1 - name: Log in to the GitHub container registry uses: docker/login-action@v3.3.0 with: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ab3a2a2f..893cf006 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,7 +16,7 @@ jobs: steps: - name: Check out code from GitHub - uses: actions/checkout@v4.2.0 + uses: actions/checkout@v4.2.1 - name: Set up Python uses: actions/setup-python@v5.2.0 with: @@ -43,7 +43,7 @@ jobs: steps: - name: Check out code from GitHub - uses: actions/checkout@v4.2.0 + uses: actions/checkout@v4.2.1 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v5.2.0 with: From 0c17d64f004894e1ceca9985018512ceab18f5d5 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 14 Oct 2024 11:53:29 +0200 Subject: [PATCH 031/400] Bump aiohttp from 3.10.9 to 3.10.10 (#925) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 60149156..070d1867 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,7 +32,7 @@ version = "0.0.0" [project.optional-dependencies] server = [ - "aiohttp==3.10.9", + "aiohttp==3.10.10", "aiorun==2024.8.1", "async-timeout==4.0.3", "coloredlogs==15.0.1", From 078f48037a9bfd270a32f7539bd8b94dd50cfbc3 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 14 Oct 2024 11:53:57 +0200 Subject: [PATCH 032/400] Bump pre-commit from 4.0.0 to 4.0.1 (#924) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 070d1867..753d6011 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -46,7 +46,7 @@ test = [ "codespell==2.3.0", "isort==5.13.2", "mypy==1.11.2", - "pre-commit==4.0.0", + "pre-commit==4.0.1", "pre-commit-hooks==5.0.0", "pylint==3.3.1", "pytest==8.3.3", From 4d0d00bf364cb266c5256423c422ed269fdfc46d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 21 Oct 2024 11:01:07 +0200 Subject: [PATCH 033/400] Bump cryptography from 43.0.1 to 43.0.3 (#927) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 753d6011..cffbb488 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -36,7 +36,7 @@ server = [ "aiorun==2024.8.1", "async-timeout==4.0.3", "coloredlogs==15.0.1", - "cryptography==43.0.1", + "cryptography==43.0.3", "orjson==3.10.7", "zeroconf==0.135.0", "home-assistant-chip-core==2024.9.0", From fcbdd1f5ac5c50d81305b7dbd10e9ae61a99e459 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 21 Oct 2024 11:01:34 +0200 Subject: [PATCH 034/400] Bump ruff from 0.6.9 to 0.7.0 (#929) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index cffbb488..ed6768d1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -53,7 +53,7 @@ test = [ "pytest-asyncio==0.24.0", "pytest-aiohttp==1.0.5", "pytest-cov==5.0.0", - "ruff==0.6.9", + "ruff==0.7.0", "tomli==2.0.2", ] From 5f4e0d12823c295c5cbabc323ff1257dc6a3245f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 21 Oct 2024 14:21:34 +0200 Subject: [PATCH 035/400] Bump orjson from 3.10.7 to 3.10.9 (#928) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index ed6768d1..3e5b073b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,7 +37,7 @@ server = [ "async-timeout==4.0.3", "coloredlogs==15.0.1", "cryptography==43.0.3", - "orjson==3.10.7", + "orjson==3.10.9", "zeroconf==0.135.0", "home-assistant-chip-core==2024.9.0", ] From a978484a4a8fd2826679ab96ebd39eaa5f322969 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 24 Oct 2024 10:27:06 +0200 Subject: [PATCH 036/400] Bump actions/checkout from 4.2.1 to 4.2.2 (#930) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 4 ++-- .github/workflows/test.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 626df632..3c3654d8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,7 +14,7 @@ jobs: outputs: version: ${{ steps.vars.outputs.tag }} steps: - - uses: actions/checkout@v4.2.1 + - uses: actions/checkout@v4.2.2 - name: Get tag id: vars run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT @@ -77,7 +77,7 @@ jobs: packages: write needs: build-and-publish-pypi steps: - - uses: actions/checkout@v4.2.1 + - uses: actions/checkout@v4.2.2 - name: Log in to the GitHub container registry uses: docker/login-action@v3.3.0 with: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 893cf006..8b7c6483 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,7 +16,7 @@ jobs: steps: - name: Check out code from GitHub - uses: actions/checkout@v4.2.1 + uses: actions/checkout@v4.2.2 - name: Set up Python uses: actions/setup-python@v5.2.0 with: @@ -43,7 +43,7 @@ jobs: steps: - name: Check out code from GitHub - uses: actions/checkout@v4.2.1 + uses: actions/checkout@v4.2.2 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v5.2.0 with: From 16630a0f891526e4f6bce1757d119bac4b2d6d34 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 25 Oct 2024 10:41:47 +0200 Subject: [PATCH 037/400] Bump actions/setup-python from 5.2.0 to 5.3.0 (#931) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 2 +- .github/workflows/test.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3c3654d8..057d7a3e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,7 +32,7 @@ jobs: fi fi - name: Set up Python ${{ env.PYTHON_VERSION }} - uses: actions/setup-python@v5.2.0 + uses: actions/setup-python@v5.3.0 with: python-version: ${{ env.PYTHON_VERSION }} - name: Set up Node ${{ env.NODE_VERSION }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8b7c6483..75bfc45c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,7 +18,7 @@ jobs: - name: Check out code from GitHub uses: actions/checkout@v4.2.2 - name: Set up Python - uses: actions/setup-python@v5.2.0 + uses: actions/setup-python@v5.3.0 with: python-version: "3.11" - name: Install dependencies @@ -45,7 +45,7 @@ jobs: - name: Check out code from GitHub uses: actions/checkout@v4.2.2 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5.2.0 + uses: actions/setup-python@v5.3.0 with: python-version: ${{ matrix.python-version }} - name: Install dependencies From b920612267285c784e09e95cd512a3f157320023 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 28 Oct 2024 10:41:15 +0100 Subject: [PATCH 038/400] Bump zeroconf from 0.135.0 to 0.136.0 (#933) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 3e5b073b..1e29dbb8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,7 +38,7 @@ server = [ "coloredlogs==15.0.1", "cryptography==43.0.3", "orjson==3.10.9", - "zeroconf==0.135.0", + "zeroconf==0.136.0", "home-assistant-chip-core==2024.9.0", ] test = [ From 6a908a20dcf1d3e1d7e758e092622ea14930854f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 28 Oct 2024 10:41:32 +0100 Subject: [PATCH 039/400] Bump ruff from 0.7.0 to 0.7.1 (#934) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 1e29dbb8..6ff60bb3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -53,7 +53,7 @@ test = [ "pytest-asyncio==0.24.0", "pytest-aiohttp==1.0.5", "pytest-cov==5.0.0", - "ruff==0.7.0", + "ruff==0.7.1", "tomli==2.0.2", ] From 81036195ae869adb4237acfa9a4dbf5d0634a82e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 28 Oct 2024 10:47:17 +0100 Subject: [PATCH 040/400] Bump orjson from 3.10.9 to 3.10.10 (#935) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 6ff60bb3..1aacb0b1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,7 +37,7 @@ server = [ "async-timeout==4.0.3", "coloredlogs==15.0.1", "cryptography==43.0.3", - "orjson==3.10.9", + "orjson==3.10.10", "zeroconf==0.136.0", "home-assistant-chip-core==2024.9.0", ] From 256edec73b27a706705fd539db2aefe1c7e723af Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 30 Oct 2024 12:56:31 +0100 Subject: [PATCH 041/400] Bump pypa/gh-action-pypi-publish from 1.10.3 to 1.11.0 (#939) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 057d7a3e..8d2c1e80 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -64,7 +64,7 @@ jobs: run: >- python3 -m build - name: Publish release to PyPI - uses: pypa/gh-action-pypi-publish@v1.10.3 + uses: pypa/gh-action-pypi-publish@v1.11.0 with: user: __token__ password: ${{ secrets.PYPI_TOKEN }} From 102d511e48027f4dfdf16e0cb13cc4cee3943af4 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 4 Nov 2024 09:47:06 +0100 Subject: [PATCH 042/400] Bump orjson from 3.10.10 to 3.10.11 (#947) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 1aacb0b1..cc518f6d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,7 +37,7 @@ server = [ "async-timeout==4.0.3", "coloredlogs==15.0.1", "cryptography==43.0.3", - "orjson==3.10.10", + "orjson==3.10.11", "zeroconf==0.136.0", "home-assistant-chip-core==2024.9.0", ] From a1f7e6081865e0208e52cfce076a2e69c49f966c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 4 Nov 2024 11:45:24 +0100 Subject: [PATCH 043/400] Bump ruff from 0.7.1 to 0.7.2 (#945) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index cc518f6d..93e360ed 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -53,7 +53,7 @@ test = [ "pytest-asyncio==0.24.0", "pytest-aiohttp==1.0.5", "pytest-cov==5.0.0", - "ruff==0.7.1", + "ruff==0.7.2", "tomli==2.0.2", ] From a1e08f0df1c8c055df137c05df91dfeefe86fece Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 4 Nov 2024 11:47:05 +0100 Subject: [PATCH 044/400] Bump async-timeout from 4.0.3 to 5.0.0 (#944) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 93e360ed..4d5851fe 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -34,7 +34,7 @@ version = "0.0.0" server = [ "aiohttp==3.10.10", "aiorun==2024.8.1", - "async-timeout==4.0.3", + "async-timeout==5.0.0", "coloredlogs==15.0.1", "cryptography==43.0.3", "orjson==3.10.11", From 3399c865addfe568e8c71b77949840819bb29c56 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 4 Nov 2024 12:27:23 +0100 Subject: [PATCH 045/400] Bump pytest-cov from 5.0.0 to 6.0.0 (#946) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 4d5851fe..75325ee2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,7 +52,7 @@ test = [ "pytest==8.3.3", "pytest-asyncio==0.24.0", "pytest-aiohttp==1.0.5", - "pytest-cov==5.0.0", + "pytest-cov==6.0.0", "ruff==0.7.2", "tomli==2.0.2", ] From 311567d0e597ef92398dcd0d77f8b755e13aa204 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 6 Nov 2024 09:21:04 +0100 Subject: [PATCH 046/400] Bump pypa/gh-action-pypi-publish from 1.11.0 to 1.12.0 (#948) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8d2c1e80..329db889 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -64,7 +64,7 @@ jobs: run: >- python3 -m build - name: Publish release to PyPI - uses: pypa/gh-action-pypi-publish@v1.11.0 + uses: pypa/gh-action-pypi-publish@v1.12.0 with: user: __token__ password: ${{ secrets.PYPI_TOKEN }} From 796ab081d1ae9c311f26d5c2dfb7eae1c27191ee Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 7 Nov 2024 09:56:38 +0100 Subject: [PATCH 047/400] Bump pypa/gh-action-pypi-publish from 1.12.0 to 1.12.2 (#949) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 329db889..4158c10d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -64,7 +64,7 @@ jobs: run: >- python3 -m build - name: Publish release to PyPI - uses: pypa/gh-action-pypi-publish@v1.12.0 + uses: pypa/gh-action-pypi-publish@v1.12.2 with: user: __token__ password: ${{ secrets.PYPI_TOKEN }} From 65d7ba5a14626875f0c0f40ceadd505adba5a95d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 11 Nov 2024 11:23:22 +0100 Subject: [PATCH 048/400] Bump ruff from 0.7.2 to 0.7.3 (#953) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 75325ee2..ed1a6736 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -53,7 +53,7 @@ test = [ "pytest-asyncio==0.24.0", "pytest-aiohttp==1.0.5", "pytest-cov==6.0.0", - "ruff==0.7.2", + "ruff==0.7.3", "tomli==2.0.2", ] From d198d985fb5e742397f6e6f3edcdd66d18aef335 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 11 Nov 2024 11:26:01 +0100 Subject: [PATCH 049/400] Bump async-timeout from 5.0.0 to 5.0.1 (#954) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index ed1a6736..11a582ca 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -34,7 +34,7 @@ version = "0.0.0" server = [ "aiohttp==3.10.10", "aiorun==2024.8.1", - "async-timeout==5.0.0", + "async-timeout==5.0.1", "coloredlogs==15.0.1", "cryptography==43.0.3", "orjson==3.10.11", From f644c1dfc274018d4b343349fa5b7b7eee891bec Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 18 Nov 2024 09:43:27 +0100 Subject: [PATCH 050/400] Bump tomli from 2.0.2 to 2.1.0 (#955) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 11a582ca..49c3b1b3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,7 +54,7 @@ test = [ "pytest-aiohttp==1.0.5", "pytest-cov==6.0.0", "ruff==0.7.3", - "tomli==2.0.2", + "tomli==2.1.0", ] [project.scripts] From 615d66aca85355bf68315be46be90cd67e9c52c1 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 18 Nov 2024 09:56:13 +0100 Subject: [PATCH 051/400] Bump ruff from 0.7.3 to 0.7.4 (#958) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 49c3b1b3..6bae2303 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -53,7 +53,7 @@ test = [ "pytest-asyncio==0.24.0", "pytest-aiohttp==1.0.5", "pytest-cov==6.0.0", - "ruff==0.7.3", + "ruff==0.7.4", "tomli==2.1.0", ] From f88d53ae7925cb0dc1ceea3c4ba6ef997318833b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 18 Nov 2024 09:56:25 +0100 Subject: [PATCH 052/400] Bump aiohttp from 3.10.10 to 3.11.2 (#956) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 6bae2303..d64c86fb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,7 +32,7 @@ version = "0.0.0" [project.optional-dependencies] server = [ - "aiohttp==3.10.10", + "aiohttp==3.11.2", "aiorun==2024.8.1", "async-timeout==5.0.1", "coloredlogs==15.0.1", From 9d77b38a663a73777dd878b7290b7979748896e0 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 18 Nov 2024 10:25:03 +0100 Subject: [PATCH 053/400] Bump aioresponses from 0.7.6 to 0.7.7 (#957) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index d64c86fb..0680d5e5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -42,7 +42,7 @@ server = [ "home-assistant-chip-core==2024.9.0", ] test = [ - "aioresponses==0.7.6", + "aioresponses==0.7.7", "codespell==2.3.0", "isort==5.13.2", "mypy==1.11.2", From 33135612e37479a22fbc6b98e7874c46b21ec05a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20BOU=C3=89?= Date: Sat, 23 Nov 2024 00:34:12 +0100 Subject: [PATCH 054/400] Update device types for Matter SDK 1.4 (#950) --- dashboard/src/client/models/descriptions.ts | 1822 ++++++++----------- matter_server/client/models/device_types.py | 79 +- matter_server/client/models/node.py | 4 +- pyproject.toml | 4 +- scripts/generate_devices.py | 6 - 5 files changed, 795 insertions(+), 1120 deletions(-) diff --git a/dashboard/src/client/models/descriptions.ts b/dashboard/src/client/models/descriptions.ts index b3e68d68..89ef386e 100644 --- a/dashboard/src/client/models/descriptions.ts +++ b/dashboard/src/client/models/descriptions.ts @@ -26,10 +26,10 @@ export const device_types: Record = { "id": 4293984257, "label": "Orphan Clusters", "clusters": [ + 28, 66, 67, - 68, - 28 + 68 ] }, "22": { @@ -70,26 +70,26 @@ export const device_types: Record = { "id": 1296, "label": "Electrical Sensor", "clusters": [ + 29, 144, 145, - 156, - 29 + 156 ] }, "18": { "id": 18, "label": "OTA Requestor", "clusters": [ - 42, - 29 + 29, + 42 ] }, "20": { "id": 20, "label": "OTA Provider", "clusters": [ - 41, - 29 + 29, + 41 ] }, "14": { @@ -102,37 +102,37 @@ export const device_types: Record = { }, "19": { "id": 19, - "label": "Bridged Device", + "label": "Bridged Node", "clusters": [ - 57, 29, 46, - 47 + 47, + 57 ] }, "256": { "id": 256, "label": "On/Off Light", "clusters": [ - 98, 3, 4, 6, 8, - 29 + 29, + 98 ] }, "257": { "id": 257, "label": "Dimmable Light", "clusters": [ - 98, 3, 4, 6, 8, 29, - 30 + 30, + 98 ] }, "268": { @@ -190,14 +190,14 @@ export const device_types: Record = { "label": "Pump", "clusters": [ 512, - 1026, - 3, + 98, 1027, - 4, - 6, 1028, - 98, + 3, + 1026, + 4, 8, + 6, 29, 30 ] @@ -300,8 +300,8 @@ export const device_types: Record = { "id": 773, "label": "Pressure Sensor", "clusters": [ - 3, 1027, + 3, 29 ] }, @@ -355,9 +355,9 @@ export const device_types: Record = { "label": "Window Covering", "clusters": [ 258, - 98, 3, 4, + 98, 29 ] }, @@ -374,10 +374,10 @@ export const device_types: Record = { "id": 768, "label": "Heating/Cooling Unit", "clusters": [ - 514, + 98, 3, + 514, 4, - 98, 6, 8, 29, @@ -388,14 +388,14 @@ export const device_types: Record = { "id": 769, "label": "Thermostat", "clusters": [ - 513, - 98, 3, - 516, 4, - 56, 29, - 30 + 30, + 56, + 98, + 513, + 516 ] }, "43": { @@ -415,14 +415,14 @@ export const device_types: Record = { 1283, 1284, 1285, - 1286, 6, 1287, - 1289, 1288, - 1291, - 1292, + 1286, 1290, + 1289, + 1292, + 1291, 1294, 29 ] @@ -435,10 +435,10 @@ export const device_types: Record = { 1284, 1285, 6, - 1286, 1287, - 1289, 1288, + 1286, + 1289, 1291, 29 ] @@ -450,17 +450,17 @@ export const device_types: Record = { 1283, 1284, 1285, - 1286, 6, 1287, - 1289, + 8, 1288, - 1291, + 1290, + 1286, 1292, 1293, 1294, - 8, - 1290, + 1289, + 1291, 29, 30 ] @@ -472,16 +472,16 @@ export const device_types: Record = { 1283, 1284, 1285, - 1286, 6, 1287, - 1289, + 8, 1288, - 1291, + 1290, + 1286, 1292, - 8, + 1289, 1294, - 1290, + 1291, 29, 30 ] @@ -526,14 +526,14 @@ export const device_types: Record = { "label": "Room Air Conditioner", "clusters": [ 513, + 98, 514, - 3, 516, + 1029, + 3, + 1026, 4, 6, - 1026, - 98, - 1029, 29 ] }, @@ -572,12 +572,12 @@ export const device_types: Record = { 1029, 1066, 1067, - 1068, 1036, - 1037, - 1071, 1069, 1070, + 1037, + 1071, + 1068, 1043, 1045, 91, @@ -670,6 +670,7 @@ export const device_types: Record = { "clusters": [ 97, 3, + 336, 84, 85, 29 @@ -692,9 +693,9 @@ export const device_types: Record = { "label": "Water Freeze Detector", "clusters": [ 128, - 29, 3, - 69 + 69, + 29 ] }, "66": { @@ -711,9 +712,9 @@ export const device_types: Record = { "label": "Water Leak Detector", "clusters": [ 128, - 29, 3, - 69 + 69, + 29 ] }, "68": { @@ -721,15 +722,27 @@ export const device_types: Record = { "label": "Rain Sensor", "clusters": [ 128, - 29, 3, - 69 + 69, + 29 ] }, - "4293984272": { - "id": 4293984272, + "144": { + "id": 144, "label": "Network Infrastructure Manager", "clusters": [ + 1105, + 1106, + 1107, + 29 + ] + }, + "145": { + "id": 145, + "label": "Thread Border Router", + "clusters": [ + 1106, + 53, 29 ] }, @@ -741,20 +754,22 @@ export const device_types: Record = { 257, 98, 3, - 4, 1026, + 4, 6, - 259, 8, 29, 30 ] }, - "4293984258": { - "id": 4293984258, - "label": "Secondary Network Commissioning Device Type", + "25": { + "id": 25, + "label": "Secondary Network Interface", "clusters": [ 49, + 53, + 54, + 55, 29 ] }, @@ -773,7 +788,8 @@ export const device_types: Record = { "clusters": [ 1026, 29, - 86 + 86, + 6 ] }, "1292": { @@ -786,6 +802,50 @@ export const device_types: Record = { 153, 29 ] + }, + "1293": { + "id": 1293, + "label": "Device Energy Management", + "clusters": [ + 152, + 29, + 159 + ] + }, + "1295": { + "id": 1295, + "label": "Water Heater", + "clusters": [ + 513, + 3, + 148, + 29, + 158 + ] + }, + "777": { + "id": 777, + "label": "Heat Pump", + "clusters": [ + 3, + 29 + ] + }, + "23": { + "id": 23, + "label": "Solar Power", + "clusters": [ + 3, + 29 + ] + }, + "24": { + "id": 24, + "label": "Battery Storage", + "clusters": [ + 3, + 29 + ] } } @@ -964,60 +1024,6 @@ export const clusters: Record = { } } }, - "7": { - "id": 7, - "label": "OnOffSwitchConfiguration", - "attributes": { - "0": { - "id": 0, - "cluster_id": 7, - "label": "SwitchType", - "type": "uint" - }, - "16": { - "id": 16, - "cluster_id": 7, - "label": "SwitchActions", - "type": "uint" - }, - "65528": { - "id": 65528, - "cluster_id": 7, - "label": "GeneratedCommandList", - "type": "List[uint]" - }, - "65529": { - "id": 65529, - "cluster_id": 7, - "label": "AcceptedCommandList", - "type": "List[uint]" - }, - "65530": { - "id": 65530, - "cluster_id": 7, - "label": "EventList", - "type": "List[uint]" - }, - "65531": { - "id": 65531, - "cluster_id": 7, - "label": "AttributeList", - "type": "List[uint]" - }, - "65532": { - "id": 65532, - "cluster_id": 7, - "label": "FeatureMap", - "type": "uint" - }, - "65533": { - "id": 65533, - "cluster_id": 7, - "label": "ClusterRevision", - "type": "uint" - } - } - }, "8": { "id": 8, "label": "LevelControl", @@ -1144,102 +1150,6 @@ export const clusters: Record = { } } }, - "15": { - "id": 15, - "label": "BinaryInputBasic", - "attributes": { - "4": { - "id": 4, - "cluster_id": 15, - "label": "ActiveText", - "type": "Optional[str]" - }, - "28": { - "id": 28, - "cluster_id": 15, - "label": "Description", - "type": "Optional[str]" - }, - "46": { - "id": 46, - "cluster_id": 15, - "label": "InactiveText", - "type": "Optional[str]" - }, - "81": { - "id": 81, - "cluster_id": 15, - "label": "OutOfService", - "type": "bool" - }, - "84": { - "id": 84, - "cluster_id": 15, - "label": "Polarity", - "type": "Optional[uint]" - }, - "85": { - "id": 85, - "cluster_id": 15, - "label": "PresentValue", - "type": "bool" - }, - "103": { - "id": 103, - "cluster_id": 15, - "label": "Reliability", - "type": "Optional[uint]" - }, - "111": { - "id": 111, - "cluster_id": 15, - "label": "StatusFlags", - "type": "uint" - }, - "256": { - "id": 256, - "cluster_id": 15, - "label": "ApplicationType", - "type": "Optional[uint]" - }, - "65528": { - "id": 65528, - "cluster_id": 15, - "label": "GeneratedCommandList", - "type": "List[uint]" - }, - "65529": { - "id": 65529, - "cluster_id": 15, - "label": "AcceptedCommandList", - "type": "List[uint]" - }, - "65530": { - "id": 65530, - "cluster_id": 15, - "label": "EventList", - "type": "List[uint]" - }, - "65531": { - "id": 65531, - "cluster_id": 15, - "label": "AttributeList", - "type": "List[uint]" - }, - "65532": { - "id": 65532, - "cluster_id": 15, - "label": "FeatureMap", - "type": "uint" - }, - "65533": { - "id": 65533, - "cluster_id": 15, - "label": "ClusterRevision", - "type": "uint" - } - } - }, "28": { "id": 28, "label": "PulseWidthModulation", @@ -1436,6 +1346,18 @@ export const clusters: Record = { "label": "AccessControlEntriesPerFabric", "type": "uint" }, + "5": { + "id": 5, + "cluster_id": 31, + "label": "CommissioningARL", + "type": "Optional[List[AccessControl.Structs.CommissioningAccessRestrictionEntryStruct]]" + }, + "6": { + "id": 6, + "cluster_id": 31, + "label": "Arl", + "type": "Optional[List[AccessControl.Structs.AccessRestrictionEntryStruct]]" + }, "65528": { "id": 65528, "cluster_id": 31, @@ -1650,7 +1572,7 @@ export const clusters: Record = { "id": 18, "cluster_id": 40, "label": "UniqueID", - "type": "Optional[str]" + "type": "str" }, "19": { "id": 19, @@ -2300,8 +2222,32 @@ export const clusters: Record = { "label": "SupportsConcurrentConnection", "type": "bool" }, - "65528": { - "id": 65528, + "5": { + "id": 5, + "cluster_id": 48, + "label": "TCAcceptedVersion", + "type": "Optional[uint]" + }, + "6": { + "id": 6, + "cluster_id": 48, + "label": "TCMinRequiredVersion", + "type": "Optional[uint]" + }, + "7": { + "id": 7, + "cluster_id": 48, + "label": "TCAcknowledgements", + "type": "Optional[uint]" + }, + "8": { + "id": 8, + "cluster_id": 48, + "label": "TCAcknowledgementsRequired", + "type": "Optional[bool]" + }, + "65528": { + "id": 65528, "cluster_id": 48, "label": "GeneratedCommandList", "type": "List[uint]" @@ -3428,6 +3374,12 @@ export const clusters: Record = { "label": "ProductName", "type": "Optional[str]" }, + "4": { + "id": 4, + "cluster_id": 57, + "label": "ProductID", + "type": "Optional[uint]" + }, "5": { "id": 5, "cluster_id": 57, @@ -3498,7 +3450,7 @@ export const clusters: Record = { "id": 18, "cluster_id": 57, "label": "UniqueID", - "type": "Optional[str]" + "type": "str" }, "20": { "id": 20, @@ -4136,6 +4088,12 @@ export const clusters: Record = { "label": "OperatingMode", "type": "Optional[IcdManagement.Enums.OperatingModeEnum]" }, + "9": { + "id": 9, + "cluster_id": 70, + "label": "MaximumCheckInBackOff", + "type": "Optional[uint]" + }, "65528": { "id": 65528, "cluster_id": 70, @@ -6208,6 +6166,84 @@ export const clusters: Record = { } } }, + "148": { + "id": 148, + "label": "WaterHeaterManagement", + "attributes": { + "0": { + "id": 0, + "cluster_id": 148, + "label": "HeaterTypes", + "type": "uint" + }, + "1": { + "id": 1, + "cluster_id": 148, + "label": "HeatDemand", + "type": "uint" + }, + "2": { + "id": 2, + "cluster_id": 148, + "label": "TankVolume", + "type": "Optional[uint]" + }, + "3": { + "id": 3, + "cluster_id": 148, + "label": "EstimatedHeatRequired", + "type": "Optional[int]" + }, + "4": { + "id": 4, + "cluster_id": 148, + "label": "TankPercentage", + "type": "Optional[uint]" + }, + "5": { + "id": 5, + "cluster_id": 148, + "label": "BoostState", + "type": "aenum BoostStateEnum" + }, + "65528": { + "id": 65528, + "cluster_id": 148, + "label": "GeneratedCommandList", + "type": "List[uint]" + }, + "65529": { + "id": 65529, + "cluster_id": 148, + "label": "AcceptedCommandList", + "type": "List[uint]" + }, + "65530": { + "id": 65530, + "cluster_id": 148, + "label": "EventList", + "type": "List[uint]" + }, + "65531": { + "id": 65531, + "cluster_id": 148, + "label": "AttributeList", + "type": "List[uint]" + }, + "65532": { + "id": 65532, + "cluster_id": 148, + "label": "FeatureMap", + "type": "uint" + }, + "65533": { + "id": 65533, + "cluster_id": 148, + "label": "ClusterRevision", + "type": "uint" + } + } + }, "150": { "id": 150, "label": "DemandResponseLoadControl", @@ -6390,7 +6426,7 @@ export const clusters: Record = { "id": 5, "cluster_id": 152, "label": "PowerAdjustmentCapability", - "type": "Union[NoneType, Nullable, List[DeviceEnergyManagement.Structs.PowerAdjustStruct]]" + "type": "Union[NoneType, Nullable, DeviceEnergyManagement.Structs.PowerAdjustCapabilityStruct]" }, "6": { "id": 6, @@ -6814,6 +6850,72 @@ export const clusters: Record = { } } }, + "158": { + "id": 158, + "label": "WaterHeaterMode", + "attributes": { + "0": { + "id": 0, + "cluster_id": 158, + "label": "SupportedModes", + "type": "List[WaterHeaterMode.Structs.ModeOptionStruct]" + }, + "1": { + "id": 1, + "cluster_id": 158, + "label": "CurrentMode", + "type": "uint" + }, + "2": { + "id": 2, + "cluster_id": 158, + "label": "StartUpMode", + "type": "Union[NoneType, Nullable, uint]" + }, + "3": { + "id": 3, + "cluster_id": 158, + "label": "OnMode", + "type": "Union[NoneType, Nullable, uint]" + }, + "65528": { + "id": 65528, + "cluster_id": 158, + "label": "GeneratedCommandList", + "type": "List[uint]" + }, + "65529": { + "id": 65529, + "cluster_id": 158, + "label": "AcceptedCommandList", + "type": "List[uint]" + }, + "65530": { + "id": 65530, + "cluster_id": 158, + "label": "EventList", + "type": "List[uint]" + }, + "65531": { + "id": 65531, + "cluster_id": 158, + "label": "AttributeList", + "type": "List[uint]" + }, + "65532": { + "id": 65532, + "cluster_id": 158, + "label": "FeatureMap", + "type": "uint" + }, + "65533": { + "id": 65533, + "cluster_id": 158, + "label": "ClusterRevision", + "type": "uint" + } + } + }, "159": { "id": 159, "label": "DeviceEnergyManagementMode", @@ -7014,7 +7116,7 @@ export const clusters: Record = { "id": 35, "cluster_id": 257, "label": "AutoRelockTime", - "type": "uint" + "type": "Optional[uint]" }, "36": { "id": 36, @@ -7366,103 +7468,79 @@ export const clusters: Record = { } } }, - "259": { - "id": 259, - "label": "BarrierControl", + "336": { + "id": 336, + "label": "ServiceArea", "attributes": { + "0": { + "id": 0, + "cluster_id": 336, + "label": "SupportedAreas", + "type": "List[ServiceArea.Structs.AreaStruct]" + }, "1": { "id": 1, - "cluster_id": 259, - "label": "BarrierMovingState", - "type": "uint" + "cluster_id": 336, + "label": "SupportedMaps", + "type": "Optional[List[ServiceArea.Structs.MapStruct]]" }, "2": { "id": 2, - "cluster_id": 259, - "label": "BarrierSafetyStatus", - "type": "uint" + "cluster_id": 336, + "label": "SelectedAreas", + "type": "List[uint]" }, "3": { "id": 3, - "cluster_id": 259, - "label": "BarrierCapabilities", - "type": "uint" + "cluster_id": 336, + "label": "CurrentArea", + "type": "Union[NoneType, Nullable, uint]" }, "4": { "id": 4, - "cluster_id": 259, - "label": "BarrierOpenEvents", - "type": "Optional[uint]" + "cluster_id": 336, + "label": "EstimatedEndTime", + "type": "Union[NoneType, Nullable, uint]" }, "5": { "id": 5, - "cluster_id": 259, - "label": "BarrierCloseEvents", - "type": "Optional[uint]" - }, - "6": { - "id": 6, - "cluster_id": 259, - "label": "BarrierCommandOpenEvents", - "type": "Optional[uint]" - }, - "7": { - "id": 7, - "cluster_id": 259, - "label": "BarrierCommandCloseEvents", - "type": "Optional[uint]" - }, - "8": { - "id": 8, - "cluster_id": 259, - "label": "BarrierOpenPeriod", - "type": "Optional[uint]" - }, - "9": { - "id": 9, - "cluster_id": 259, - "label": "BarrierClosePeriod", - "type": "Optional[uint]" - }, - "10": { - "id": 10, - "cluster_id": 259, - "label": "BarrierPosition", - "type": "uint" + "cluster_id": 336, + "label": "Progress", + "type": "Optional[List[ServiceArea.Structs.ProgressStruct]]" }, "65528": { "id": 65528, - "cluster_id": 259, + "cluster_id": 336, "label": "GeneratedCommandList", "type": "List[uint]" }, "65529": { "id": 65529, - "cluster_id": 259, + "cluster_id": 336, "label": "AcceptedCommandList", "type": "List[uint]" }, "65530": { "id": 65530, - "cluster_id": 259, + "cluster_id": 336, "label": "EventList", "type": "List[uint]" }, "65531": { "id": 65531, - "cluster_id": 259, + "cluster_id": 336, "label": "AttributeList", "type": "List[uint]" }, "65532": { "id": 65532, - "cluster_id": 259, + "cluster_id": 336, "label": "FeatureMap", "type": "uint" }, "65533": { "id": 65533, - "cluster_id": 259, + "cluster_id": 336, "label": "ClusterRevision", "type": "uint" } @@ -8009,27 +8087,9 @@ export const clusters: Record = { "82": { "id": 82, "cluster_id": 513, - "label": "PresetsSchedulesEditable", - "type": "Optional[bool]" - }, - "83": { - "id": 83, - "cluster_id": 513, - "label": "TemperatureSetpointHoldPolicy", - "type": "Optional[uint]" - }, - "84": { - "id": 84, - "cluster_id": 513, "label": "SetpointHoldExpiryTimestamp", "type": "Union[NoneType, Nullable, uint]" }, - "85": { - "id": 85, - "cluster_id": 513, - "label": "QueuedPreset", - "type": "Union[NoneType, Nullable, Thermostat.Structs.QueuedPresetStruct]" - }, "65528": { "id": 65528, "cluster_id": 513, @@ -8280,7 +8340,7 @@ export const clusters: Record = { "id": 5, "cluster_id": 768, "label": "DriftCompensation", - "type": "Optional[uint]" + "type": "Optional[ColorControl.Enums.DriftCompensationEnum]" }, "6": { "id": 6, @@ -8298,7 +8358,7 @@ export const clusters: Record = { "id": 8, "cluster_id": 768, "label": "ColorMode", - "type": "uint" + "type": "aenum ColorModeEnum" }, "15": { "id": 15, @@ -8496,7 +8556,7 @@ export const clusters: Record = { "id": 16385, "cluster_id": 768, "label": "EnhancedColorMode", - "type": "uint" + "type": "aenum EnhancedColorModeEnum" }, "16386": { "id": 16386, @@ -9110,6 +9170,18 @@ export const clusters: Record = { "label": "OccupancySensorTypeBitmap", "type": "uint" }, + "3": { + "id": 3, + "cluster_id": 1030, + "label": "HoldTime", + "type": "Optional[uint]" + }, + "4": { + "id": 4, + "cluster_id": 1030, + "label": "HoldTimeLimits", + "type": "Optional[OccupancySensing.Structs.HoldTimeLimitsStruct]" + }, "16": { "id": 16, "cluster_id": 1030, @@ -10282,129 +10354,321 @@ export const clusters: Record = { } } }, - "1283": { - "id": 1283, - "label": "WakeOnLan", + "1105": { + "id": 1105, + "label": "WiFiNetworkManagement", "attributes": { "0": { "id": 0, - "cluster_id": 1283, - "label": "MACAddress", - "type": "Optional[str]" + "cluster_id": 1105, + "label": "Ssid", + "type": "Union[Nullable, bytes]" }, "1": { "id": 1, - "cluster_id": 1283, - "label": "LinkLocalAddress", - "type": "Optional[bytes]" + "cluster_id": 1105, + "label": "PassphraseSurrogate", + "type": "Union[Nullable, uint]" }, "65528": { "id": 65528, - "cluster_id": 1283, + "cluster_id": 1105, "label": "GeneratedCommandList", "type": "List[uint]" }, "65529": { "id": 65529, - "cluster_id": 1283, + "cluster_id": 1105, "label": "AcceptedCommandList", "type": "List[uint]" }, "65530": { "id": 65530, - "cluster_id": 1283, + "cluster_id": 1105, "label": "EventList", "type": "List[uint]" }, "65531": { "id": 65531, - "cluster_id": 1283, + "cluster_id": 1105, "label": "AttributeList", "type": "List[uint]" }, "65532": { "id": 65532, - "cluster_id": 1283, + "cluster_id": 1105, "label": "FeatureMap", "type": "uint" }, "65533": { "id": 65533, - "cluster_id": 1283, + "cluster_id": 1105, "label": "ClusterRevision", "type": "uint" } } }, - "1284": { - "id": 1284, - "label": "Channel", + "1106": { + "id": 1106, + "label": "ThreadBorderRouterManagement", "attributes": { "0": { "id": 0, - "cluster_id": 1284, - "label": "ChannelList", - "type": "Optional[List[Channel.Structs.ChannelInfoStruct]]" + "cluster_id": 1106, + "label": "BorderRouterName", + "type": "str" }, "1": { "id": 1, - "cluster_id": 1284, - "label": "Lineup", - "type": "Union[NoneType, Nullable, Channel.Structs.LineupInfoStruct]" + "cluster_id": 1106, + "label": "BorderAgentID", + "type": "bytes" }, "2": { "id": 2, - "cluster_id": 1284, - "label": "CurrentChannel", - "type": "Union[NoneType, Nullable, Channel.Structs.ChannelInfoStruct]" + "cluster_id": 1106, + "label": "ThreadVersion", + "type": "uint" + }, + "3": { + "id": 3, + "cluster_id": 1106, + "label": "InterfaceEnabled", + "type": "bool" + }, + "4": { + "id": 4, + "cluster_id": 1106, + "label": "ActiveDatasetTimestamp", + "type": "Union[Nullable, uint]" + }, + "5": { + "id": 5, + "cluster_id": 1106, + "label": "PendingDatasetTimestamp", + "type": "Union[Nullable, uint]" }, "65528": { "id": 65528, - "cluster_id": 1284, + "cluster_id": 1106, "label": "GeneratedCommandList", "type": "List[uint]" }, "65529": { "id": 65529, - "cluster_id": 1284, + "cluster_id": 1106, "label": "AcceptedCommandList", "type": "List[uint]" }, "65530": { "id": 65530, - "cluster_id": 1284, + "cluster_id": 1106, "label": "EventList", "type": "List[uint]" }, "65531": { "id": 65531, - "cluster_id": 1284, + "cluster_id": 1106, "label": "AttributeList", "type": "List[uint]" }, "65532": { "id": 65532, - "cluster_id": 1284, + "cluster_id": 1106, "label": "FeatureMap", "type": "uint" }, "65533": { "id": 65533, - "cluster_id": 1284, + "cluster_id": 1106, "label": "ClusterRevision", "type": "uint" } } }, - "1285": { - "id": 1285, - "label": "TargetNavigator", + "1107": { + "id": 1107, + "label": "ThreadNetworkDirectory", "attributes": { "0": { "id": 0, - "cluster_id": 1285, - "label": "TargetList", - "type": "List[TargetNavigator.Structs.TargetInfoStruct]" + "cluster_id": 1107, + "label": "PreferredExtendedPanID", + "type": "Union[Nullable, bytes]" + }, + "1": { + "id": 1, + "cluster_id": 1107, + "label": "ThreadNetworks", + "type": "List[ThreadNetworkDirectory.Structs.ThreadNetworkStruct]" + }, + "2": { + "id": 2, + "cluster_id": 1107, + "label": "ThreadNetworkTableSize", + "type": "uint" + }, + "65528": { + "id": 65528, + "cluster_id": 1107, + "label": "GeneratedCommandList", + "type": "List[uint]" + }, + "65529": { + "id": 65529, + "cluster_id": 1107, + "label": "AcceptedCommandList", + "type": "List[uint]" + }, + "65530": { + "id": 65530, + "cluster_id": 1107, + "label": "EventList", + "type": "List[uint]" + }, + "65531": { + "id": 65531, + "cluster_id": 1107, + "label": "AttributeList", + "type": "List[uint]" + }, + "65532": { + "id": 65532, + "cluster_id": 1107, + "label": "FeatureMap", + "type": "uint" + }, + "65533": { + "id": 65533, + "cluster_id": 1107, + "label": "ClusterRevision", + "type": "uint" + } + } + }, + "1283": { + "id": 1283, + "label": "WakeOnLan", + "attributes": { + "0": { + "id": 0, + "cluster_id": 1283, + "label": "MACAddress", + "type": "Optional[str]" + }, + "1": { + "id": 1, + "cluster_id": 1283, + "label": "LinkLocalAddress", + "type": "Optional[bytes]" + }, + "65528": { + "id": 65528, + "cluster_id": 1283, + "label": "GeneratedCommandList", + "type": "List[uint]" + }, + "65529": { + "id": 65529, + "cluster_id": 1283, + "label": "AcceptedCommandList", + "type": "List[uint]" + }, + "65530": { + "id": 65530, + "cluster_id": 1283, + "label": "EventList", + "type": "List[uint]" + }, + "65531": { + "id": 65531, + "cluster_id": 1283, + "label": "AttributeList", + "type": "List[uint]" + }, + "65532": { + "id": 65532, + "cluster_id": 1283, + "label": "FeatureMap", + "type": "uint" + }, + "65533": { + "id": 65533, + "cluster_id": 1283, + "label": "ClusterRevision", + "type": "uint" + } + } + }, + "1284": { + "id": 1284, + "label": "Channel", + "attributes": { + "0": { + "id": 0, + "cluster_id": 1284, + "label": "ChannelList", + "type": "Optional[List[Channel.Structs.ChannelInfoStruct]]" + }, + "1": { + "id": 1, + "cluster_id": 1284, + "label": "Lineup", + "type": "Union[NoneType, Nullable, Channel.Structs.LineupInfoStruct]" + }, + "2": { + "id": 2, + "cluster_id": 1284, + "label": "CurrentChannel", + "type": "Union[NoneType, Nullable, Channel.Structs.ChannelInfoStruct]" + }, + "65528": { + "id": 65528, + "cluster_id": 1284, + "label": "GeneratedCommandList", + "type": "List[uint]" + }, + "65529": { + "id": 65529, + "cluster_id": 1284, + "label": "AcceptedCommandList", + "type": "List[uint]" + }, + "65530": { + "id": 65530, + "cluster_id": 1284, + "label": "EventList", + "type": "List[uint]" + }, + "65531": { + "id": 65531, + "cluster_id": 1284, + "label": "AttributeList", + "type": "List[uint]" + }, + "65532": { + "id": 65532, + "cluster_id": 1284, + "label": "FeatureMap", + "type": "uint" + }, + "65533": { + "id": 65533, + "cluster_id": 1284, + "label": "ClusterRevision", + "type": "uint" + } + } + }, + "1285": { + "id": 1285, + "label": "TargetNavigator", + "attributes": { + "0": { + "id": 0, + "cluster_id": 1285, + "label": "TargetList", + "type": "List[TargetNavigator.Structs.TargetInfoStruct]" }, "1": { "id": 1, @@ -11122,811 +11386,103 @@ export const clusters: Record = { } } }, - "2820": { - "id": 2820, - "label": "ElectricalMeasurement", + "1872": { + "id": 1872, + "label": "EcosystemInformation", "attributes": { "0": { "id": 0, - "cluster_id": 2820, - "label": "MeasurementType", - "type": "Optional[uint]" - }, - "256": { - "id": 256, - "cluster_id": 2820, - "label": "DcVoltage", - "type": "Optional[int]" - }, - "257": { - "id": 257, - "cluster_id": 2820, - "label": "DcVoltageMin", - "type": "Optional[int]" - }, - "258": { - "id": 258, - "cluster_id": 2820, - "label": "DcVoltageMax", - "type": "Optional[int]" - }, - "259": { - "id": 259, - "cluster_id": 2820, - "label": "DcCurrent", - "type": "Optional[int]" - }, - "260": { - "id": 260, - "cluster_id": 2820, - "label": "DcCurrentMin", - "type": "Optional[int]" - }, - "261": { - "id": 261, - "cluster_id": 2820, - "label": "DcCurrentMax", - "type": "Optional[int]" - }, - "262": { - "id": 262, - "cluster_id": 2820, - "label": "DcPower", - "type": "Optional[int]" - }, - "263": { - "id": 263, - "cluster_id": 2820, - "label": "DcPowerMin", - "type": "Optional[int]" - }, - "264": { - "id": 264, - "cluster_id": 2820, - "label": "DcPowerMax", - "type": "Optional[int]" - }, - "512": { - "id": 512, - "cluster_id": 2820, - "label": "DcVoltageMultiplier", - "type": "Optional[uint]" - }, - "513": { - "id": 513, - "cluster_id": 2820, - "label": "DcVoltageDivisor", - "type": "Optional[uint]" - }, - "514": { - "id": 514, - "cluster_id": 2820, - "label": "DcCurrentMultiplier", - "type": "Optional[uint]" - }, - "515": { - "id": 515, - "cluster_id": 2820, - "label": "DcCurrentDivisor", - "type": "Optional[uint]" - }, - "516": { - "id": 516, - "cluster_id": 2820, - "label": "DcPowerMultiplier", - "type": "Optional[uint]" - }, - "517": { - "id": 517, - "cluster_id": 2820, - "label": "DcPowerDivisor", - "type": "Optional[uint]" - }, - "768": { - "id": 768, - "cluster_id": 2820, - "label": "AcFrequency", - "type": "Optional[uint]" - }, - "769": { - "id": 769, - "cluster_id": 2820, - "label": "AcFrequencyMin", - "type": "Optional[uint]" - }, - "770": { - "id": 770, - "cluster_id": 2820, - "label": "AcFrequencyMax", - "type": "Optional[uint]" - }, - "771": { - "id": 771, - "cluster_id": 2820, - "label": "NeutralCurrent", - "type": "Optional[uint]" - }, - "772": { - "id": 772, - "cluster_id": 2820, - "label": "TotalActivePower", - "type": "Optional[int]" - }, - "773": { - "id": 773, - "cluster_id": 2820, - "label": "TotalReactivePower", - "type": "Optional[int]" - }, - "774": { - "id": 774, - "cluster_id": 2820, - "label": "TotalApparentPower", - "type": "Optional[uint]" - }, - "775": { - "id": 775, - "cluster_id": 2820, - "label": "Measured1stHarmonicCurrent", - "type": "Optional[int]" - }, - "776": { - "id": 776, - "cluster_id": 2820, - "label": "Measured3rdHarmonicCurrent", - "type": "Optional[int]" - }, - "777": { - "id": 777, - "cluster_id": 2820, - "label": "Measured5thHarmonicCurrent", - "type": "Optional[int]" - }, - "778": { - "id": 778, - "cluster_id": 2820, - "label": "Measured7thHarmonicCurrent", - "type": "Optional[int]" - }, - "779": { - "id": 779, - "cluster_id": 2820, - "label": "Measured9thHarmonicCurrent", - "type": "Optional[int]" - }, - "780": { - "id": 780, - "cluster_id": 2820, - "label": "Measured11thHarmonicCurrent", - "type": "Optional[int]" - }, - "781": { - "id": 781, - "cluster_id": 2820, - "label": "MeasuredPhase1stHarmonicCurrent", - "type": "Optional[int]" - }, - "782": { - "id": 782, - "cluster_id": 2820, - "label": "MeasuredPhase3rdHarmonicCurrent", - "type": "Optional[int]" - }, - "783": { - "id": 783, - "cluster_id": 2820, - "label": "MeasuredPhase5thHarmonicCurrent", - "type": "Optional[int]" - }, - "784": { - "id": 784, - "cluster_id": 2820, - "label": "MeasuredPhase7thHarmonicCurrent", - "type": "Optional[int]" - }, - "785": { - "id": 785, - "cluster_id": 2820, - "label": "MeasuredPhase9thHarmonicCurrent", - "type": "Optional[int]" - }, - "786": { - "id": 786, - "cluster_id": 2820, - "label": "MeasuredPhase11thHarmonicCurrent", - "type": "Optional[int]" - }, - "1024": { - "id": 1024, - "cluster_id": 2820, - "label": "AcFrequencyMultiplier", - "type": "Optional[uint]" - }, - "1025": { - "id": 1025, - "cluster_id": 2820, - "label": "AcFrequencyDivisor", - "type": "Optional[uint]" - }, - "1026": { - "id": 1026, - "cluster_id": 2820, - "label": "PowerMultiplier", - "type": "Optional[uint]" - }, - "1027": { - "id": 1027, - "cluster_id": 2820, - "label": "PowerDivisor", - "type": "Optional[uint]" - }, - "1028": { - "id": 1028, - "cluster_id": 2820, - "label": "HarmonicCurrentMultiplier", - "type": "Optional[int]" - }, - "1029": { - "id": 1029, - "cluster_id": 2820, - "label": "PhaseHarmonicCurrentMultiplier", - "type": "Optional[int]" - }, - "1280": { - "id": 1280, - "cluster_id": 2820, - "label": "InstantaneousVoltage", - "type": "Optional[int]" - }, - "1281": { - "id": 1281, - "cluster_id": 2820, - "label": "InstantaneousLineCurrent", - "type": "Optional[uint]" - }, - "1282": { - "id": 1282, - "cluster_id": 2820, - "label": "InstantaneousActiveCurrent", - "type": "Optional[int]" - }, - "1283": { - "id": 1283, - "cluster_id": 2820, - "label": "InstantaneousReactiveCurrent", - "type": "Optional[int]" - }, - "1284": { - "id": 1284, - "cluster_id": 2820, - "label": "InstantaneousPower", - "type": "Optional[int]" - }, - "1285": { - "id": 1285, - "cluster_id": 2820, - "label": "RmsVoltage", - "type": "Optional[uint]" - }, - "1286": { - "id": 1286, - "cluster_id": 2820, - "label": "RmsVoltageMin", - "type": "Optional[uint]" - }, - "1287": { - "id": 1287, - "cluster_id": 2820, - "label": "RmsVoltageMax", - "type": "Optional[uint]" - }, - "1288": { - "id": 1288, - "cluster_id": 2820, - "label": "RmsCurrent", - "type": "Optional[uint]" - }, - "1289": { - "id": 1289, - "cluster_id": 2820, - "label": "RmsCurrentMin", - "type": "Optional[uint]" - }, - "1290": { - "id": 1290, - "cluster_id": 2820, - "label": "RmsCurrentMax", - "type": "Optional[uint]" - }, - "1291": { - "id": 1291, - "cluster_id": 2820, - "label": "ActivePower", - "type": "Optional[int]" - }, - "1292": { - "id": 1292, - "cluster_id": 2820, - "label": "ActivePowerMin", - "type": "Optional[int]" - }, - "1293": { - "id": 1293, - "cluster_id": 2820, - "label": "ActivePowerMax", - "type": "Optional[int]" - }, - "1294": { - "id": 1294, - "cluster_id": 2820, - "label": "ReactivePower", - "type": "Optional[int]" - }, - "1295": { - "id": 1295, - "cluster_id": 2820, - "label": "ApparentPower", - "type": "Optional[uint]" - }, - "1296": { - "id": 1296, - "cluster_id": 2820, - "label": "PowerFactor", - "type": "Optional[int]" - }, - "1297": { - "id": 1297, - "cluster_id": 2820, - "label": "AverageRmsVoltageMeasurementPeriod", - "type": "Optional[uint]" - }, - "1299": { - "id": 1299, - "cluster_id": 2820, - "label": "AverageRmsUnderVoltageCounter", - "type": "Optional[uint]" - }, - "1300": { - "id": 1300, - "cluster_id": 2820, - "label": "RmsExtremeOverVoltagePeriod", - "type": "Optional[uint]" - }, - "1301": { - "id": 1301, - "cluster_id": 2820, - "label": "RmsExtremeUnderVoltagePeriod", - "type": "Optional[uint]" - }, - "1302": { - "id": 1302, - "cluster_id": 2820, - "label": "RmsVoltageSagPeriod", - "type": "Optional[uint]" - }, - "1303": { - "id": 1303, - "cluster_id": 2820, - "label": "RmsVoltageSwellPeriod", - "type": "Optional[uint]" - }, - "1536": { - "id": 1536, - "cluster_id": 2820, - "label": "AcVoltageMultiplier", - "type": "Optional[uint]" - }, - "1537": { - "id": 1537, - "cluster_id": 2820, - "label": "AcVoltageDivisor", - "type": "Optional[uint]" - }, - "1538": { - "id": 1538, - "cluster_id": 2820, - "label": "AcCurrentMultiplier", - "type": "Optional[uint]" - }, - "1539": { - "id": 1539, - "cluster_id": 2820, - "label": "AcCurrentDivisor", - "type": "Optional[uint]" - }, - "1540": { - "id": 1540, - "cluster_id": 2820, - "label": "AcPowerMultiplier", - "type": "Optional[uint]" - }, - "1541": { - "id": 1541, - "cluster_id": 2820, - "label": "AcPowerDivisor", - "type": "Optional[uint]" - }, - "1792": { - "id": 1792, - "cluster_id": 2820, - "label": "OverloadAlarmsMask", - "type": "Optional[uint]" - }, - "1793": { - "id": 1793, - "cluster_id": 2820, - "label": "VoltageOverload", - "type": "Optional[int]" - }, - "1794": { - "id": 1794, - "cluster_id": 2820, - "label": "CurrentOverload", - "type": "Optional[int]" - }, - "2048": { - "id": 2048, - "cluster_id": 2820, - "label": "AcOverloadAlarmsMask", - "type": "Optional[uint]" - }, - "2049": { - "id": 2049, - "cluster_id": 2820, - "label": "AcVoltageOverload", - "type": "Optional[int]" - }, - "2050": { - "id": 2050, - "cluster_id": 2820, - "label": "AcCurrentOverload", - "type": "Optional[int]" - }, - "2051": { - "id": 2051, - "cluster_id": 2820, - "label": "AcActivePowerOverload", - "type": "Optional[int]" - }, - "2052": { - "id": 2052, - "cluster_id": 2820, - "label": "AcReactivePowerOverload", - "type": "Optional[int]" - }, - "2053": { - "id": 2053, - "cluster_id": 2820, - "label": "AverageRmsOverVoltage", - "type": "Optional[int]" - }, - "2054": { - "id": 2054, - "cluster_id": 2820, - "label": "AverageRmsUnderVoltage", - "type": "Optional[int]" - }, - "2055": { - "id": 2055, - "cluster_id": 2820, - "label": "RmsExtremeOverVoltage", - "type": "Optional[int]" - }, - "2056": { - "id": 2056, - "cluster_id": 2820, - "label": "RmsExtremeUnderVoltage", - "type": "Optional[int]" - }, - "2057": { - "id": 2057, - "cluster_id": 2820, - "label": "RmsVoltageSag", - "type": "Optional[int]" - }, - "2058": { - "id": 2058, - "cluster_id": 2820, - "label": "RmsVoltageSwell", - "type": "Optional[int]" - }, - "2305": { - "id": 2305, - "cluster_id": 2820, - "label": "LineCurrentPhaseB", - "type": "Optional[uint]" - }, - "2306": { - "id": 2306, - "cluster_id": 2820, - "label": "ActiveCurrentPhaseB", - "type": "Optional[int]" - }, - "2307": { - "id": 2307, - "cluster_id": 2820, - "label": "ReactiveCurrentPhaseB", - "type": "Optional[int]" - }, - "2309": { - "id": 2309, - "cluster_id": 2820, - "label": "RmsVoltagePhaseB", - "type": "Optional[uint]" - }, - "2310": { - "id": 2310, - "cluster_id": 2820, - "label": "RmsVoltageMinPhaseB", - "type": "Optional[uint]" - }, - "2311": { - "id": 2311, - "cluster_id": 2820, - "label": "RmsVoltageMaxPhaseB", - "type": "Optional[uint]" - }, - "2312": { - "id": 2312, - "cluster_id": 2820, - "label": "RmsCurrentPhaseB", - "type": "Optional[uint]" - }, - "2313": { - "id": 2313, - "cluster_id": 2820, - "label": "RmsCurrentMinPhaseB", - "type": "Optional[uint]" - }, - "2314": { - "id": 2314, - "cluster_id": 2820, - "label": "RmsCurrentMaxPhaseB", - "type": "Optional[uint]" - }, - "2315": { - "id": 2315, - "cluster_id": 2820, - "label": "ActivePowerPhaseB", - "type": "Optional[int]" - }, - "2316": { - "id": 2316, - "cluster_id": 2820, - "label": "ActivePowerMinPhaseB", - "type": "Optional[int]" - }, - "2317": { - "id": 2317, - "cluster_id": 2820, - "label": "ActivePowerMaxPhaseB", - "type": "Optional[int]" + "cluster_id": 1872, + "label": "DeviceDirectory", + "type": "List[EcosystemInformation.Structs.EcosystemDeviceStruct]" }, - "2318": { - "id": 2318, - "cluster_id": 2820, - "label": "ReactivePowerPhaseB", - "type": "Optional[int]" - }, - "2319": { - "id": 2319, - "cluster_id": 2820, - "label": "ApparentPowerPhaseB", - "type": "Optional[uint]" - }, - "2320": { - "id": 2320, - "cluster_id": 2820, - "label": "PowerFactorPhaseB", - "type": "Optional[int]" - }, - "2321": { - "id": 2321, - "cluster_id": 2820, - "label": "AverageRmsVoltageMeasurementPeriodPhaseB", - "type": "Optional[uint]" - }, - "2322": { - "id": 2322, - "cluster_id": 2820, - "label": "AverageRmsOverVoltageCounterPhaseB", - "type": "Optional[uint]" - }, - "2323": { - "id": 2323, - "cluster_id": 2820, - "label": "AverageRmsUnderVoltageCounterPhaseB", - "type": "Optional[uint]" - }, - "2324": { - "id": 2324, - "cluster_id": 2820, - "label": "RmsExtremeOverVoltagePeriodPhaseB", - "type": "Optional[uint]" - }, - "2325": { - "id": 2325, - "cluster_id": 2820, - "label": "RmsExtremeUnderVoltagePeriodPhaseB", - "type": "Optional[uint]" - }, - "2326": { - "id": 2326, - "cluster_id": 2820, - "label": "RmsVoltageSagPeriodPhaseB", - "type": "Optional[uint]" - }, - "2327": { - "id": 2327, - "cluster_id": 2820, - "label": "RmsVoltageSwellPeriodPhaseB", - "type": "Optional[uint]" - }, - "2561": { - "id": 2561, - "cluster_id": 2820, - "label": "LineCurrentPhaseC", - "type": "Optional[uint]" - }, - "2562": { - "id": 2562, - "cluster_id": 2820, - "label": "ActiveCurrentPhaseC", - "type": "Optional[int]" - }, - "2563": { - "id": 2563, - "cluster_id": 2820, - "label": "ReactiveCurrentPhaseC", - "type": "Optional[int]" - }, - "2565": { - "id": 2565, - "cluster_id": 2820, - "label": "RmsVoltagePhaseC", - "type": "Optional[uint]" - }, - "2566": { - "id": 2566, - "cluster_id": 2820, - "label": "RmsVoltageMinPhaseC", - "type": "Optional[uint]" - }, - "2567": { - "id": 2567, - "cluster_id": 2820, - "label": "RmsVoltageMaxPhaseC", - "type": "Optional[uint]" - }, - "2568": { - "id": 2568, - "cluster_id": 2820, - "label": "RmsCurrentPhaseC", - "type": "Optional[uint]" - }, - "2569": { - "id": 2569, - "cluster_id": 2820, - "label": "RmsCurrentMinPhaseC", - "type": "Optional[uint]" - }, - "2570": { - "id": 2570, - "cluster_id": 2820, - "label": "RmsCurrentMaxPhaseC", - "type": "Optional[uint]" - }, - "2571": { - "id": 2571, - "cluster_id": 2820, - "label": "ActivePowerPhaseC", - "type": "Optional[int]" - }, - "2572": { - "id": 2572, - "cluster_id": 2820, - "label": "ActivePowerMinPhaseC", - "type": "Optional[int]" - }, - "2573": { - "id": 2573, - "cluster_id": 2820, - "label": "ActivePowerMaxPhaseC", - "type": "Optional[int]" - }, - "2574": { - "id": 2574, - "cluster_id": 2820, - "label": "ReactivePowerPhaseC", - "type": "Optional[int]" - }, - "2575": { - "id": 2575, - "cluster_id": 2820, - "label": "ApparentPowerPhaseC", - "type": "Optional[uint]" - }, - "2576": { - "id": 2576, - "cluster_id": 2820, - "label": "PowerFactorPhaseC", - "type": "Optional[int]" - }, - "2577": { - "id": 2577, - "cluster_id": 2820, - "label": "AverageRmsVoltageMeasurementPeriodPhaseC", - "type": "Optional[uint]" + "1": { + "id": 1, + "cluster_id": 1872, + "label": "LocationDirectory", + "type": "List[EcosystemInformation.Structs.EcosystemLocationStruct]" }, - "2578": { - "id": 2578, - "cluster_id": 2820, - "label": "AverageRmsOverVoltageCounterPhaseC", - "type": "Optional[uint]" + "65528": { + "id": 65528, + "cluster_id": 1872, + "label": "GeneratedCommandList", + "type": "List[uint]" }, - "2579": { - "id": 2579, - "cluster_id": 2820, - "label": "AverageRmsUnderVoltageCounterPhaseC", - "type": "Optional[uint]" + "65529": { + "id": 65529, + "cluster_id": 1872, + "label": "AcceptedCommandList", + "type": "List[uint]" }, - "2580": { - "id": 2580, - "cluster_id": 2820, - "label": "RmsExtremeOverVoltagePeriodPhaseC", - "type": "Optional[uint]" + "65530": { + "id": 65530, + "cluster_id": 1872, + "label": "EventList", + "type": "List[uint]" }, - "2581": { - "id": 2581, - "cluster_id": 2820, - "label": "RmsExtremeUnderVoltagePeriodPhaseC", - "type": "Optional[uint]" + "65531": { + "id": 65531, + "cluster_id": 1872, + "label": "AttributeList", + "type": "List[uint]" }, - "2582": { - "id": 2582, - "cluster_id": 2820, - "label": "RmsVoltageSagPeriodPhaseC", - "type": "Optional[uint]" + "65532": { + "id": 65532, + "cluster_id": 1872, + "label": "FeatureMap", + "type": "uint" }, - "2583": { - "id": 2583, - "cluster_id": 2820, - "label": "RmsVoltageSwellPeriodPhaseC", - "type": "Optional[uint]" + "65533": { + "id": 65533, + "cluster_id": 1872, + "label": "ClusterRevision", + "type": "uint" + } + } + }, + "1873": { + "id": 1873, + "label": "CommissionerControl", + "attributes": { + "0": { + "id": 0, + "cluster_id": 1873, + "label": "SupportedDeviceCategories", + "type": "uint" }, "65528": { "id": 65528, - "cluster_id": 2820, + "cluster_id": 1873, "label": "GeneratedCommandList", "type": "List[uint]" }, "65529": { "id": 65529, - "cluster_id": 2820, + "cluster_id": 1873, "label": "AcceptedCommandList", "type": "List[uint]" }, "65530": { "id": 65530, - "cluster_id": 2820, + "cluster_id": 1873, "label": "EventList", "type": "List[uint]" }, "65531": { "id": 65531, - "cluster_id": 2820, + "cluster_id": 1873, "label": "AttributeList", "type": "List[uint]" }, "65532": { "id": 65532, - "cluster_id": 2820, + "cluster_id": 1873, "label": "FeatureMap", "type": "uint" }, "65533": { "id": 65533, - "cluster_id": 2820, + "cluster_id": 1873, "label": "ClusterRevision", "type": "uint" } @@ -12218,12 +11774,36 @@ export const clusters: Record = { "label": "ClusterErrorBoolean", "type": "bool" }, + "51": { + "id": 51, + "cluster_id": 4294048773, + "label": "GlobalEnum", + "type": "aenum TestGlobalEnum" + }, + "52": { + "id": 52, + "cluster_id": 4294048773, + "label": "GlobalStruct", + "type": "Globals.Structs.TestGlobalStruct" + }, "255": { "id": 255, "cluster_id": 4294048773, "label": "Unsupported", "type": "Optional[bool]" }, + "12288": { + "id": 12288, + "cluster_id": 4294048773, + "label": "ReadFailureCode", + "type": "Optional[uint]" + }, + "12289": { + "id": 12289, + "cluster_id": 4294048773, + "label": "FailureInt32U", + "type": "Optional[uint]" + }, "16384": { "id": 16384, "cluster_id": 4294048773, @@ -12428,6 +12008,18 @@ export const clusters: Record = { "label": "WriteOnlyInt8u", "type": "Optional[uint]" }, + "16435": { + "id": 16435, + "cluster_id": 4294048773, + "label": "NullableGlobalEnum", + "type": "Union[Nullable, Globals.Enums.TestGlobalEnum]" + }, + "16436": { + "id": 16436, + "cluster_id": 4294048773, + "label": "NullableGlobalStruct", + "type": "Union[Nullable, Globals.Structs.TestGlobalStruct]" + }, "65528": { "id": 65528, "cluster_id": 4294048773, @@ -12601,6 +12193,30 @@ export const clusters: Record = { "cluster_id": 319486977, "label": "Current", "type": "float32" + }, + "319422483": { + "id": 319422483, + "cluster_id": 319486977, + "label": "Altitude", + "type": "float32" + }, + "319422484": { + "id": 319422484, + "cluster_id": 319486977, + "label": "Pressure", + "type": "float32" + }, + "319422488": { + "id": 319422488, + "cluster_id": 319486977, + "label": "ValvePosition", + "type": "int" + }, + "319422477": { + "id": 319422477, + "cluster_id": 319486977, + "label": "MotionSensitivity", + "type": "int" } } }, diff --git a/matter_server/client/models/device_types.py b/matter_server/client/models/device_types.py index 694532aa..e43a5fe5 100644 --- a/matter_server/client/models/device_types.py +++ b/matter_server/client/models/device_types.py @@ -116,8 +116,8 @@ class Aggregator(DeviceType, device_type=0x000E): } -class BridgedDevice(DeviceType, device_type=0x0013): - """Bridged Device.""" +class BridgedNode(DeviceType, device_type=0x0013): + """Bridged Node.""" clusters = { all_clusters.Descriptor, @@ -594,7 +594,6 @@ class SmokeCoAlarm(DeviceType, device_type=0x0076): """Smoke CO Alarm.""" clusters = { - all_clusters.Descriptor, all_clusters.Identify, all_clusters.Groups, all_clusters.SmokeCoAlarm, @@ -737,6 +736,7 @@ class RoboticVacuumCleaner(DeviceType, device_type=0x0074): all_clusters.RvcRunMode, all_clusters.RvcCleanMode, all_clusters.RvcOperationalState, + all_clusters.ServiceArea, } @@ -796,11 +796,24 @@ class RainSensor(DeviceType, device_type=0x0044): } -class NetworkInfrastructureManager(DeviceType, device_type=0xFFF10010): +class NetworkInfrastructureManager(DeviceType, device_type=0x0090): """Network Infrastructure Manager.""" clusters = { all_clusters.Descriptor, + all_clusters.ThreadNetworkDirectory, + all_clusters.WiFiNetworkManagement, + all_clusters.ThreadBorderRouterManagement, + } + + +class ThreadBorderRouter(DeviceType, device_type=0x0091): + """Thread Border Router.""" + + clusters = { + all_clusters.Descriptor, + all_clusters.ThreadNetworkDiagnostics, + all_clusters.ThreadBorderRouterManagement, } @@ -811,7 +824,6 @@ class AllClustersAppServerExample(DeviceType, device_type=0xFFF10003): all_clusters.Identify, all_clusters.Descriptor, all_clusters.Binding, - all_clusters.BarrierControl, all_clusters.ColorControl, all_clusters.DoorLock, all_clusters.Groups, @@ -822,12 +834,15 @@ class AllClustersAppServerExample(DeviceType, device_type=0xFFF10003): } -class SecondaryNetworkCommissioningDeviceType(DeviceType, device_type=0xFFF10002): - """Secondary Network Commissioning Device Type.""" +class SecondaryNetworkInterface(DeviceType, device_type=0x0019): + """Secondary Network Interface.""" clusters = { all_clusters.NetworkCommissioning, all_clusters.Descriptor, + all_clusters.EthernetNetworkDiagnostics, + all_clusters.WiFiNetworkDiagnostics, + all_clusters.ThreadNetworkDiagnostics, } @@ -845,6 +860,7 @@ class CookSurface(DeviceType, device_type=0x0077): """Cook Surface.""" clusters = { + all_clusters.OnOff, all_clusters.Descriptor, all_clusters.TemperatureControl, all_clusters.TemperatureMeasurement, @@ -861,3 +877,52 @@ class Evse(DeviceType, device_type=0x050C): all_clusters.EnergyEvseMode, all_clusters.TemperatureMeasurement, } + + +class DeviceEnergyManagement(DeviceType, device_type=0x050D): + """Device Energy Management.""" + + clusters = { + all_clusters.Descriptor, + all_clusters.DeviceEnergyManagement, + all_clusters.DeviceEnergyManagementMode, + } + + +class WaterHeater(DeviceType, device_type=0x050F): + """Water Heater.""" + + clusters = { + all_clusters.Descriptor, + all_clusters.Identify, + all_clusters.Thermostat, + all_clusters.WaterHeaterManagement, + all_clusters.WaterHeaterMode, + } + + +class HeatPump(DeviceType, device_type=0x0309): + """Heat Pump.""" + + clusters = { + all_clusters.Descriptor, + all_clusters.Identify, + } + + +class SolarPower(DeviceType, device_type=0x0017): + """Solar Power.""" + + clusters = { + all_clusters.Descriptor, + all_clusters.Identify, + } + + +class BatteryStorage(DeviceType, device_type=0x0018): + """Battery Storage.""" + + clusters = { + all_clusters.Descriptor, + all_clusters.Identify, + } diff --git a/matter_server/client/models/node.py b/matter_server/client/models/node.py index 81336e62..66b2c6ef 100644 --- a/matter_server/client/models/node.py +++ b/matter_server/client/models/node.py @@ -19,7 +19,7 @@ from .device_types import ( ALL_TYPES as DEVICE_TYPES, Aggregator, - BridgedDevice, + BridgedNode, DeviceType, RootNode, ) @@ -75,7 +75,7 @@ def __init__( @property def is_bridged_device(self) -> bool: """Return if this endpoint represents a Bridged device.""" - return BridgedDevice in self.device_types + return BridgedNode in self.device_types @property def is_composed_device(self) -> bool: diff --git a/pyproject.toml b/pyproject.toml index 0680d5e5..65d9b106 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -20,7 +20,7 @@ dependencies = [ "async-timeout", "coloredlogs", "orjson", - "home-assistant-chip-clusters==2024.9.0", + "home-assistant-chip-clusters==2024.11.0", ] description = "Python Matter WebSocket Server" license = {text = "Apache-2.0"} @@ -39,7 +39,7 @@ server = [ "cryptography==43.0.3", "orjson==3.10.11", "zeroconf==0.136.0", - "home-assistant-chip-core==2024.9.0", + "home-assistant-chip-core==2024.11.0", ] test = [ "aioresponses==0.7.7", diff --git a/scripts/generate_devices.py b/scripts/generate_devices.py index d073e13e..725fc34b 100644 --- a/scripts/generate_devices.py +++ b/scripts/generate_devices.py @@ -88,12 +88,6 @@ def __hash__(self) -> int: for device in data["configurator"]["deviceType"]: name = device["typeName"] - if not name.startswith("Matter "): - print("Unexpected: device doesn't start with Matter. Skipping") - continue - - name = name[len("Matter ") :] - print(name, device["deviceId"]["#text"]) clusters = device["clusters"]["include"] From 6029306f86294a954b0d68c4d193e7265ea7435d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 25 Nov 2024 09:50:56 +0100 Subject: [PATCH 055/400] Bump orjson from 3.10.11 to 3.10.12 (#969) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 65d9b106..6c00ee79 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,7 +37,7 @@ server = [ "async-timeout==5.0.1", "coloredlogs==15.0.1", "cryptography==43.0.3", - "orjson==3.10.11", + "orjson==3.10.12", "zeroconf==0.136.0", "home-assistant-chip-core==2024.11.0", ] From b360aa23d2400c9059f89ff4d86818797c64ea23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20BOU=C3=89?= Date: Mon, 25 Nov 2024 09:52:39 +0100 Subject: [PATCH 056/400] Fix websocket server port in dashboard README (#962) --- dashboard/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dashboard/README.md b/dashboard/README.md index 1b431b03..8d9349f2 100644 --- a/dashboard/README.md +++ b/dashboard/README.md @@ -20,9 +20,9 @@ script/develop The dashboard will be available at [http://localhost:5010](http://localhost:5010). When you open it from localhost, it will ask you for your websocket server URL. -The websocket URL of the Home Assistant add-on will be something like `ws://homeassistant.local:5080`. If you are running the Python Matter Server locally, it will be `ws://localhost:5080`. +The websocket URL of the Home Assistant add-on will be something like `ws://homeassistant.local:5580`. If you are running the Python Matter Server locally, it will be `ws://localhost:5580`. -If you want to use the dashboard with the Python Matter Server Home Assistant add-on, you need to configure it to make the WebSocket server available on the network. Go to the [add-on info page](https://my.home-assistant.io/redirect/supervisor_addon/?addon=core_matter_server), click on Configuration. Under "Network", show disabled ports and enter the port you want to use for the WebSocket server (e.g. 5080). Then, click "save" and restart the add-on when prompted. +If you want to use the dashboard with the Python Matter Server Home Assistant add-on, you need to configure it to make the WebSocket server available on the network. Go to the [add-on info page](https://my.home-assistant.io/redirect/supervisor_addon/?addon=core_matter_server), click on Configuration. Under "Network", show disabled ports and enter the port you want to use for the WebSocket server (e.g. 5580). Then, click "save" and restart the add-on when prompted. ## Production build From ddd89a729518e4d532d2a76af6116cf12ca8dc30 Mon Sep 17 00:00:00 2001 From: waclaw66 Date: Mon, 25 Nov 2024 09:52:56 +0100 Subject: [PATCH 057/400] Add support for HACS hass_ingress integration (#940) --- dashboard/src/entrypoint/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dashboard/src/entrypoint/main.ts b/dashboard/src/entrypoint/main.ts index 21c157f3..faaa7982 100644 --- a/dashboard/src/entrypoint/main.ts +++ b/dashboard/src/entrypoint/main.ts @@ -6,7 +6,7 @@ async function main() { let url = ""; // Detect if we're running in the (production) webserver included in the matter server or not. - const isProductionServer = location.href.includes(":5580") || location.href.includes("hassio_ingress"); + const isProductionServer = location.href.includes(":5580") || location.href.includes("hassio_ingress") || location.href.includes("/api/ingress/"); if (!isProductionServer) { // development server, ask for url to matter server From 6f70f8fc810155c945821f709df92f309e01ce5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20BOU=C3=89?= Date: Mon, 25 Nov 2024 09:54:10 +0100 Subject: [PATCH 058/400] Add device type(s) in node-view - Endpoint list (#942) --- dashboard/src/pages/matter-node-view.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dashboard/src/pages/matter-node-view.ts b/dashboard/src/pages/matter-node-view.ts index 02df5e54..718f2950 100644 --- a/dashboard/src/pages/matter-node-view.ts +++ b/dashboard/src/pages/matter-node-view.ts @@ -11,6 +11,7 @@ import "./components/header"; import "./components/node-details"; import { mdiChevronRight } from "@mdi/js"; import { MatterNode } from "../client/models/node"; +import { getEndpointDeviceTypes } from "./matter-endpoint-view"; declare global { interface HTMLElementTagNameMap { @@ -72,6 +73,9 @@ class MatterNodeView extends LitElement {
Endpoint ${endPointId}
+
+ Device Type(s): ${getEndpointDeviceTypes(this.node!, endPointId).map(deviceType => { return deviceType.label }).join(" / ")} +
`; From cd696f657412355654920d5080aa9f69ad53b8ef Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 25 Nov 2024 09:54:26 +0100 Subject: [PATCH 059/400] Bump aiohttp from 3.11.2 to 3.11.7 (#967) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 6c00ee79..b6c8d32f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,7 +32,7 @@ version = "0.0.0" [project.optional-dependencies] server = [ - "aiohttp==3.11.2", + "aiohttp==3.11.7", "aiorun==2024.8.1", "async-timeout==5.0.1", "coloredlogs==15.0.1", From fdd57ef39c5306f2cf9e46d63a735f8f2395a973 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 25 Nov 2024 09:56:03 +0100 Subject: [PATCH 060/400] Bump zeroconf from 0.136.0 to 0.136.2 (#968) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index b6c8d32f..dae49dbd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,7 +38,7 @@ server = [ "coloredlogs==15.0.1", "cryptography==43.0.3", "orjson==3.10.12", - "zeroconf==0.136.0", + "zeroconf==0.136.2", "home-assistant-chip-core==2024.11.0", ] test = [ From 5f210467b151a1e4d90caf76c34a6a851699c434 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20BOU=C3=89?= Date: Mon, 25 Nov 2024 09:57:00 +0100 Subject: [PATCH 061/400] Add Manual pairing code in README (#963) --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index b1dc8c80..ae8fc2a0 100644 --- a/README.md +++ b/README.md @@ -167,6 +167,7 @@ Inform the controller about the Thread credentials it needs to use when commissi Commission a new device. For WiFi or Thread based devices, the credentials need to be set upfront, otherwise, commissioning will fail. Supports both QR-code syntax (MT:...) and manual pairing code as string. The controller will use bluetooth for the commissioning of wireless devices. If the machine running the Python Matter Server controller lacks Bluetooth support, commissioning will only work for devices already connected to the network (by cable or another controller). +Matter QR-code ```json { "message_id": "2", @@ -177,6 +178,18 @@ The controller will use bluetooth for the commissioning of wireless devices. If } ``` +Manual pairing code +``` +{ + "message_id": "2", + "command": "commission_with_code", + "args": { + "code": "35325335079", + "network_only": true + } +} +``` + **Open Commissioning window** Open a commissioning window to commission a device present on this controller to another. Returns code to use as discriminator. From 6f4007ac0795afb0417237af3c60f0a94dcff261 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20BOU=C3=89?= Date: Mon, 25 Nov 2024 09:57:39 +0100 Subject: [PATCH 062/400] Improve README readability (#964) --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ae8fc2a0..50679e6e 100644 --- a/README.md +++ b/README.md @@ -137,6 +137,7 @@ NOTE: Both Matter and this implementation are in an early state and features are This list is not intended to be complete, for a complete oversight see the client implementation. **Set WiFi credentials** + Inform the controller about the WiFi credentials it needs to send when commissioning a new device. ```json @@ -151,6 +152,7 @@ Inform the controller about the WiFi credentials it needs to send when commissio ``` **Set Thread dataset** + Inform the controller about the Thread credentials it needs to use when commissioning a new device. ```json @@ -164,6 +166,7 @@ Inform the controller about the Thread credentials it needs to use when commissi ``` **Commission with code** + Commission a new device. For WiFi or Thread based devices, the credentials need to be set upfront, otherwise, commissioning will fail. Supports both QR-code syntax (MT:...) and manual pairing code as string. The controller will use bluetooth for the commissioning of wireless devices. If the machine running the Python Matter Server controller lacks Bluetooth support, commissioning will only work for devices already connected to the network (by cable or another controller). @@ -191,6 +194,7 @@ Manual pairing code ``` **Open Commissioning window** + Open a commissioning window to commission a device present on this controller to another. Returns code to use as discriminator. @@ -205,6 +209,7 @@ Returns code to use as discriminator. ``` **Get Nodes** + Get all nodes already commissioned on the controller. ```json @@ -215,6 +220,7 @@ Get all nodes already commissioned on the controller. ``` **Get Node** + Get info of a single Node. ```json @@ -228,6 +234,7 @@ Get info of a single Node. ``` **Start listening** + When the start_listening command is issued, the server will dump all existing nodes. From that moment on all events (including node attribute changes) will be forwarded. ```json @@ -238,6 +245,7 @@ When the start_listening command is issued, the server will dump all existing no ``` **Send a command** + Because we use the datamodels of the Matter SDK, this is a little bit more involved. Here is an example of turning on a switch: ```python @@ -284,7 +292,7 @@ print(json.dumps(message, indent=2)) You can also provide parameters for the cluster commands. Here's how to change the brightness for example: -``` +```python command = clusters.LevelControl.Commands.MoveToLevelWithOnOff( level=int(value), # provide a percentage transitionTime=0, # in seconds From e623404ffea3360ff5e4ae2a60b8e1085e20529b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 25 Nov 2024 10:38:14 +0100 Subject: [PATCH 063/400] Bump ruff from 0.7.4 to 0.8.0 (#966) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Marcel van der Veldt --- matter_server/common/models.py | 2 +- matter_server/server/helpers/custom_web_runner.py | 2 +- pyproject.toml | 4 +--- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/matter_server/common/models.py b/matter_server/common/models.py index 2c71b2b5..56d3fb1d 100644 --- a/matter_server/common/models.py +++ b/matter_server/common/models.py @@ -4,7 +4,7 @@ from collections.abc import Callable from dataclasses import dataclass, field -from datetime import datetime # noqa: TCH003 +from datetime import datetime # noqa: TC003 from enum import Enum from typing import Any diff --git a/matter_server/server/helpers/custom_web_runner.py b/matter_server/server/helpers/custom_web_runner.py index d0233fd7..27aa96bb 100644 --- a/matter_server/server/helpers/custom_web_runner.py +++ b/matter_server/server/helpers/custom_web_runner.py @@ -21,7 +21,7 @@ class MultiHostTCPSite(web.BaseSite): explicitly), we would like to pass an array of strings. """ - __slots__ = ("_host", "_port", "_reuse_address", "_reuse_port", "_hosturl") + __slots__ = ("_host", "_hosturl", "_port", "_reuse_address", "_reuse_port") def __init__( self, diff --git a/pyproject.toml b/pyproject.toml index dae49dbd..01d0356f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -53,7 +53,7 @@ test = [ "pytest-asyncio==0.24.0", "pytest-aiohttp==1.0.5", "pytest-cov==6.0.0", - "ruff==0.7.4", + "ruff==0.8.0", "tomli==2.1.0", ] @@ -155,7 +155,6 @@ convention = "pep257" ignore = [ "ANN002", # Just annoying, not really useful "ANN003", # Just annoying, not really useful - "ANN101", # Self... explanatory "ANN401", # Opinioated warning on disallowing dynamically typed expressions "D203", # Conflicts with other rules "D213", # Conflicts with other rules @@ -214,7 +213,6 @@ ignore = [ "N801", # TEMPORARY DISABLED "N813", # TEMPORARY DISABLED "RUF012", # TEMPORARY DISABLED - "ANN102", # TEMPORARY DISABLED "B007", # TEMPORARY DISABLED "SIM102", # TEMPORARY DISABLED "C901", # TEMPORARY DISABLED From ba8947e583c713000461a31d19a38466e29a95cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20BOU=C3=89?= Date: Mon, 25 Nov 2024 11:09:21 +0100 Subject: [PATCH 064/400] (fix/doc) Move the Python example a little further in README (#970) --- README.md | 36 ++++++++++++++++++++---------------- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 50679e6e..b5cb0f96 100644 --- a/README.md +++ b/README.md @@ -246,7 +246,26 @@ When the start_listening command is issued, the server will dump all existing no **Send a command** -Because we use the datamodels of the Matter SDK, this is a little bit more involved. Here is an example of turning on a switch: +Here is an example of turning on a switch (OnOff cluster) + +```json +{ + "message_id": "example", + "command": "device_command", + "args": { + "endpoint_id": 1, + "node_id": 1, + "payload": {}, + "cluster_id": 6, + "command_name": "On" + } +} +``` + +**Python script to send a command** + +Because we use the datamodels of the Matter SDK, this is a little bit more involved. +Here is an example of turning on a switch: ```python import json @@ -275,21 +294,6 @@ message = { print(json.dumps(message, indent=2)) ``` - -```json -{ - "message_id": "example", - "command": "device_command", - "args": { - "endpoint_id": 1, - "node_id": 1, - "payload": {}, - "cluster_id": 6, - "command_name": "On" - } -} -``` - You can also provide parameters for the cluster commands. Here's how to change the brightness for example: ```python From 839e2335a1f488d9a368ce3c157352d0f5848d88 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 25 Nov 2024 11:16:26 +0100 Subject: [PATCH 065/400] Bump mypy from 1.11.2 to 1.13.0 (#936) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Marcel van der Veldt --- matter_server/common/helpers/util.py | 7 +++++-- pyproject.toml | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/matter_server/common/helpers/util.py b/matter_server/common/helpers/util.py index 25f04ba7..f7b15234 100644 --- a/matter_server/common/helpers/util.py +++ b/matter_server/common/helpers/util.py @@ -143,7 +143,7 @@ def parse_value( value = None if is_dataclass(value_type) and isinstance(value, dict): - return dataclass_from_dict(value_type, value) + return dataclass_from_dict(value_type, value) # type: ignore[arg-type] # get origin value type and inspect one-by-one origin: Any = get_origin(value_type) if origin in (list, tuple, set) and isinstance(value, (list, tuple, set)): @@ -267,7 +267,10 @@ def parse_value( def dataclass_from_dict( - cls: type[_T], dict_obj: dict, strict: bool = False, allow_sdk_types: bool = False + cls: type[_T], + dict_obj: dict, + strict: bool = False, + allow_sdk_types: bool = False, ) -> _T: """ Create (instance of) a dataclass by providing a dict with values. diff --git a/pyproject.toml b/pyproject.toml index 01d0356f..813fc41b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -45,7 +45,7 @@ test = [ "aioresponses==0.7.7", "codespell==2.3.0", "isort==5.13.2", - "mypy==1.11.2", + "mypy==1.13.0", "pre-commit==4.0.1", "pre-commit-hooks==5.0.0", "pylint==3.3.1", From 702b99f4fd9e1098860efaf8c545bc7705b443f1 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Mon, 25 Nov 2024 15:04:36 +0100 Subject: [PATCH 066/400] Bump container base image to Debian 12 and Python 3.12 (#972) --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 83fe2450..d82fb07f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.11-slim-bullseye +FROM python:3.12-slim-bookworm # Set shell SHELL ["/bin/bash", "-o", "pipefail", "-c"] From bc14f9c468011e14935fe2755336d980f2b702f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20BOU=C3=89?= Date: Tue, 26 Nov 2024 12:35:38 +0100 Subject: [PATCH 067/400] Fix formatting for 'Manual pairing code' section (#973) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b5cb0f96..03ac1fb8 100644 --- a/README.md +++ b/README.md @@ -182,7 +182,7 @@ Matter QR-code ``` Manual pairing code -``` +```json { "message_id": "2", "command": "commission_with_code", From a55bb8b0dc838cfee2eb0dd70f18655e26540efb Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Tue, 26 Nov 2024 15:26:21 +0100 Subject: [PATCH 068/400] Revert bump to Matter 1.4 wheels and device types (#974) --- dashboard/src/client/models/descriptions.ts | 1824 +++++++++++-------- matter_server/client/models/device_types.py | 79 +- matter_server/client/models/node.py | 4 +- pyproject.toml | 4 +- 4 files changed, 1115 insertions(+), 796 deletions(-) diff --git a/dashboard/src/client/models/descriptions.ts b/dashboard/src/client/models/descriptions.ts index 89ef386e..b3e68d68 100644 --- a/dashboard/src/client/models/descriptions.ts +++ b/dashboard/src/client/models/descriptions.ts @@ -26,10 +26,10 @@ export const device_types: Record = { "id": 4293984257, "label": "Orphan Clusters", "clusters": [ - 28, 66, 67, - 68 + 68, + 28 ] }, "22": { @@ -70,26 +70,26 @@ export const device_types: Record = { "id": 1296, "label": "Electrical Sensor", "clusters": [ - 29, 144, 145, - 156 + 156, + 29 ] }, "18": { "id": 18, "label": "OTA Requestor", "clusters": [ - 29, - 42 + 42, + 29 ] }, "20": { "id": 20, "label": "OTA Provider", "clusters": [ - 29, - 41 + 41, + 29 ] }, "14": { @@ -102,37 +102,37 @@ export const device_types: Record = { }, "19": { "id": 19, - "label": "Bridged Node", + "label": "Bridged Device", "clusters": [ + 57, 29, 46, - 47, - 57 + 47 ] }, "256": { "id": 256, "label": "On/Off Light", "clusters": [ + 98, 3, 4, 6, 8, - 29, - 98 + 29 ] }, "257": { "id": 257, "label": "Dimmable Light", "clusters": [ + 98, 3, 4, 6, 8, 29, - 30, - 98 + 30 ] }, "268": { @@ -190,14 +190,14 @@ export const device_types: Record = { "label": "Pump", "clusters": [ 512, - 98, - 1027, - 1028, - 3, 1026, + 3, + 1027, 4, - 8, 6, + 1028, + 98, + 8, 29, 30 ] @@ -300,8 +300,8 @@ export const device_types: Record = { "id": 773, "label": "Pressure Sensor", "clusters": [ - 1027, 3, + 1027, 29 ] }, @@ -355,9 +355,9 @@ export const device_types: Record = { "label": "Window Covering", "clusters": [ 258, + 98, 3, 4, - 98, 29 ] }, @@ -374,10 +374,10 @@ export const device_types: Record = { "id": 768, "label": "Heating/Cooling Unit", "clusters": [ - 98, - 3, 514, + 3, 4, + 98, 6, 8, 29, @@ -388,14 +388,14 @@ export const device_types: Record = { "id": 769, "label": "Thermostat", "clusters": [ + 513, + 98, 3, + 516, 4, - 29, - 30, 56, - 98, - 513, - 516 + 29, + 30 ] }, "43": { @@ -415,14 +415,14 @@ export const device_types: Record = { 1283, 1284, 1285, + 1286, 6, 1287, - 1288, - 1286, - 1290, 1289, - 1292, + 1288, 1291, + 1292, + 1290, 1294, 29 ] @@ -435,10 +435,10 @@ export const device_types: Record = { 1284, 1285, 6, - 1287, - 1288, 1286, + 1287, 1289, + 1288, 1291, 29 ] @@ -450,17 +450,17 @@ export const device_types: Record = { 1283, 1284, 1285, + 1286, 6, 1287, - 8, + 1289, 1288, - 1290, - 1286, + 1291, 1292, 1293, 1294, - 1289, - 1291, + 8, + 1290, 29, 30 ] @@ -472,16 +472,16 @@ export const device_types: Record = { 1283, 1284, 1285, + 1286, 6, 1287, - 8, + 1289, 1288, - 1290, - 1286, + 1291, 1292, - 1289, + 8, 1294, - 1291, + 1290, 29, 30 ] @@ -526,14 +526,14 @@ export const device_types: Record = { "label": "Room Air Conditioner", "clusters": [ 513, - 98, 514, - 516, - 1029, 3, - 1026, + 516, 4, 6, + 1026, + 98, + 1029, 29 ] }, @@ -572,12 +572,12 @@ export const device_types: Record = { 1029, 1066, 1067, + 1068, 1036, - 1069, - 1070, 1037, 1071, - 1068, + 1069, + 1070, 1043, 1045, 91, @@ -670,7 +670,6 @@ export const device_types: Record = { "clusters": [ 97, 3, - 336, 84, 85, 29 @@ -693,9 +692,9 @@ export const device_types: Record = { "label": "Water Freeze Detector", "clusters": [ 128, + 29, 3, - 69, - 29 + 69 ] }, "66": { @@ -712,9 +711,9 @@ export const device_types: Record = { "label": "Water Leak Detector", "clusters": [ 128, + 29, 3, - 69, - 29 + 69 ] }, "68": { @@ -722,27 +721,15 @@ export const device_types: Record = { "label": "Rain Sensor", "clusters": [ 128, + 29, 3, - 69, - 29 + 69 ] }, - "144": { - "id": 144, + "4293984272": { + "id": 4293984272, "label": "Network Infrastructure Manager", "clusters": [ - 1105, - 1106, - 1107, - 29 - ] - }, - "145": { - "id": 145, - "label": "Thread Border Router", - "clusters": [ - 1106, - 53, 29 ] }, @@ -754,22 +741,20 @@ export const device_types: Record = { 257, 98, 3, - 1026, 4, + 1026, 6, + 259, 8, 29, 30 ] }, - "25": { - "id": 25, - "label": "Secondary Network Interface", + "4293984258": { + "id": 4293984258, + "label": "Secondary Network Commissioning Device Type", "clusters": [ 49, - 53, - 54, - 55, 29 ] }, @@ -788,8 +773,7 @@ export const device_types: Record = { "clusters": [ 1026, 29, - 86, - 6 + 86 ] }, "1292": { @@ -802,50 +786,6 @@ export const device_types: Record = { 153, 29 ] - }, - "1293": { - "id": 1293, - "label": "Device Energy Management", - "clusters": [ - 152, - 29, - 159 - ] - }, - "1295": { - "id": 1295, - "label": "Water Heater", - "clusters": [ - 513, - 3, - 148, - 29, - 158 - ] - }, - "777": { - "id": 777, - "label": "Heat Pump", - "clusters": [ - 3, - 29 - ] - }, - "23": { - "id": 23, - "label": "Solar Power", - "clusters": [ - 3, - 29 - ] - }, - "24": { - "id": 24, - "label": "Battery Storage", - "clusters": [ - 3, - 29 - ] } } @@ -1024,6 +964,60 @@ export const clusters: Record = { } } }, + "7": { + "id": 7, + "label": "OnOffSwitchConfiguration", + "attributes": { + "0": { + "id": 0, + "cluster_id": 7, + "label": "SwitchType", + "type": "uint" + }, + "16": { + "id": 16, + "cluster_id": 7, + "label": "SwitchActions", + "type": "uint" + }, + "65528": { + "id": 65528, + "cluster_id": 7, + "label": "GeneratedCommandList", + "type": "List[uint]" + }, + "65529": { + "id": 65529, + "cluster_id": 7, + "label": "AcceptedCommandList", + "type": "List[uint]" + }, + "65530": { + "id": 65530, + "cluster_id": 7, + "label": "EventList", + "type": "List[uint]" + }, + "65531": { + "id": 65531, + "cluster_id": 7, + "label": "AttributeList", + "type": "List[uint]" + }, + "65532": { + "id": 65532, + "cluster_id": 7, + "label": "FeatureMap", + "type": "uint" + }, + "65533": { + "id": 65533, + "cluster_id": 7, + "label": "ClusterRevision", + "type": "uint" + } + } + }, "8": { "id": 8, "label": "LevelControl", @@ -1150,6 +1144,102 @@ export const clusters: Record = { } } }, + "15": { + "id": 15, + "label": "BinaryInputBasic", + "attributes": { + "4": { + "id": 4, + "cluster_id": 15, + "label": "ActiveText", + "type": "Optional[str]" + }, + "28": { + "id": 28, + "cluster_id": 15, + "label": "Description", + "type": "Optional[str]" + }, + "46": { + "id": 46, + "cluster_id": 15, + "label": "InactiveText", + "type": "Optional[str]" + }, + "81": { + "id": 81, + "cluster_id": 15, + "label": "OutOfService", + "type": "bool" + }, + "84": { + "id": 84, + "cluster_id": 15, + "label": "Polarity", + "type": "Optional[uint]" + }, + "85": { + "id": 85, + "cluster_id": 15, + "label": "PresentValue", + "type": "bool" + }, + "103": { + "id": 103, + "cluster_id": 15, + "label": "Reliability", + "type": "Optional[uint]" + }, + "111": { + "id": 111, + "cluster_id": 15, + "label": "StatusFlags", + "type": "uint" + }, + "256": { + "id": 256, + "cluster_id": 15, + "label": "ApplicationType", + "type": "Optional[uint]" + }, + "65528": { + "id": 65528, + "cluster_id": 15, + "label": "GeneratedCommandList", + "type": "List[uint]" + }, + "65529": { + "id": 65529, + "cluster_id": 15, + "label": "AcceptedCommandList", + "type": "List[uint]" + }, + "65530": { + "id": 65530, + "cluster_id": 15, + "label": "EventList", + "type": "List[uint]" + }, + "65531": { + "id": 65531, + "cluster_id": 15, + "label": "AttributeList", + "type": "List[uint]" + }, + "65532": { + "id": 65532, + "cluster_id": 15, + "label": "FeatureMap", + "type": "uint" + }, + "65533": { + "id": 65533, + "cluster_id": 15, + "label": "ClusterRevision", + "type": "uint" + } + } + }, "28": { "id": 28, "label": "PulseWidthModulation", @@ -1346,18 +1436,6 @@ export const clusters: Record = { "label": "AccessControlEntriesPerFabric", "type": "uint" }, - "5": { - "id": 5, - "cluster_id": 31, - "label": "CommissioningARL", - "type": "Optional[List[AccessControl.Structs.CommissioningAccessRestrictionEntryStruct]]" - }, - "6": { - "id": 6, - "cluster_id": 31, - "label": "Arl", - "type": "Optional[List[AccessControl.Structs.AccessRestrictionEntryStruct]]" - }, "65528": { "id": 65528, "cluster_id": 31, @@ -1572,7 +1650,7 @@ export const clusters: Record = { "id": 18, "cluster_id": 40, "label": "UniqueID", - "type": "str" + "type": "Optional[str]" }, "19": { "id": 19, @@ -2222,30 +2300,6 @@ export const clusters: Record = { "label": "SupportsConcurrentConnection", "type": "bool" }, - "5": { - "id": 5, - "cluster_id": 48, - "label": "TCAcceptedVersion", - "type": "Optional[uint]" - }, - "6": { - "id": 6, - "cluster_id": 48, - "label": "TCMinRequiredVersion", - "type": "Optional[uint]" - }, - "7": { - "id": 7, - "cluster_id": 48, - "label": "TCAcknowledgements", - "type": "Optional[uint]" - }, - "8": { - "id": 8, - "cluster_id": 48, - "label": "TCAcknowledgementsRequired", - "type": "Optional[bool]" - }, "65528": { "id": 65528, "cluster_id": 48, @@ -3374,12 +3428,6 @@ export const clusters: Record = { "label": "ProductName", "type": "Optional[str]" }, - "4": { - "id": 4, - "cluster_id": 57, - "label": "ProductID", - "type": "Optional[uint]" - }, "5": { "id": 5, "cluster_id": 57, @@ -3450,7 +3498,7 @@ export const clusters: Record = { "id": 18, "cluster_id": 57, "label": "UniqueID", - "type": "str" + "type": "Optional[str]" }, "20": { "id": 20, @@ -4088,12 +4136,6 @@ export const clusters: Record = { "label": "OperatingMode", "type": "Optional[IcdManagement.Enums.OperatingModeEnum]" }, - "9": { - "id": 9, - "cluster_id": 70, - "label": "MaximumCheckInBackOff", - "type": "Optional[uint]" - }, "65528": { "id": 65528, "cluster_id": 70, @@ -6166,84 +6208,6 @@ export const clusters: Record = { } } }, - "148": { - "id": 148, - "label": "WaterHeaterManagement", - "attributes": { - "0": { - "id": 0, - "cluster_id": 148, - "label": "HeaterTypes", - "type": "uint" - }, - "1": { - "id": 1, - "cluster_id": 148, - "label": "HeatDemand", - "type": "uint" - }, - "2": { - "id": 2, - "cluster_id": 148, - "label": "TankVolume", - "type": "Optional[uint]" - }, - "3": { - "id": 3, - "cluster_id": 148, - "label": "EstimatedHeatRequired", - "type": "Optional[int]" - }, - "4": { - "id": 4, - "cluster_id": 148, - "label": "TankPercentage", - "type": "Optional[uint]" - }, - "5": { - "id": 5, - "cluster_id": 148, - "label": "BoostState", - "type": "aenum BoostStateEnum" - }, - "65528": { - "id": 65528, - "cluster_id": 148, - "label": "GeneratedCommandList", - "type": "List[uint]" - }, - "65529": { - "id": 65529, - "cluster_id": 148, - "label": "AcceptedCommandList", - "type": "List[uint]" - }, - "65530": { - "id": 65530, - "cluster_id": 148, - "label": "EventList", - "type": "List[uint]" - }, - "65531": { - "id": 65531, - "cluster_id": 148, - "label": "AttributeList", - "type": "List[uint]" - }, - "65532": { - "id": 65532, - "cluster_id": 148, - "label": "FeatureMap", - "type": "uint" - }, - "65533": { - "id": 65533, - "cluster_id": 148, - "label": "ClusterRevision", - "type": "uint" - } - } - }, "150": { "id": 150, "label": "DemandResponseLoadControl", @@ -6426,7 +6390,7 @@ export const clusters: Record = { "id": 5, "cluster_id": 152, "label": "PowerAdjustmentCapability", - "type": "Union[NoneType, Nullable, DeviceEnergyManagement.Structs.PowerAdjustCapabilityStruct]" + "type": "Union[NoneType, Nullable, List[DeviceEnergyManagement.Structs.PowerAdjustStruct]]" }, "6": { "id": 6, @@ -6850,72 +6814,6 @@ export const clusters: Record = { } } }, - "158": { - "id": 158, - "label": "WaterHeaterMode", - "attributes": { - "0": { - "id": 0, - "cluster_id": 158, - "label": "SupportedModes", - "type": "List[WaterHeaterMode.Structs.ModeOptionStruct]" - }, - "1": { - "id": 1, - "cluster_id": 158, - "label": "CurrentMode", - "type": "uint" - }, - "2": { - "id": 2, - "cluster_id": 158, - "label": "StartUpMode", - "type": "Union[NoneType, Nullable, uint]" - }, - "3": { - "id": 3, - "cluster_id": 158, - "label": "OnMode", - "type": "Union[NoneType, Nullable, uint]" - }, - "65528": { - "id": 65528, - "cluster_id": 158, - "label": "GeneratedCommandList", - "type": "List[uint]" - }, - "65529": { - "id": 65529, - "cluster_id": 158, - "label": "AcceptedCommandList", - "type": "List[uint]" - }, - "65530": { - "id": 65530, - "cluster_id": 158, - "label": "EventList", - "type": "List[uint]" - }, - "65531": { - "id": 65531, - "cluster_id": 158, - "label": "AttributeList", - "type": "List[uint]" - }, - "65532": { - "id": 65532, - "cluster_id": 158, - "label": "FeatureMap", - "type": "uint" - }, - "65533": { - "id": 65533, - "cluster_id": 158, - "label": "ClusterRevision", - "type": "uint" - } - } - }, "159": { "id": 159, "label": "DeviceEnergyManagementMode", @@ -7116,7 +7014,7 @@ export const clusters: Record = { "id": 35, "cluster_id": 257, "label": "AutoRelockTime", - "type": "Optional[uint]" + "type": "uint" }, "36": { "id": 36, @@ -7468,79 +7366,103 @@ export const clusters: Record = { } } }, - "336": { - "id": 336, - "label": "ServiceArea", + "259": { + "id": 259, + "label": "BarrierControl", "attributes": { - "0": { - "id": 0, - "cluster_id": 336, - "label": "SupportedAreas", - "type": "List[ServiceArea.Structs.AreaStruct]" - }, "1": { "id": 1, - "cluster_id": 336, - "label": "SupportedMaps", - "type": "Optional[List[ServiceArea.Structs.MapStruct]]" + "cluster_id": 259, + "label": "BarrierMovingState", + "type": "uint" }, "2": { "id": 2, - "cluster_id": 336, - "label": "SelectedAreas", - "type": "List[uint]" + "cluster_id": 259, + "label": "BarrierSafetyStatus", + "type": "uint" }, "3": { "id": 3, - "cluster_id": 336, - "label": "CurrentArea", - "type": "Union[NoneType, Nullable, uint]" + "cluster_id": 259, + "label": "BarrierCapabilities", + "type": "uint" }, "4": { "id": 4, - "cluster_id": 336, - "label": "EstimatedEndTime", - "type": "Union[NoneType, Nullable, uint]" + "cluster_id": 259, + "label": "BarrierOpenEvents", + "type": "Optional[uint]" }, "5": { "id": 5, - "cluster_id": 336, - "label": "Progress", - "type": "Optional[List[ServiceArea.Structs.ProgressStruct]]" + "cluster_id": 259, + "label": "BarrierCloseEvents", + "type": "Optional[uint]" + }, + "6": { + "id": 6, + "cluster_id": 259, + "label": "BarrierCommandOpenEvents", + "type": "Optional[uint]" + }, + "7": { + "id": 7, + "cluster_id": 259, + "label": "BarrierCommandCloseEvents", + "type": "Optional[uint]" + }, + "8": { + "id": 8, + "cluster_id": 259, + "label": "BarrierOpenPeriod", + "type": "Optional[uint]" + }, + "9": { + "id": 9, + "cluster_id": 259, + "label": "BarrierClosePeriod", + "type": "Optional[uint]" + }, + "10": { + "id": 10, + "cluster_id": 259, + "label": "BarrierPosition", + "type": "uint" }, "65528": { "id": 65528, - "cluster_id": 336, + "cluster_id": 259, "label": "GeneratedCommandList", "type": "List[uint]" }, "65529": { "id": 65529, - "cluster_id": 336, + "cluster_id": 259, "label": "AcceptedCommandList", "type": "List[uint]" }, "65530": { "id": 65530, - "cluster_id": 336, + "cluster_id": 259, "label": "EventList", "type": "List[uint]" }, "65531": { "id": 65531, - "cluster_id": 336, + "cluster_id": 259, "label": "AttributeList", "type": "List[uint]" }, "65532": { "id": 65532, - "cluster_id": 336, + "cluster_id": 259, "label": "FeatureMap", "type": "uint" }, "65533": { "id": 65533, - "cluster_id": 336, + "cluster_id": 259, "label": "ClusterRevision", "type": "uint" } @@ -8087,9 +8009,27 @@ export const clusters: Record = { "82": { "id": 82, "cluster_id": 513, + "label": "PresetsSchedulesEditable", + "type": "Optional[bool]" + }, + "83": { + "id": 83, + "cluster_id": 513, + "label": "TemperatureSetpointHoldPolicy", + "type": "Optional[uint]" + }, + "84": { + "id": 84, + "cluster_id": 513, "label": "SetpointHoldExpiryTimestamp", "type": "Union[NoneType, Nullable, uint]" }, + "85": { + "id": 85, + "cluster_id": 513, + "label": "QueuedPreset", + "type": "Union[NoneType, Nullable, Thermostat.Structs.QueuedPresetStruct]" + }, "65528": { "id": 65528, "cluster_id": 513, @@ -8340,7 +8280,7 @@ export const clusters: Record = { "id": 5, "cluster_id": 768, "label": "DriftCompensation", - "type": "Optional[ColorControl.Enums.DriftCompensationEnum]" + "type": "Optional[uint]" }, "6": { "id": 6, @@ -8358,7 +8298,7 @@ export const clusters: Record = { "id": 8, "cluster_id": 768, "label": "ColorMode", - "type": "aenum ColorModeEnum" + "type": "uint" }, "15": { "id": 15, @@ -8556,7 +8496,7 @@ export const clusters: Record = { "id": 16385, "cluster_id": 768, "label": "EnhancedColorMode", - "type": "aenum EnhancedColorModeEnum" + "type": "uint" }, "16386": { "id": 16386, @@ -9170,18 +9110,6 @@ export const clusters: Record = { "label": "OccupancySensorTypeBitmap", "type": "uint" }, - "3": { - "id": 3, - "cluster_id": 1030, - "label": "HoldTime", - "type": "Optional[uint]" - }, - "4": { - "id": 4, - "cluster_id": 1030, - "label": "HoldTimeLimits", - "type": "Optional[OccupancySensing.Structs.HoldTimeLimitsStruct]" - }, "16": { "id": 16, "cluster_id": 1030, @@ -10354,327 +10282,135 @@ export const clusters: Record = { } } }, - "1105": { - "id": 1105, - "label": "WiFiNetworkManagement", + "1283": { + "id": 1283, + "label": "WakeOnLan", "attributes": { "0": { "id": 0, - "cluster_id": 1105, - "label": "Ssid", - "type": "Union[Nullable, bytes]" + "cluster_id": 1283, + "label": "MACAddress", + "type": "Optional[str]" }, "1": { "id": 1, - "cluster_id": 1105, - "label": "PassphraseSurrogate", - "type": "Union[Nullable, uint]" + "cluster_id": 1283, + "label": "LinkLocalAddress", + "type": "Optional[bytes]" }, "65528": { "id": 65528, - "cluster_id": 1105, + "cluster_id": 1283, "label": "GeneratedCommandList", "type": "List[uint]" }, "65529": { "id": 65529, - "cluster_id": 1105, + "cluster_id": 1283, "label": "AcceptedCommandList", "type": "List[uint]" }, "65530": { "id": 65530, - "cluster_id": 1105, + "cluster_id": 1283, "label": "EventList", "type": "List[uint]" }, "65531": { "id": 65531, - "cluster_id": 1105, + "cluster_id": 1283, "label": "AttributeList", "type": "List[uint]" }, "65532": { "id": 65532, - "cluster_id": 1105, + "cluster_id": 1283, "label": "FeatureMap", "type": "uint" }, "65533": { "id": 65533, - "cluster_id": 1105, + "cluster_id": 1283, "label": "ClusterRevision", "type": "uint" } } }, - "1106": { - "id": 1106, - "label": "ThreadBorderRouterManagement", + "1284": { + "id": 1284, + "label": "Channel", "attributes": { "0": { "id": 0, - "cluster_id": 1106, - "label": "BorderRouterName", - "type": "str" + "cluster_id": 1284, + "label": "ChannelList", + "type": "Optional[List[Channel.Structs.ChannelInfoStruct]]" }, "1": { "id": 1, - "cluster_id": 1106, - "label": "BorderAgentID", - "type": "bytes" + "cluster_id": 1284, + "label": "Lineup", + "type": "Union[NoneType, Nullable, Channel.Structs.LineupInfoStruct]" }, "2": { "id": 2, - "cluster_id": 1106, - "label": "ThreadVersion", - "type": "uint" - }, - "3": { - "id": 3, - "cluster_id": 1106, - "label": "InterfaceEnabled", - "type": "bool" - }, - "4": { - "id": 4, - "cluster_id": 1106, - "label": "ActiveDatasetTimestamp", - "type": "Union[Nullable, uint]" - }, - "5": { - "id": 5, - "cluster_id": 1106, - "label": "PendingDatasetTimestamp", - "type": "Union[Nullable, uint]" + "cluster_id": 1284, + "label": "CurrentChannel", + "type": "Union[NoneType, Nullable, Channel.Structs.ChannelInfoStruct]" }, "65528": { "id": 65528, - "cluster_id": 1106, + "cluster_id": 1284, "label": "GeneratedCommandList", "type": "List[uint]" }, "65529": { "id": 65529, - "cluster_id": 1106, + "cluster_id": 1284, "label": "AcceptedCommandList", "type": "List[uint]" }, "65530": { "id": 65530, - "cluster_id": 1106, + "cluster_id": 1284, "label": "EventList", "type": "List[uint]" }, "65531": { "id": 65531, - "cluster_id": 1106, + "cluster_id": 1284, "label": "AttributeList", "type": "List[uint]" }, "65532": { "id": 65532, - "cluster_id": 1106, + "cluster_id": 1284, "label": "FeatureMap", "type": "uint" }, "65533": { "id": 65533, - "cluster_id": 1106, + "cluster_id": 1284, "label": "ClusterRevision", "type": "uint" } } }, - "1107": { - "id": 1107, - "label": "ThreadNetworkDirectory", + "1285": { + "id": 1285, + "label": "TargetNavigator", "attributes": { "0": { "id": 0, - "cluster_id": 1107, - "label": "PreferredExtendedPanID", - "type": "Union[Nullable, bytes]" + "cluster_id": 1285, + "label": "TargetList", + "type": "List[TargetNavigator.Structs.TargetInfoStruct]" }, "1": { "id": 1, - "cluster_id": 1107, - "label": "ThreadNetworks", - "type": "List[ThreadNetworkDirectory.Structs.ThreadNetworkStruct]" - }, - "2": { - "id": 2, - "cluster_id": 1107, - "label": "ThreadNetworkTableSize", - "type": "uint" - }, - "65528": { - "id": 65528, - "cluster_id": 1107, - "label": "GeneratedCommandList", - "type": "List[uint]" - }, - "65529": { - "id": 65529, - "cluster_id": 1107, - "label": "AcceptedCommandList", - "type": "List[uint]" - }, - "65530": { - "id": 65530, - "cluster_id": 1107, - "label": "EventList", - "type": "List[uint]" - }, - "65531": { - "id": 65531, - "cluster_id": 1107, - "label": "AttributeList", - "type": "List[uint]" - }, - "65532": { - "id": 65532, - "cluster_id": 1107, - "label": "FeatureMap", - "type": "uint" - }, - "65533": { - "id": 65533, - "cluster_id": 1107, - "label": "ClusterRevision", - "type": "uint" - } - } - }, - "1283": { - "id": 1283, - "label": "WakeOnLan", - "attributes": { - "0": { - "id": 0, - "cluster_id": 1283, - "label": "MACAddress", - "type": "Optional[str]" - }, - "1": { - "id": 1, - "cluster_id": 1283, - "label": "LinkLocalAddress", - "type": "Optional[bytes]" - }, - "65528": { - "id": 65528, - "cluster_id": 1283, - "label": "GeneratedCommandList", - "type": "List[uint]" - }, - "65529": { - "id": 65529, - "cluster_id": 1283, - "label": "AcceptedCommandList", - "type": "List[uint]" - }, - "65530": { - "id": 65530, - "cluster_id": 1283, - "label": "EventList", - "type": "List[uint]" - }, - "65531": { - "id": 65531, - "cluster_id": 1283, - "label": "AttributeList", - "type": "List[uint]" - }, - "65532": { - "id": 65532, - "cluster_id": 1283, - "label": "FeatureMap", - "type": "uint" - }, - "65533": { - "id": 65533, - "cluster_id": 1283, - "label": "ClusterRevision", - "type": "uint" - } - } - }, - "1284": { - "id": 1284, - "label": "Channel", - "attributes": { - "0": { - "id": 0, - "cluster_id": 1284, - "label": "ChannelList", - "type": "Optional[List[Channel.Structs.ChannelInfoStruct]]" - }, - "1": { - "id": 1, - "cluster_id": 1284, - "label": "Lineup", - "type": "Union[NoneType, Nullable, Channel.Structs.LineupInfoStruct]" - }, - "2": { - "id": 2, - "cluster_id": 1284, - "label": "CurrentChannel", - "type": "Union[NoneType, Nullable, Channel.Structs.ChannelInfoStruct]" - }, - "65528": { - "id": 65528, - "cluster_id": 1284, - "label": "GeneratedCommandList", - "type": "List[uint]" - }, - "65529": { - "id": 65529, - "cluster_id": 1284, - "label": "AcceptedCommandList", - "type": "List[uint]" - }, - "65530": { - "id": 65530, - "cluster_id": 1284, - "label": "EventList", - "type": "List[uint]" - }, - "65531": { - "id": 65531, - "cluster_id": 1284, - "label": "AttributeList", - "type": "List[uint]" - }, - "65532": { - "id": 65532, - "cluster_id": 1284, - "label": "FeatureMap", - "type": "uint" - }, - "65533": { - "id": 65533, - "cluster_id": 1284, - "label": "ClusterRevision", - "type": "uint" - } - } - }, - "1285": { - "id": 1285, - "label": "TargetNavigator", - "attributes": { - "0": { - "id": 0, - "cluster_id": 1285, - "label": "TargetList", - "type": "List[TargetNavigator.Structs.TargetInfoStruct]" - }, - "1": { - "id": 1, - "cluster_id": 1285, - "label": "CurrentTarget", - "type": "Optional[uint]" + "cluster_id": 1285, + "label": "CurrentTarget", + "type": "Optional[uint]" }, "65528": { "id": 65528, @@ -11386,103 +11122,811 @@ export const clusters: Record = { } } }, - "1872": { - "id": 1872, - "label": "EcosystemInformation", + "2820": { + "id": 2820, + "label": "ElectricalMeasurement", "attributes": { "0": { "id": 0, - "cluster_id": 1872, - "label": "DeviceDirectory", - "type": "List[EcosystemInformation.Structs.EcosystemDeviceStruct]" + "cluster_id": 2820, + "label": "MeasurementType", + "type": "Optional[uint]" }, - "1": { - "id": 1, - "cluster_id": 1872, - "label": "LocationDirectory", - "type": "List[EcosystemInformation.Structs.EcosystemLocationStruct]" + "256": { + "id": 256, + "cluster_id": 2820, + "label": "DcVoltage", + "type": "Optional[int]" }, - "65528": { - "id": 65528, - "cluster_id": 1872, - "label": "GeneratedCommandList", - "type": "List[uint]" + "257": { + "id": 257, + "cluster_id": 2820, + "label": "DcVoltageMin", + "type": "Optional[int]" }, - "65529": { - "id": 65529, - "cluster_id": 1872, - "label": "AcceptedCommandList", - "type": "List[uint]" + "258": { + "id": 258, + "cluster_id": 2820, + "label": "DcVoltageMax", + "type": "Optional[int]" }, - "65530": { - "id": 65530, - "cluster_id": 1872, - "label": "EventList", - "type": "List[uint]" + "259": { + "id": 259, + "cluster_id": 2820, + "label": "DcCurrent", + "type": "Optional[int]" }, - "65531": { - "id": 65531, - "cluster_id": 1872, - "label": "AttributeList", - "type": "List[uint]" + "260": { + "id": 260, + "cluster_id": 2820, + "label": "DcCurrentMin", + "type": "Optional[int]" }, - "65532": { - "id": 65532, - "cluster_id": 1872, - "label": "FeatureMap", - "type": "uint" + "261": { + "id": 261, + "cluster_id": 2820, + "label": "DcCurrentMax", + "type": "Optional[int]" }, - "65533": { - "id": 65533, - "cluster_id": 1872, - "label": "ClusterRevision", - "type": "uint" - } - } - }, - "1873": { - "id": 1873, - "label": "CommissionerControl", - "attributes": { - "0": { - "id": 0, - "cluster_id": 1873, - "label": "SupportedDeviceCategories", - "type": "uint" + "262": { + "id": 262, + "cluster_id": 2820, + "label": "DcPower", + "type": "Optional[int]" + }, + "263": { + "id": 263, + "cluster_id": 2820, + "label": "DcPowerMin", + "type": "Optional[int]" + }, + "264": { + "id": 264, + "cluster_id": 2820, + "label": "DcPowerMax", + "type": "Optional[int]" + }, + "512": { + "id": 512, + "cluster_id": 2820, + "label": "DcVoltageMultiplier", + "type": "Optional[uint]" + }, + "513": { + "id": 513, + "cluster_id": 2820, + "label": "DcVoltageDivisor", + "type": "Optional[uint]" + }, + "514": { + "id": 514, + "cluster_id": 2820, + "label": "DcCurrentMultiplier", + "type": "Optional[uint]" + }, + "515": { + "id": 515, + "cluster_id": 2820, + "label": "DcCurrentDivisor", + "type": "Optional[uint]" + }, + "516": { + "id": 516, + "cluster_id": 2820, + "label": "DcPowerMultiplier", + "type": "Optional[uint]" + }, + "517": { + "id": 517, + "cluster_id": 2820, + "label": "DcPowerDivisor", + "type": "Optional[uint]" + }, + "768": { + "id": 768, + "cluster_id": 2820, + "label": "AcFrequency", + "type": "Optional[uint]" + }, + "769": { + "id": 769, + "cluster_id": 2820, + "label": "AcFrequencyMin", + "type": "Optional[uint]" + }, + "770": { + "id": 770, + "cluster_id": 2820, + "label": "AcFrequencyMax", + "type": "Optional[uint]" + }, + "771": { + "id": 771, + "cluster_id": 2820, + "label": "NeutralCurrent", + "type": "Optional[uint]" + }, + "772": { + "id": 772, + "cluster_id": 2820, + "label": "TotalActivePower", + "type": "Optional[int]" + }, + "773": { + "id": 773, + "cluster_id": 2820, + "label": "TotalReactivePower", + "type": "Optional[int]" + }, + "774": { + "id": 774, + "cluster_id": 2820, + "label": "TotalApparentPower", + "type": "Optional[uint]" + }, + "775": { + "id": 775, + "cluster_id": 2820, + "label": "Measured1stHarmonicCurrent", + "type": "Optional[int]" + }, + "776": { + "id": 776, + "cluster_id": 2820, + "label": "Measured3rdHarmonicCurrent", + "type": "Optional[int]" + }, + "777": { + "id": 777, + "cluster_id": 2820, + "label": "Measured5thHarmonicCurrent", + "type": "Optional[int]" + }, + "778": { + "id": 778, + "cluster_id": 2820, + "label": "Measured7thHarmonicCurrent", + "type": "Optional[int]" + }, + "779": { + "id": 779, + "cluster_id": 2820, + "label": "Measured9thHarmonicCurrent", + "type": "Optional[int]" + }, + "780": { + "id": 780, + "cluster_id": 2820, + "label": "Measured11thHarmonicCurrent", + "type": "Optional[int]" + }, + "781": { + "id": 781, + "cluster_id": 2820, + "label": "MeasuredPhase1stHarmonicCurrent", + "type": "Optional[int]" + }, + "782": { + "id": 782, + "cluster_id": 2820, + "label": "MeasuredPhase3rdHarmonicCurrent", + "type": "Optional[int]" + }, + "783": { + "id": 783, + "cluster_id": 2820, + "label": "MeasuredPhase5thHarmonicCurrent", + "type": "Optional[int]" + }, + "784": { + "id": 784, + "cluster_id": 2820, + "label": "MeasuredPhase7thHarmonicCurrent", + "type": "Optional[int]" + }, + "785": { + "id": 785, + "cluster_id": 2820, + "label": "MeasuredPhase9thHarmonicCurrent", + "type": "Optional[int]" + }, + "786": { + "id": 786, + "cluster_id": 2820, + "label": "MeasuredPhase11thHarmonicCurrent", + "type": "Optional[int]" + }, + "1024": { + "id": 1024, + "cluster_id": 2820, + "label": "AcFrequencyMultiplier", + "type": "Optional[uint]" + }, + "1025": { + "id": 1025, + "cluster_id": 2820, + "label": "AcFrequencyDivisor", + "type": "Optional[uint]" + }, + "1026": { + "id": 1026, + "cluster_id": 2820, + "label": "PowerMultiplier", + "type": "Optional[uint]" + }, + "1027": { + "id": 1027, + "cluster_id": 2820, + "label": "PowerDivisor", + "type": "Optional[uint]" + }, + "1028": { + "id": 1028, + "cluster_id": 2820, + "label": "HarmonicCurrentMultiplier", + "type": "Optional[int]" + }, + "1029": { + "id": 1029, + "cluster_id": 2820, + "label": "PhaseHarmonicCurrentMultiplier", + "type": "Optional[int]" + }, + "1280": { + "id": 1280, + "cluster_id": 2820, + "label": "InstantaneousVoltage", + "type": "Optional[int]" + }, + "1281": { + "id": 1281, + "cluster_id": 2820, + "label": "InstantaneousLineCurrent", + "type": "Optional[uint]" + }, + "1282": { + "id": 1282, + "cluster_id": 2820, + "label": "InstantaneousActiveCurrent", + "type": "Optional[int]" + }, + "1283": { + "id": 1283, + "cluster_id": 2820, + "label": "InstantaneousReactiveCurrent", + "type": "Optional[int]" + }, + "1284": { + "id": 1284, + "cluster_id": 2820, + "label": "InstantaneousPower", + "type": "Optional[int]" + }, + "1285": { + "id": 1285, + "cluster_id": 2820, + "label": "RmsVoltage", + "type": "Optional[uint]" + }, + "1286": { + "id": 1286, + "cluster_id": 2820, + "label": "RmsVoltageMin", + "type": "Optional[uint]" + }, + "1287": { + "id": 1287, + "cluster_id": 2820, + "label": "RmsVoltageMax", + "type": "Optional[uint]" + }, + "1288": { + "id": 1288, + "cluster_id": 2820, + "label": "RmsCurrent", + "type": "Optional[uint]" + }, + "1289": { + "id": 1289, + "cluster_id": 2820, + "label": "RmsCurrentMin", + "type": "Optional[uint]" + }, + "1290": { + "id": 1290, + "cluster_id": 2820, + "label": "RmsCurrentMax", + "type": "Optional[uint]" + }, + "1291": { + "id": 1291, + "cluster_id": 2820, + "label": "ActivePower", + "type": "Optional[int]" + }, + "1292": { + "id": 1292, + "cluster_id": 2820, + "label": "ActivePowerMin", + "type": "Optional[int]" + }, + "1293": { + "id": 1293, + "cluster_id": 2820, + "label": "ActivePowerMax", + "type": "Optional[int]" + }, + "1294": { + "id": 1294, + "cluster_id": 2820, + "label": "ReactivePower", + "type": "Optional[int]" + }, + "1295": { + "id": 1295, + "cluster_id": 2820, + "label": "ApparentPower", + "type": "Optional[uint]" + }, + "1296": { + "id": 1296, + "cluster_id": 2820, + "label": "PowerFactor", + "type": "Optional[int]" + }, + "1297": { + "id": 1297, + "cluster_id": 2820, + "label": "AverageRmsVoltageMeasurementPeriod", + "type": "Optional[uint]" + }, + "1299": { + "id": 1299, + "cluster_id": 2820, + "label": "AverageRmsUnderVoltageCounter", + "type": "Optional[uint]" + }, + "1300": { + "id": 1300, + "cluster_id": 2820, + "label": "RmsExtremeOverVoltagePeriod", + "type": "Optional[uint]" + }, + "1301": { + "id": 1301, + "cluster_id": 2820, + "label": "RmsExtremeUnderVoltagePeriod", + "type": "Optional[uint]" + }, + "1302": { + "id": 1302, + "cluster_id": 2820, + "label": "RmsVoltageSagPeriod", + "type": "Optional[uint]" + }, + "1303": { + "id": 1303, + "cluster_id": 2820, + "label": "RmsVoltageSwellPeriod", + "type": "Optional[uint]" + }, + "1536": { + "id": 1536, + "cluster_id": 2820, + "label": "AcVoltageMultiplier", + "type": "Optional[uint]" + }, + "1537": { + "id": 1537, + "cluster_id": 2820, + "label": "AcVoltageDivisor", + "type": "Optional[uint]" + }, + "1538": { + "id": 1538, + "cluster_id": 2820, + "label": "AcCurrentMultiplier", + "type": "Optional[uint]" + }, + "1539": { + "id": 1539, + "cluster_id": 2820, + "label": "AcCurrentDivisor", + "type": "Optional[uint]" + }, + "1540": { + "id": 1540, + "cluster_id": 2820, + "label": "AcPowerMultiplier", + "type": "Optional[uint]" + }, + "1541": { + "id": 1541, + "cluster_id": 2820, + "label": "AcPowerDivisor", + "type": "Optional[uint]" + }, + "1792": { + "id": 1792, + "cluster_id": 2820, + "label": "OverloadAlarmsMask", + "type": "Optional[uint]" + }, + "1793": { + "id": 1793, + "cluster_id": 2820, + "label": "VoltageOverload", + "type": "Optional[int]" + }, + "1794": { + "id": 1794, + "cluster_id": 2820, + "label": "CurrentOverload", + "type": "Optional[int]" + }, + "2048": { + "id": 2048, + "cluster_id": 2820, + "label": "AcOverloadAlarmsMask", + "type": "Optional[uint]" + }, + "2049": { + "id": 2049, + "cluster_id": 2820, + "label": "AcVoltageOverload", + "type": "Optional[int]" + }, + "2050": { + "id": 2050, + "cluster_id": 2820, + "label": "AcCurrentOverload", + "type": "Optional[int]" + }, + "2051": { + "id": 2051, + "cluster_id": 2820, + "label": "AcActivePowerOverload", + "type": "Optional[int]" + }, + "2052": { + "id": 2052, + "cluster_id": 2820, + "label": "AcReactivePowerOverload", + "type": "Optional[int]" + }, + "2053": { + "id": 2053, + "cluster_id": 2820, + "label": "AverageRmsOverVoltage", + "type": "Optional[int]" + }, + "2054": { + "id": 2054, + "cluster_id": 2820, + "label": "AverageRmsUnderVoltage", + "type": "Optional[int]" + }, + "2055": { + "id": 2055, + "cluster_id": 2820, + "label": "RmsExtremeOverVoltage", + "type": "Optional[int]" + }, + "2056": { + "id": 2056, + "cluster_id": 2820, + "label": "RmsExtremeUnderVoltage", + "type": "Optional[int]" + }, + "2057": { + "id": 2057, + "cluster_id": 2820, + "label": "RmsVoltageSag", + "type": "Optional[int]" + }, + "2058": { + "id": 2058, + "cluster_id": 2820, + "label": "RmsVoltageSwell", + "type": "Optional[int]" + }, + "2305": { + "id": 2305, + "cluster_id": 2820, + "label": "LineCurrentPhaseB", + "type": "Optional[uint]" + }, + "2306": { + "id": 2306, + "cluster_id": 2820, + "label": "ActiveCurrentPhaseB", + "type": "Optional[int]" + }, + "2307": { + "id": 2307, + "cluster_id": 2820, + "label": "ReactiveCurrentPhaseB", + "type": "Optional[int]" + }, + "2309": { + "id": 2309, + "cluster_id": 2820, + "label": "RmsVoltagePhaseB", + "type": "Optional[uint]" + }, + "2310": { + "id": 2310, + "cluster_id": 2820, + "label": "RmsVoltageMinPhaseB", + "type": "Optional[uint]" + }, + "2311": { + "id": 2311, + "cluster_id": 2820, + "label": "RmsVoltageMaxPhaseB", + "type": "Optional[uint]" + }, + "2312": { + "id": 2312, + "cluster_id": 2820, + "label": "RmsCurrentPhaseB", + "type": "Optional[uint]" + }, + "2313": { + "id": 2313, + "cluster_id": 2820, + "label": "RmsCurrentMinPhaseB", + "type": "Optional[uint]" + }, + "2314": { + "id": 2314, + "cluster_id": 2820, + "label": "RmsCurrentMaxPhaseB", + "type": "Optional[uint]" + }, + "2315": { + "id": 2315, + "cluster_id": 2820, + "label": "ActivePowerPhaseB", + "type": "Optional[int]" + }, + "2316": { + "id": 2316, + "cluster_id": 2820, + "label": "ActivePowerMinPhaseB", + "type": "Optional[int]" + }, + "2317": { + "id": 2317, + "cluster_id": 2820, + "label": "ActivePowerMaxPhaseB", + "type": "Optional[int]" + }, + "2318": { + "id": 2318, + "cluster_id": 2820, + "label": "ReactivePowerPhaseB", + "type": "Optional[int]" + }, + "2319": { + "id": 2319, + "cluster_id": 2820, + "label": "ApparentPowerPhaseB", + "type": "Optional[uint]" + }, + "2320": { + "id": 2320, + "cluster_id": 2820, + "label": "PowerFactorPhaseB", + "type": "Optional[int]" + }, + "2321": { + "id": 2321, + "cluster_id": 2820, + "label": "AverageRmsVoltageMeasurementPeriodPhaseB", + "type": "Optional[uint]" + }, + "2322": { + "id": 2322, + "cluster_id": 2820, + "label": "AverageRmsOverVoltageCounterPhaseB", + "type": "Optional[uint]" + }, + "2323": { + "id": 2323, + "cluster_id": 2820, + "label": "AverageRmsUnderVoltageCounterPhaseB", + "type": "Optional[uint]" + }, + "2324": { + "id": 2324, + "cluster_id": 2820, + "label": "RmsExtremeOverVoltagePeriodPhaseB", + "type": "Optional[uint]" + }, + "2325": { + "id": 2325, + "cluster_id": 2820, + "label": "RmsExtremeUnderVoltagePeriodPhaseB", + "type": "Optional[uint]" + }, + "2326": { + "id": 2326, + "cluster_id": 2820, + "label": "RmsVoltageSagPeriodPhaseB", + "type": "Optional[uint]" + }, + "2327": { + "id": 2327, + "cluster_id": 2820, + "label": "RmsVoltageSwellPeriodPhaseB", + "type": "Optional[uint]" + }, + "2561": { + "id": 2561, + "cluster_id": 2820, + "label": "LineCurrentPhaseC", + "type": "Optional[uint]" + }, + "2562": { + "id": 2562, + "cluster_id": 2820, + "label": "ActiveCurrentPhaseC", + "type": "Optional[int]" + }, + "2563": { + "id": 2563, + "cluster_id": 2820, + "label": "ReactiveCurrentPhaseC", + "type": "Optional[int]" + }, + "2565": { + "id": 2565, + "cluster_id": 2820, + "label": "RmsVoltagePhaseC", + "type": "Optional[uint]" + }, + "2566": { + "id": 2566, + "cluster_id": 2820, + "label": "RmsVoltageMinPhaseC", + "type": "Optional[uint]" + }, + "2567": { + "id": 2567, + "cluster_id": 2820, + "label": "RmsVoltageMaxPhaseC", + "type": "Optional[uint]" + }, + "2568": { + "id": 2568, + "cluster_id": 2820, + "label": "RmsCurrentPhaseC", + "type": "Optional[uint]" + }, + "2569": { + "id": 2569, + "cluster_id": 2820, + "label": "RmsCurrentMinPhaseC", + "type": "Optional[uint]" + }, + "2570": { + "id": 2570, + "cluster_id": 2820, + "label": "RmsCurrentMaxPhaseC", + "type": "Optional[uint]" + }, + "2571": { + "id": 2571, + "cluster_id": 2820, + "label": "ActivePowerPhaseC", + "type": "Optional[int]" + }, + "2572": { + "id": 2572, + "cluster_id": 2820, + "label": "ActivePowerMinPhaseC", + "type": "Optional[int]" + }, + "2573": { + "id": 2573, + "cluster_id": 2820, + "label": "ActivePowerMaxPhaseC", + "type": "Optional[int]" + }, + "2574": { + "id": 2574, + "cluster_id": 2820, + "label": "ReactivePowerPhaseC", + "type": "Optional[int]" + }, + "2575": { + "id": 2575, + "cluster_id": 2820, + "label": "ApparentPowerPhaseC", + "type": "Optional[uint]" + }, + "2576": { + "id": 2576, + "cluster_id": 2820, + "label": "PowerFactorPhaseC", + "type": "Optional[int]" + }, + "2577": { + "id": 2577, + "cluster_id": 2820, + "label": "AverageRmsVoltageMeasurementPeriodPhaseC", + "type": "Optional[uint]" + }, + "2578": { + "id": 2578, + "cluster_id": 2820, + "label": "AverageRmsOverVoltageCounterPhaseC", + "type": "Optional[uint]" + }, + "2579": { + "id": 2579, + "cluster_id": 2820, + "label": "AverageRmsUnderVoltageCounterPhaseC", + "type": "Optional[uint]" + }, + "2580": { + "id": 2580, + "cluster_id": 2820, + "label": "RmsExtremeOverVoltagePeriodPhaseC", + "type": "Optional[uint]" + }, + "2581": { + "id": 2581, + "cluster_id": 2820, + "label": "RmsExtremeUnderVoltagePeriodPhaseC", + "type": "Optional[uint]" + }, + "2582": { + "id": 2582, + "cluster_id": 2820, + "label": "RmsVoltageSagPeriodPhaseC", + "type": "Optional[uint]" + }, + "2583": { + "id": 2583, + "cluster_id": 2820, + "label": "RmsVoltageSwellPeriodPhaseC", + "type": "Optional[uint]" }, "65528": { "id": 65528, - "cluster_id": 1873, + "cluster_id": 2820, "label": "GeneratedCommandList", "type": "List[uint]" }, "65529": { "id": 65529, - "cluster_id": 1873, + "cluster_id": 2820, "label": "AcceptedCommandList", "type": "List[uint]" }, "65530": { "id": 65530, - "cluster_id": 1873, + "cluster_id": 2820, "label": "EventList", "type": "List[uint]" }, "65531": { "id": 65531, - "cluster_id": 1873, + "cluster_id": 2820, "label": "AttributeList", "type": "List[uint]" }, "65532": { "id": 65532, - "cluster_id": 1873, + "cluster_id": 2820, "label": "FeatureMap", "type": "uint" }, "65533": { "id": 65533, - "cluster_id": 1873, + "cluster_id": 2820, "label": "ClusterRevision", "type": "uint" } @@ -11774,36 +12218,12 @@ export const clusters: Record = { "label": "ClusterErrorBoolean", "type": "bool" }, - "51": { - "id": 51, - "cluster_id": 4294048773, - "label": "GlobalEnum", - "type": "aenum TestGlobalEnum" - }, - "52": { - "id": 52, - "cluster_id": 4294048773, - "label": "GlobalStruct", - "type": "Globals.Structs.TestGlobalStruct" - }, "255": { "id": 255, "cluster_id": 4294048773, "label": "Unsupported", "type": "Optional[bool]" }, - "12288": { - "id": 12288, - "cluster_id": 4294048773, - "label": "ReadFailureCode", - "type": "Optional[uint]" - }, - "12289": { - "id": 12289, - "cluster_id": 4294048773, - "label": "FailureInt32U", - "type": "Optional[uint]" - }, "16384": { "id": 16384, "cluster_id": 4294048773, @@ -12008,18 +12428,6 @@ export const clusters: Record = { "label": "WriteOnlyInt8u", "type": "Optional[uint]" }, - "16435": { - "id": 16435, - "cluster_id": 4294048773, - "label": "NullableGlobalEnum", - "type": "Union[Nullable, Globals.Enums.TestGlobalEnum]" - }, - "16436": { - "id": 16436, - "cluster_id": 4294048773, - "label": "NullableGlobalStruct", - "type": "Union[Nullable, Globals.Structs.TestGlobalStruct]" - }, "65528": { "id": 65528, "cluster_id": 4294048773, @@ -12193,30 +12601,6 @@ export const clusters: Record = { "cluster_id": 319486977, "label": "Current", "type": "float32" - }, - "319422483": { - "id": 319422483, - "cluster_id": 319486977, - "label": "Altitude", - "type": "float32" - }, - "319422484": { - "id": 319422484, - "cluster_id": 319486977, - "label": "Pressure", - "type": "float32" - }, - "319422488": { - "id": 319422488, - "cluster_id": 319486977, - "label": "ValvePosition", - "type": "int" - }, - "319422477": { - "id": 319422477, - "cluster_id": 319486977, - "label": "MotionSensitivity", - "type": "int" } } }, diff --git a/matter_server/client/models/device_types.py b/matter_server/client/models/device_types.py index e43a5fe5..694532aa 100644 --- a/matter_server/client/models/device_types.py +++ b/matter_server/client/models/device_types.py @@ -116,8 +116,8 @@ class Aggregator(DeviceType, device_type=0x000E): } -class BridgedNode(DeviceType, device_type=0x0013): - """Bridged Node.""" +class BridgedDevice(DeviceType, device_type=0x0013): + """Bridged Device.""" clusters = { all_clusters.Descriptor, @@ -594,6 +594,7 @@ class SmokeCoAlarm(DeviceType, device_type=0x0076): """Smoke CO Alarm.""" clusters = { + all_clusters.Descriptor, all_clusters.Identify, all_clusters.Groups, all_clusters.SmokeCoAlarm, @@ -736,7 +737,6 @@ class RoboticVacuumCleaner(DeviceType, device_type=0x0074): all_clusters.RvcRunMode, all_clusters.RvcCleanMode, all_clusters.RvcOperationalState, - all_clusters.ServiceArea, } @@ -796,24 +796,11 @@ class RainSensor(DeviceType, device_type=0x0044): } -class NetworkInfrastructureManager(DeviceType, device_type=0x0090): +class NetworkInfrastructureManager(DeviceType, device_type=0xFFF10010): """Network Infrastructure Manager.""" clusters = { all_clusters.Descriptor, - all_clusters.ThreadNetworkDirectory, - all_clusters.WiFiNetworkManagement, - all_clusters.ThreadBorderRouterManagement, - } - - -class ThreadBorderRouter(DeviceType, device_type=0x0091): - """Thread Border Router.""" - - clusters = { - all_clusters.Descriptor, - all_clusters.ThreadNetworkDiagnostics, - all_clusters.ThreadBorderRouterManagement, } @@ -824,6 +811,7 @@ class AllClustersAppServerExample(DeviceType, device_type=0xFFF10003): all_clusters.Identify, all_clusters.Descriptor, all_clusters.Binding, + all_clusters.BarrierControl, all_clusters.ColorControl, all_clusters.DoorLock, all_clusters.Groups, @@ -834,15 +822,12 @@ class AllClustersAppServerExample(DeviceType, device_type=0xFFF10003): } -class SecondaryNetworkInterface(DeviceType, device_type=0x0019): - """Secondary Network Interface.""" +class SecondaryNetworkCommissioningDeviceType(DeviceType, device_type=0xFFF10002): + """Secondary Network Commissioning Device Type.""" clusters = { all_clusters.NetworkCommissioning, all_clusters.Descriptor, - all_clusters.EthernetNetworkDiagnostics, - all_clusters.WiFiNetworkDiagnostics, - all_clusters.ThreadNetworkDiagnostics, } @@ -860,7 +845,6 @@ class CookSurface(DeviceType, device_type=0x0077): """Cook Surface.""" clusters = { - all_clusters.OnOff, all_clusters.Descriptor, all_clusters.TemperatureControl, all_clusters.TemperatureMeasurement, @@ -877,52 +861,3 @@ class Evse(DeviceType, device_type=0x050C): all_clusters.EnergyEvseMode, all_clusters.TemperatureMeasurement, } - - -class DeviceEnergyManagement(DeviceType, device_type=0x050D): - """Device Energy Management.""" - - clusters = { - all_clusters.Descriptor, - all_clusters.DeviceEnergyManagement, - all_clusters.DeviceEnergyManagementMode, - } - - -class WaterHeater(DeviceType, device_type=0x050F): - """Water Heater.""" - - clusters = { - all_clusters.Descriptor, - all_clusters.Identify, - all_clusters.Thermostat, - all_clusters.WaterHeaterManagement, - all_clusters.WaterHeaterMode, - } - - -class HeatPump(DeviceType, device_type=0x0309): - """Heat Pump.""" - - clusters = { - all_clusters.Descriptor, - all_clusters.Identify, - } - - -class SolarPower(DeviceType, device_type=0x0017): - """Solar Power.""" - - clusters = { - all_clusters.Descriptor, - all_clusters.Identify, - } - - -class BatteryStorage(DeviceType, device_type=0x0018): - """Battery Storage.""" - - clusters = { - all_clusters.Descriptor, - all_clusters.Identify, - } diff --git a/matter_server/client/models/node.py b/matter_server/client/models/node.py index 66b2c6ef..81336e62 100644 --- a/matter_server/client/models/node.py +++ b/matter_server/client/models/node.py @@ -19,7 +19,7 @@ from .device_types import ( ALL_TYPES as DEVICE_TYPES, Aggregator, - BridgedNode, + BridgedDevice, DeviceType, RootNode, ) @@ -75,7 +75,7 @@ def __init__( @property def is_bridged_device(self) -> bool: """Return if this endpoint represents a Bridged device.""" - return BridgedNode in self.device_types + return BridgedDevice in self.device_types @property def is_composed_device(self) -> bool: diff --git a/pyproject.toml b/pyproject.toml index 813fc41b..2472ba07 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -20,7 +20,7 @@ dependencies = [ "async-timeout", "coloredlogs", "orjson", - "home-assistant-chip-clusters==2024.11.0", + "home-assistant-chip-clusters==2024.9.0", ] description = "Python Matter WebSocket Server" license = {text = "Apache-2.0"} @@ -39,7 +39,7 @@ server = [ "cryptography==43.0.3", "orjson==3.10.12", "zeroconf==0.136.2", - "home-assistant-chip-core==2024.11.0", + "home-assistant-chip-core==2024.9.0", ] test = [ "aioresponses==0.7.7", From 029086a269b94b6059a0dc0b7cbaa0adc5e29ee7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 28 Nov 2024 00:21:01 +0100 Subject: [PATCH 069/400] Bump docker/build-push-action from 6.9.0 to 6.10.0 (#975) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4158c10d..ea81ffc0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -95,7 +95,7 @@ jobs: echo "minor=${patch%.*}" >> $GITHUB_OUTPUT echo "major=${patch%.*.*}" >> $GITHUB_OUTPUT - name: Build and Push release - uses: docker/build-push-action@v6.9.0 + uses: docker/build-push-action@v6.10.0 if: github.event.release.prerelease == false with: context: . @@ -109,7 +109,7 @@ jobs: push: true build-args: "PYTHON_MATTER_SERVER=${{ needs.build-and-publish-pypi.outputs.version }}" - name: Build and Push pre-release - uses: docker/build-push-action@v6.9.0 + uses: docker/build-push-action@v6.10.0 if: github.event.release.prerelease == true with: context: . From f7db06ac9991a247a91e0baf0f2c09d73c865cad Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 2 Dec 2024 10:18:37 +0100 Subject: [PATCH 070/400] Bump tomli from 2.1.0 to 2.2.1 (#989) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 2472ba07..fdde3c5e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,7 +54,7 @@ test = [ "pytest-aiohttp==1.0.5", "pytest-cov==6.0.0", "ruff==0.8.0", - "tomli==2.1.0", + "tomli==2.2.1", ] [project.scripts] From e1eeff90c7567e054ca2cc557853957afcc08ed0 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 2 Dec 2024 10:28:21 +0100 Subject: [PATCH 071/400] Bump aiohttp from 3.11.7 to 3.11.9 (#984) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index fdde3c5e..557c2a30 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,7 +32,7 @@ version = "0.0.0" [project.optional-dependencies] server = [ - "aiohttp==3.11.7", + "aiohttp==3.11.9", "aiorun==2024.8.1", "async-timeout==5.0.1", "coloredlogs==15.0.1", From b110f4a9e386ce7b6176b7c1408a36ac46416eb3 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 2 Dec 2024 10:28:40 +0100 Subject: [PATCH 072/400] Bump pytest from 8.3.3 to 8.3.4 (#988) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 557c2a30..de3e2695 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -49,7 +49,7 @@ test = [ "pre-commit==4.0.1", "pre-commit-hooks==5.0.0", "pylint==3.3.1", - "pytest==8.3.3", + "pytest==8.3.4", "pytest-asyncio==0.24.0", "pytest-aiohttp==1.0.5", "pytest-cov==6.0.0", From 65d6b9f1df04af181c7aa8bef51a880132d751b4 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 2 Dec 2024 10:31:56 +0100 Subject: [PATCH 073/400] Bump pylint from 3.3.1 to 3.3.2 (#986) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index de3e2695..4d9929a3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -48,7 +48,7 @@ test = [ "mypy==1.13.0", "pre-commit==4.0.1", "pre-commit-hooks==5.0.0", - "pylint==3.3.1", + "pylint==3.3.2", "pytest==8.3.4", "pytest-asyncio==0.24.0", "pytest-aiohttp==1.0.5", From dc90b86e12bdc533f151ddf6cdc066e376813220 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 2 Dec 2024 10:42:56 +0100 Subject: [PATCH 074/400] Bump ruff from 0.8.0 to 0.8.1 (#987) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 4d9929a3..336b5af1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -53,7 +53,7 @@ test = [ "pytest-asyncio==0.24.0", "pytest-aiohttp==1.0.5", "pytest-cov==6.0.0", - "ruff==0.8.0", + "ruff==0.8.1", "tomli==2.2.1", ] From 9bcba2ad1586fe6b83b5e5585a5bcd00b1966782 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 2 Dec 2024 10:51:30 +0100 Subject: [PATCH 075/400] Bump cryptography from 43.0.3 to 44.0.0 (#990) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 336b5af1..2d18af0b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -36,7 +36,7 @@ server = [ "aiorun==2024.8.1", "async-timeout==5.0.1", "coloredlogs==15.0.1", - "cryptography==43.0.3", + "cryptography==44.0.0", "orjson==3.10.12", "zeroconf==0.136.2", "home-assistant-chip-core==2024.9.0", From 4e543de02f8238376643a9fbe7e77a94fddf9ebe Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Thu, 5 Dec 2024 14:56:29 +0100 Subject: [PATCH 076/400] Bump to Matter 1.4 wheels and device types (#993) --- dashboard/src/client/models/descriptions.ts | 1822 ++++++++----------- matter_server/client/models/device_types.py | 79 +- matter_server/client/models/node.py | 4 +- pyproject.toml | 4 +- 4 files changed, 795 insertions(+), 1114 deletions(-) diff --git a/dashboard/src/client/models/descriptions.ts b/dashboard/src/client/models/descriptions.ts index b3e68d68..89ef386e 100644 --- a/dashboard/src/client/models/descriptions.ts +++ b/dashboard/src/client/models/descriptions.ts @@ -26,10 +26,10 @@ export const device_types: Record = { "id": 4293984257, "label": "Orphan Clusters", "clusters": [ + 28, 66, 67, - 68, - 28 + 68 ] }, "22": { @@ -70,26 +70,26 @@ export const device_types: Record = { "id": 1296, "label": "Electrical Sensor", "clusters": [ + 29, 144, 145, - 156, - 29 + 156 ] }, "18": { "id": 18, "label": "OTA Requestor", "clusters": [ - 42, - 29 + 29, + 42 ] }, "20": { "id": 20, "label": "OTA Provider", "clusters": [ - 41, - 29 + 29, + 41 ] }, "14": { @@ -102,37 +102,37 @@ export const device_types: Record = { }, "19": { "id": 19, - "label": "Bridged Device", + "label": "Bridged Node", "clusters": [ - 57, 29, 46, - 47 + 47, + 57 ] }, "256": { "id": 256, "label": "On/Off Light", "clusters": [ - 98, 3, 4, 6, 8, - 29 + 29, + 98 ] }, "257": { "id": 257, "label": "Dimmable Light", "clusters": [ - 98, 3, 4, 6, 8, 29, - 30 + 30, + 98 ] }, "268": { @@ -190,14 +190,14 @@ export const device_types: Record = { "label": "Pump", "clusters": [ 512, - 1026, - 3, + 98, 1027, - 4, - 6, 1028, - 98, + 3, + 1026, + 4, 8, + 6, 29, 30 ] @@ -300,8 +300,8 @@ export const device_types: Record = { "id": 773, "label": "Pressure Sensor", "clusters": [ - 3, 1027, + 3, 29 ] }, @@ -355,9 +355,9 @@ export const device_types: Record = { "label": "Window Covering", "clusters": [ 258, - 98, 3, 4, + 98, 29 ] }, @@ -374,10 +374,10 @@ export const device_types: Record = { "id": 768, "label": "Heating/Cooling Unit", "clusters": [ - 514, + 98, 3, + 514, 4, - 98, 6, 8, 29, @@ -388,14 +388,14 @@ export const device_types: Record = { "id": 769, "label": "Thermostat", "clusters": [ - 513, - 98, 3, - 516, 4, - 56, 29, - 30 + 30, + 56, + 98, + 513, + 516 ] }, "43": { @@ -415,14 +415,14 @@ export const device_types: Record = { 1283, 1284, 1285, - 1286, 6, 1287, - 1289, 1288, - 1291, - 1292, + 1286, 1290, + 1289, + 1292, + 1291, 1294, 29 ] @@ -435,10 +435,10 @@ export const device_types: Record = { 1284, 1285, 6, - 1286, 1287, - 1289, 1288, + 1286, + 1289, 1291, 29 ] @@ -450,17 +450,17 @@ export const device_types: Record = { 1283, 1284, 1285, - 1286, 6, 1287, - 1289, + 8, 1288, - 1291, + 1290, + 1286, 1292, 1293, 1294, - 8, - 1290, + 1289, + 1291, 29, 30 ] @@ -472,16 +472,16 @@ export const device_types: Record = { 1283, 1284, 1285, - 1286, 6, 1287, - 1289, + 8, 1288, - 1291, + 1290, + 1286, 1292, - 8, + 1289, 1294, - 1290, + 1291, 29, 30 ] @@ -526,14 +526,14 @@ export const device_types: Record = { "label": "Room Air Conditioner", "clusters": [ 513, + 98, 514, - 3, 516, + 1029, + 3, + 1026, 4, 6, - 1026, - 98, - 1029, 29 ] }, @@ -572,12 +572,12 @@ export const device_types: Record = { 1029, 1066, 1067, - 1068, 1036, - 1037, - 1071, 1069, 1070, + 1037, + 1071, + 1068, 1043, 1045, 91, @@ -670,6 +670,7 @@ export const device_types: Record = { "clusters": [ 97, 3, + 336, 84, 85, 29 @@ -692,9 +693,9 @@ export const device_types: Record = { "label": "Water Freeze Detector", "clusters": [ 128, - 29, 3, - 69 + 69, + 29 ] }, "66": { @@ -711,9 +712,9 @@ export const device_types: Record = { "label": "Water Leak Detector", "clusters": [ 128, - 29, 3, - 69 + 69, + 29 ] }, "68": { @@ -721,15 +722,27 @@ export const device_types: Record = { "label": "Rain Sensor", "clusters": [ 128, - 29, 3, - 69 + 69, + 29 ] }, - "4293984272": { - "id": 4293984272, + "144": { + "id": 144, "label": "Network Infrastructure Manager", "clusters": [ + 1105, + 1106, + 1107, + 29 + ] + }, + "145": { + "id": 145, + "label": "Thread Border Router", + "clusters": [ + 1106, + 53, 29 ] }, @@ -741,20 +754,22 @@ export const device_types: Record = { 257, 98, 3, - 4, 1026, + 4, 6, - 259, 8, 29, 30 ] }, - "4293984258": { - "id": 4293984258, - "label": "Secondary Network Commissioning Device Type", + "25": { + "id": 25, + "label": "Secondary Network Interface", "clusters": [ 49, + 53, + 54, + 55, 29 ] }, @@ -773,7 +788,8 @@ export const device_types: Record = { "clusters": [ 1026, 29, - 86 + 86, + 6 ] }, "1292": { @@ -786,6 +802,50 @@ export const device_types: Record = { 153, 29 ] + }, + "1293": { + "id": 1293, + "label": "Device Energy Management", + "clusters": [ + 152, + 29, + 159 + ] + }, + "1295": { + "id": 1295, + "label": "Water Heater", + "clusters": [ + 513, + 3, + 148, + 29, + 158 + ] + }, + "777": { + "id": 777, + "label": "Heat Pump", + "clusters": [ + 3, + 29 + ] + }, + "23": { + "id": 23, + "label": "Solar Power", + "clusters": [ + 3, + 29 + ] + }, + "24": { + "id": 24, + "label": "Battery Storage", + "clusters": [ + 3, + 29 + ] } } @@ -964,60 +1024,6 @@ export const clusters: Record = { } } }, - "7": { - "id": 7, - "label": "OnOffSwitchConfiguration", - "attributes": { - "0": { - "id": 0, - "cluster_id": 7, - "label": "SwitchType", - "type": "uint" - }, - "16": { - "id": 16, - "cluster_id": 7, - "label": "SwitchActions", - "type": "uint" - }, - "65528": { - "id": 65528, - "cluster_id": 7, - "label": "GeneratedCommandList", - "type": "List[uint]" - }, - "65529": { - "id": 65529, - "cluster_id": 7, - "label": "AcceptedCommandList", - "type": "List[uint]" - }, - "65530": { - "id": 65530, - "cluster_id": 7, - "label": "EventList", - "type": "List[uint]" - }, - "65531": { - "id": 65531, - "cluster_id": 7, - "label": "AttributeList", - "type": "List[uint]" - }, - "65532": { - "id": 65532, - "cluster_id": 7, - "label": "FeatureMap", - "type": "uint" - }, - "65533": { - "id": 65533, - "cluster_id": 7, - "label": "ClusterRevision", - "type": "uint" - } - } - }, "8": { "id": 8, "label": "LevelControl", @@ -1144,102 +1150,6 @@ export const clusters: Record = { } } }, - "15": { - "id": 15, - "label": "BinaryInputBasic", - "attributes": { - "4": { - "id": 4, - "cluster_id": 15, - "label": "ActiveText", - "type": "Optional[str]" - }, - "28": { - "id": 28, - "cluster_id": 15, - "label": "Description", - "type": "Optional[str]" - }, - "46": { - "id": 46, - "cluster_id": 15, - "label": "InactiveText", - "type": "Optional[str]" - }, - "81": { - "id": 81, - "cluster_id": 15, - "label": "OutOfService", - "type": "bool" - }, - "84": { - "id": 84, - "cluster_id": 15, - "label": "Polarity", - "type": "Optional[uint]" - }, - "85": { - "id": 85, - "cluster_id": 15, - "label": "PresentValue", - "type": "bool" - }, - "103": { - "id": 103, - "cluster_id": 15, - "label": "Reliability", - "type": "Optional[uint]" - }, - "111": { - "id": 111, - "cluster_id": 15, - "label": "StatusFlags", - "type": "uint" - }, - "256": { - "id": 256, - "cluster_id": 15, - "label": "ApplicationType", - "type": "Optional[uint]" - }, - "65528": { - "id": 65528, - "cluster_id": 15, - "label": "GeneratedCommandList", - "type": "List[uint]" - }, - "65529": { - "id": 65529, - "cluster_id": 15, - "label": "AcceptedCommandList", - "type": "List[uint]" - }, - "65530": { - "id": 65530, - "cluster_id": 15, - "label": "EventList", - "type": "List[uint]" - }, - "65531": { - "id": 65531, - "cluster_id": 15, - "label": "AttributeList", - "type": "List[uint]" - }, - "65532": { - "id": 65532, - "cluster_id": 15, - "label": "FeatureMap", - "type": "uint" - }, - "65533": { - "id": 65533, - "cluster_id": 15, - "label": "ClusterRevision", - "type": "uint" - } - } - }, "28": { "id": 28, "label": "PulseWidthModulation", @@ -1436,6 +1346,18 @@ export const clusters: Record = { "label": "AccessControlEntriesPerFabric", "type": "uint" }, + "5": { + "id": 5, + "cluster_id": 31, + "label": "CommissioningARL", + "type": "Optional[List[AccessControl.Structs.CommissioningAccessRestrictionEntryStruct]]" + }, + "6": { + "id": 6, + "cluster_id": 31, + "label": "Arl", + "type": "Optional[List[AccessControl.Structs.AccessRestrictionEntryStruct]]" + }, "65528": { "id": 65528, "cluster_id": 31, @@ -1650,7 +1572,7 @@ export const clusters: Record = { "id": 18, "cluster_id": 40, "label": "UniqueID", - "type": "Optional[str]" + "type": "str" }, "19": { "id": 19, @@ -2300,8 +2222,32 @@ export const clusters: Record = { "label": "SupportsConcurrentConnection", "type": "bool" }, - "65528": { - "id": 65528, + "5": { + "id": 5, + "cluster_id": 48, + "label": "TCAcceptedVersion", + "type": "Optional[uint]" + }, + "6": { + "id": 6, + "cluster_id": 48, + "label": "TCMinRequiredVersion", + "type": "Optional[uint]" + }, + "7": { + "id": 7, + "cluster_id": 48, + "label": "TCAcknowledgements", + "type": "Optional[uint]" + }, + "8": { + "id": 8, + "cluster_id": 48, + "label": "TCAcknowledgementsRequired", + "type": "Optional[bool]" + }, + "65528": { + "id": 65528, "cluster_id": 48, "label": "GeneratedCommandList", "type": "List[uint]" @@ -3428,6 +3374,12 @@ export const clusters: Record = { "label": "ProductName", "type": "Optional[str]" }, + "4": { + "id": 4, + "cluster_id": 57, + "label": "ProductID", + "type": "Optional[uint]" + }, "5": { "id": 5, "cluster_id": 57, @@ -3498,7 +3450,7 @@ export const clusters: Record = { "id": 18, "cluster_id": 57, "label": "UniqueID", - "type": "Optional[str]" + "type": "str" }, "20": { "id": 20, @@ -4136,6 +4088,12 @@ export const clusters: Record = { "label": "OperatingMode", "type": "Optional[IcdManagement.Enums.OperatingModeEnum]" }, + "9": { + "id": 9, + "cluster_id": 70, + "label": "MaximumCheckInBackOff", + "type": "Optional[uint]" + }, "65528": { "id": 65528, "cluster_id": 70, @@ -6208,6 +6166,84 @@ export const clusters: Record = { } } }, + "148": { + "id": 148, + "label": "WaterHeaterManagement", + "attributes": { + "0": { + "id": 0, + "cluster_id": 148, + "label": "HeaterTypes", + "type": "uint" + }, + "1": { + "id": 1, + "cluster_id": 148, + "label": "HeatDemand", + "type": "uint" + }, + "2": { + "id": 2, + "cluster_id": 148, + "label": "TankVolume", + "type": "Optional[uint]" + }, + "3": { + "id": 3, + "cluster_id": 148, + "label": "EstimatedHeatRequired", + "type": "Optional[int]" + }, + "4": { + "id": 4, + "cluster_id": 148, + "label": "TankPercentage", + "type": "Optional[uint]" + }, + "5": { + "id": 5, + "cluster_id": 148, + "label": "BoostState", + "type": "aenum BoostStateEnum" + }, + "65528": { + "id": 65528, + "cluster_id": 148, + "label": "GeneratedCommandList", + "type": "List[uint]" + }, + "65529": { + "id": 65529, + "cluster_id": 148, + "label": "AcceptedCommandList", + "type": "List[uint]" + }, + "65530": { + "id": 65530, + "cluster_id": 148, + "label": "EventList", + "type": "List[uint]" + }, + "65531": { + "id": 65531, + "cluster_id": 148, + "label": "AttributeList", + "type": "List[uint]" + }, + "65532": { + "id": 65532, + "cluster_id": 148, + "label": "FeatureMap", + "type": "uint" + }, + "65533": { + "id": 65533, + "cluster_id": 148, + "label": "ClusterRevision", + "type": "uint" + } + } + }, "150": { "id": 150, "label": "DemandResponseLoadControl", @@ -6390,7 +6426,7 @@ export const clusters: Record = { "id": 5, "cluster_id": 152, "label": "PowerAdjustmentCapability", - "type": "Union[NoneType, Nullable, List[DeviceEnergyManagement.Structs.PowerAdjustStruct]]" + "type": "Union[NoneType, Nullable, DeviceEnergyManagement.Structs.PowerAdjustCapabilityStruct]" }, "6": { "id": 6, @@ -6814,6 +6850,72 @@ export const clusters: Record = { } } }, + "158": { + "id": 158, + "label": "WaterHeaterMode", + "attributes": { + "0": { + "id": 0, + "cluster_id": 158, + "label": "SupportedModes", + "type": "List[WaterHeaterMode.Structs.ModeOptionStruct]" + }, + "1": { + "id": 1, + "cluster_id": 158, + "label": "CurrentMode", + "type": "uint" + }, + "2": { + "id": 2, + "cluster_id": 158, + "label": "StartUpMode", + "type": "Union[NoneType, Nullable, uint]" + }, + "3": { + "id": 3, + "cluster_id": 158, + "label": "OnMode", + "type": "Union[NoneType, Nullable, uint]" + }, + "65528": { + "id": 65528, + "cluster_id": 158, + "label": "GeneratedCommandList", + "type": "List[uint]" + }, + "65529": { + "id": 65529, + "cluster_id": 158, + "label": "AcceptedCommandList", + "type": "List[uint]" + }, + "65530": { + "id": 65530, + "cluster_id": 158, + "label": "EventList", + "type": "List[uint]" + }, + "65531": { + "id": 65531, + "cluster_id": 158, + "label": "AttributeList", + "type": "List[uint]" + }, + "65532": { + "id": 65532, + "cluster_id": 158, + "label": "FeatureMap", + "type": "uint" + }, + "65533": { + "id": 65533, + "cluster_id": 158, + "label": "ClusterRevision", + "type": "uint" + } + } + }, "159": { "id": 159, "label": "DeviceEnergyManagementMode", @@ -7014,7 +7116,7 @@ export const clusters: Record = { "id": 35, "cluster_id": 257, "label": "AutoRelockTime", - "type": "uint" + "type": "Optional[uint]" }, "36": { "id": 36, @@ -7366,103 +7468,79 @@ export const clusters: Record = { } } }, - "259": { - "id": 259, - "label": "BarrierControl", + "336": { + "id": 336, + "label": "ServiceArea", "attributes": { + "0": { + "id": 0, + "cluster_id": 336, + "label": "SupportedAreas", + "type": "List[ServiceArea.Structs.AreaStruct]" + }, "1": { "id": 1, - "cluster_id": 259, - "label": "BarrierMovingState", - "type": "uint" + "cluster_id": 336, + "label": "SupportedMaps", + "type": "Optional[List[ServiceArea.Structs.MapStruct]]" }, "2": { "id": 2, - "cluster_id": 259, - "label": "BarrierSafetyStatus", - "type": "uint" + "cluster_id": 336, + "label": "SelectedAreas", + "type": "List[uint]" }, "3": { "id": 3, - "cluster_id": 259, - "label": "BarrierCapabilities", - "type": "uint" + "cluster_id": 336, + "label": "CurrentArea", + "type": "Union[NoneType, Nullable, uint]" }, "4": { "id": 4, - "cluster_id": 259, - "label": "BarrierOpenEvents", - "type": "Optional[uint]" + "cluster_id": 336, + "label": "EstimatedEndTime", + "type": "Union[NoneType, Nullable, uint]" }, "5": { "id": 5, - "cluster_id": 259, - "label": "BarrierCloseEvents", - "type": "Optional[uint]" - }, - "6": { - "id": 6, - "cluster_id": 259, - "label": "BarrierCommandOpenEvents", - "type": "Optional[uint]" - }, - "7": { - "id": 7, - "cluster_id": 259, - "label": "BarrierCommandCloseEvents", - "type": "Optional[uint]" - }, - "8": { - "id": 8, - "cluster_id": 259, - "label": "BarrierOpenPeriod", - "type": "Optional[uint]" - }, - "9": { - "id": 9, - "cluster_id": 259, - "label": "BarrierClosePeriod", - "type": "Optional[uint]" - }, - "10": { - "id": 10, - "cluster_id": 259, - "label": "BarrierPosition", - "type": "uint" + "cluster_id": 336, + "label": "Progress", + "type": "Optional[List[ServiceArea.Structs.ProgressStruct]]" }, "65528": { "id": 65528, - "cluster_id": 259, + "cluster_id": 336, "label": "GeneratedCommandList", "type": "List[uint]" }, "65529": { "id": 65529, - "cluster_id": 259, + "cluster_id": 336, "label": "AcceptedCommandList", "type": "List[uint]" }, "65530": { "id": 65530, - "cluster_id": 259, + "cluster_id": 336, "label": "EventList", "type": "List[uint]" }, "65531": { "id": 65531, - "cluster_id": 259, + "cluster_id": 336, "label": "AttributeList", "type": "List[uint]" }, "65532": { "id": 65532, - "cluster_id": 259, + "cluster_id": 336, "label": "FeatureMap", "type": "uint" }, "65533": { "id": 65533, - "cluster_id": 259, + "cluster_id": 336, "label": "ClusterRevision", "type": "uint" } @@ -8009,27 +8087,9 @@ export const clusters: Record = { "82": { "id": 82, "cluster_id": 513, - "label": "PresetsSchedulesEditable", - "type": "Optional[bool]" - }, - "83": { - "id": 83, - "cluster_id": 513, - "label": "TemperatureSetpointHoldPolicy", - "type": "Optional[uint]" - }, - "84": { - "id": 84, - "cluster_id": 513, "label": "SetpointHoldExpiryTimestamp", "type": "Union[NoneType, Nullable, uint]" }, - "85": { - "id": 85, - "cluster_id": 513, - "label": "QueuedPreset", - "type": "Union[NoneType, Nullable, Thermostat.Structs.QueuedPresetStruct]" - }, "65528": { "id": 65528, "cluster_id": 513, @@ -8280,7 +8340,7 @@ export const clusters: Record = { "id": 5, "cluster_id": 768, "label": "DriftCompensation", - "type": "Optional[uint]" + "type": "Optional[ColorControl.Enums.DriftCompensationEnum]" }, "6": { "id": 6, @@ -8298,7 +8358,7 @@ export const clusters: Record = { "id": 8, "cluster_id": 768, "label": "ColorMode", - "type": "uint" + "type": "aenum ColorModeEnum" }, "15": { "id": 15, @@ -8496,7 +8556,7 @@ export const clusters: Record = { "id": 16385, "cluster_id": 768, "label": "EnhancedColorMode", - "type": "uint" + "type": "aenum EnhancedColorModeEnum" }, "16386": { "id": 16386, @@ -9110,6 +9170,18 @@ export const clusters: Record = { "label": "OccupancySensorTypeBitmap", "type": "uint" }, + "3": { + "id": 3, + "cluster_id": 1030, + "label": "HoldTime", + "type": "Optional[uint]" + }, + "4": { + "id": 4, + "cluster_id": 1030, + "label": "HoldTimeLimits", + "type": "Optional[OccupancySensing.Structs.HoldTimeLimitsStruct]" + }, "16": { "id": 16, "cluster_id": 1030, @@ -10282,129 +10354,321 @@ export const clusters: Record = { } } }, - "1283": { - "id": 1283, - "label": "WakeOnLan", + "1105": { + "id": 1105, + "label": "WiFiNetworkManagement", "attributes": { "0": { "id": 0, - "cluster_id": 1283, - "label": "MACAddress", - "type": "Optional[str]" + "cluster_id": 1105, + "label": "Ssid", + "type": "Union[Nullable, bytes]" }, "1": { "id": 1, - "cluster_id": 1283, - "label": "LinkLocalAddress", - "type": "Optional[bytes]" + "cluster_id": 1105, + "label": "PassphraseSurrogate", + "type": "Union[Nullable, uint]" }, "65528": { "id": 65528, - "cluster_id": 1283, + "cluster_id": 1105, "label": "GeneratedCommandList", "type": "List[uint]" }, "65529": { "id": 65529, - "cluster_id": 1283, + "cluster_id": 1105, "label": "AcceptedCommandList", "type": "List[uint]" }, "65530": { "id": 65530, - "cluster_id": 1283, + "cluster_id": 1105, "label": "EventList", "type": "List[uint]" }, "65531": { "id": 65531, - "cluster_id": 1283, + "cluster_id": 1105, "label": "AttributeList", "type": "List[uint]" }, "65532": { "id": 65532, - "cluster_id": 1283, + "cluster_id": 1105, "label": "FeatureMap", "type": "uint" }, "65533": { "id": 65533, - "cluster_id": 1283, + "cluster_id": 1105, "label": "ClusterRevision", "type": "uint" } } }, - "1284": { - "id": 1284, - "label": "Channel", + "1106": { + "id": 1106, + "label": "ThreadBorderRouterManagement", "attributes": { "0": { "id": 0, - "cluster_id": 1284, - "label": "ChannelList", - "type": "Optional[List[Channel.Structs.ChannelInfoStruct]]" + "cluster_id": 1106, + "label": "BorderRouterName", + "type": "str" }, "1": { "id": 1, - "cluster_id": 1284, - "label": "Lineup", - "type": "Union[NoneType, Nullable, Channel.Structs.LineupInfoStruct]" + "cluster_id": 1106, + "label": "BorderAgentID", + "type": "bytes" }, "2": { "id": 2, - "cluster_id": 1284, - "label": "CurrentChannel", - "type": "Union[NoneType, Nullable, Channel.Structs.ChannelInfoStruct]" + "cluster_id": 1106, + "label": "ThreadVersion", + "type": "uint" + }, + "3": { + "id": 3, + "cluster_id": 1106, + "label": "InterfaceEnabled", + "type": "bool" + }, + "4": { + "id": 4, + "cluster_id": 1106, + "label": "ActiveDatasetTimestamp", + "type": "Union[Nullable, uint]" + }, + "5": { + "id": 5, + "cluster_id": 1106, + "label": "PendingDatasetTimestamp", + "type": "Union[Nullable, uint]" }, "65528": { "id": 65528, - "cluster_id": 1284, + "cluster_id": 1106, "label": "GeneratedCommandList", "type": "List[uint]" }, "65529": { "id": 65529, - "cluster_id": 1284, + "cluster_id": 1106, "label": "AcceptedCommandList", "type": "List[uint]" }, "65530": { "id": 65530, - "cluster_id": 1284, + "cluster_id": 1106, "label": "EventList", "type": "List[uint]" }, "65531": { "id": 65531, - "cluster_id": 1284, + "cluster_id": 1106, "label": "AttributeList", "type": "List[uint]" }, "65532": { "id": 65532, - "cluster_id": 1284, + "cluster_id": 1106, "label": "FeatureMap", "type": "uint" }, "65533": { "id": 65533, - "cluster_id": 1284, + "cluster_id": 1106, "label": "ClusterRevision", "type": "uint" } } }, - "1285": { - "id": 1285, - "label": "TargetNavigator", + "1107": { + "id": 1107, + "label": "ThreadNetworkDirectory", "attributes": { "0": { "id": 0, - "cluster_id": 1285, - "label": "TargetList", - "type": "List[TargetNavigator.Structs.TargetInfoStruct]" + "cluster_id": 1107, + "label": "PreferredExtendedPanID", + "type": "Union[Nullable, bytes]" + }, + "1": { + "id": 1, + "cluster_id": 1107, + "label": "ThreadNetworks", + "type": "List[ThreadNetworkDirectory.Structs.ThreadNetworkStruct]" + }, + "2": { + "id": 2, + "cluster_id": 1107, + "label": "ThreadNetworkTableSize", + "type": "uint" + }, + "65528": { + "id": 65528, + "cluster_id": 1107, + "label": "GeneratedCommandList", + "type": "List[uint]" + }, + "65529": { + "id": 65529, + "cluster_id": 1107, + "label": "AcceptedCommandList", + "type": "List[uint]" + }, + "65530": { + "id": 65530, + "cluster_id": 1107, + "label": "EventList", + "type": "List[uint]" + }, + "65531": { + "id": 65531, + "cluster_id": 1107, + "label": "AttributeList", + "type": "List[uint]" + }, + "65532": { + "id": 65532, + "cluster_id": 1107, + "label": "FeatureMap", + "type": "uint" + }, + "65533": { + "id": 65533, + "cluster_id": 1107, + "label": "ClusterRevision", + "type": "uint" + } + } + }, + "1283": { + "id": 1283, + "label": "WakeOnLan", + "attributes": { + "0": { + "id": 0, + "cluster_id": 1283, + "label": "MACAddress", + "type": "Optional[str]" + }, + "1": { + "id": 1, + "cluster_id": 1283, + "label": "LinkLocalAddress", + "type": "Optional[bytes]" + }, + "65528": { + "id": 65528, + "cluster_id": 1283, + "label": "GeneratedCommandList", + "type": "List[uint]" + }, + "65529": { + "id": 65529, + "cluster_id": 1283, + "label": "AcceptedCommandList", + "type": "List[uint]" + }, + "65530": { + "id": 65530, + "cluster_id": 1283, + "label": "EventList", + "type": "List[uint]" + }, + "65531": { + "id": 65531, + "cluster_id": 1283, + "label": "AttributeList", + "type": "List[uint]" + }, + "65532": { + "id": 65532, + "cluster_id": 1283, + "label": "FeatureMap", + "type": "uint" + }, + "65533": { + "id": 65533, + "cluster_id": 1283, + "label": "ClusterRevision", + "type": "uint" + } + } + }, + "1284": { + "id": 1284, + "label": "Channel", + "attributes": { + "0": { + "id": 0, + "cluster_id": 1284, + "label": "ChannelList", + "type": "Optional[List[Channel.Structs.ChannelInfoStruct]]" + }, + "1": { + "id": 1, + "cluster_id": 1284, + "label": "Lineup", + "type": "Union[NoneType, Nullable, Channel.Structs.LineupInfoStruct]" + }, + "2": { + "id": 2, + "cluster_id": 1284, + "label": "CurrentChannel", + "type": "Union[NoneType, Nullable, Channel.Structs.ChannelInfoStruct]" + }, + "65528": { + "id": 65528, + "cluster_id": 1284, + "label": "GeneratedCommandList", + "type": "List[uint]" + }, + "65529": { + "id": 65529, + "cluster_id": 1284, + "label": "AcceptedCommandList", + "type": "List[uint]" + }, + "65530": { + "id": 65530, + "cluster_id": 1284, + "label": "EventList", + "type": "List[uint]" + }, + "65531": { + "id": 65531, + "cluster_id": 1284, + "label": "AttributeList", + "type": "List[uint]" + }, + "65532": { + "id": 65532, + "cluster_id": 1284, + "label": "FeatureMap", + "type": "uint" + }, + "65533": { + "id": 65533, + "cluster_id": 1284, + "label": "ClusterRevision", + "type": "uint" + } + } + }, + "1285": { + "id": 1285, + "label": "TargetNavigator", + "attributes": { + "0": { + "id": 0, + "cluster_id": 1285, + "label": "TargetList", + "type": "List[TargetNavigator.Structs.TargetInfoStruct]" }, "1": { "id": 1, @@ -11122,811 +11386,103 @@ export const clusters: Record = { } } }, - "2820": { - "id": 2820, - "label": "ElectricalMeasurement", + "1872": { + "id": 1872, + "label": "EcosystemInformation", "attributes": { "0": { "id": 0, - "cluster_id": 2820, - "label": "MeasurementType", - "type": "Optional[uint]" - }, - "256": { - "id": 256, - "cluster_id": 2820, - "label": "DcVoltage", - "type": "Optional[int]" - }, - "257": { - "id": 257, - "cluster_id": 2820, - "label": "DcVoltageMin", - "type": "Optional[int]" - }, - "258": { - "id": 258, - "cluster_id": 2820, - "label": "DcVoltageMax", - "type": "Optional[int]" - }, - "259": { - "id": 259, - "cluster_id": 2820, - "label": "DcCurrent", - "type": "Optional[int]" - }, - "260": { - "id": 260, - "cluster_id": 2820, - "label": "DcCurrentMin", - "type": "Optional[int]" - }, - "261": { - "id": 261, - "cluster_id": 2820, - "label": "DcCurrentMax", - "type": "Optional[int]" - }, - "262": { - "id": 262, - "cluster_id": 2820, - "label": "DcPower", - "type": "Optional[int]" - }, - "263": { - "id": 263, - "cluster_id": 2820, - "label": "DcPowerMin", - "type": "Optional[int]" - }, - "264": { - "id": 264, - "cluster_id": 2820, - "label": "DcPowerMax", - "type": "Optional[int]" - }, - "512": { - "id": 512, - "cluster_id": 2820, - "label": "DcVoltageMultiplier", - "type": "Optional[uint]" - }, - "513": { - "id": 513, - "cluster_id": 2820, - "label": "DcVoltageDivisor", - "type": "Optional[uint]" - }, - "514": { - "id": 514, - "cluster_id": 2820, - "label": "DcCurrentMultiplier", - "type": "Optional[uint]" - }, - "515": { - "id": 515, - "cluster_id": 2820, - "label": "DcCurrentDivisor", - "type": "Optional[uint]" - }, - "516": { - "id": 516, - "cluster_id": 2820, - "label": "DcPowerMultiplier", - "type": "Optional[uint]" - }, - "517": { - "id": 517, - "cluster_id": 2820, - "label": "DcPowerDivisor", - "type": "Optional[uint]" - }, - "768": { - "id": 768, - "cluster_id": 2820, - "label": "AcFrequency", - "type": "Optional[uint]" - }, - "769": { - "id": 769, - "cluster_id": 2820, - "label": "AcFrequencyMin", - "type": "Optional[uint]" - }, - "770": { - "id": 770, - "cluster_id": 2820, - "label": "AcFrequencyMax", - "type": "Optional[uint]" - }, - "771": { - "id": 771, - "cluster_id": 2820, - "label": "NeutralCurrent", - "type": "Optional[uint]" - }, - "772": { - "id": 772, - "cluster_id": 2820, - "label": "TotalActivePower", - "type": "Optional[int]" - }, - "773": { - "id": 773, - "cluster_id": 2820, - "label": "TotalReactivePower", - "type": "Optional[int]" - }, - "774": { - "id": 774, - "cluster_id": 2820, - "label": "TotalApparentPower", - "type": "Optional[uint]" - }, - "775": { - "id": 775, - "cluster_id": 2820, - "label": "Measured1stHarmonicCurrent", - "type": "Optional[int]" - }, - "776": { - "id": 776, - "cluster_id": 2820, - "label": "Measured3rdHarmonicCurrent", - "type": "Optional[int]" - }, - "777": { - "id": 777, - "cluster_id": 2820, - "label": "Measured5thHarmonicCurrent", - "type": "Optional[int]" - }, - "778": { - "id": 778, - "cluster_id": 2820, - "label": "Measured7thHarmonicCurrent", - "type": "Optional[int]" - }, - "779": { - "id": 779, - "cluster_id": 2820, - "label": "Measured9thHarmonicCurrent", - "type": "Optional[int]" - }, - "780": { - "id": 780, - "cluster_id": 2820, - "label": "Measured11thHarmonicCurrent", - "type": "Optional[int]" - }, - "781": { - "id": 781, - "cluster_id": 2820, - "label": "MeasuredPhase1stHarmonicCurrent", - "type": "Optional[int]" - }, - "782": { - "id": 782, - "cluster_id": 2820, - "label": "MeasuredPhase3rdHarmonicCurrent", - "type": "Optional[int]" - }, - "783": { - "id": 783, - "cluster_id": 2820, - "label": "MeasuredPhase5thHarmonicCurrent", - "type": "Optional[int]" - }, - "784": { - "id": 784, - "cluster_id": 2820, - "label": "MeasuredPhase7thHarmonicCurrent", - "type": "Optional[int]" - }, - "785": { - "id": 785, - "cluster_id": 2820, - "label": "MeasuredPhase9thHarmonicCurrent", - "type": "Optional[int]" - }, - "786": { - "id": 786, - "cluster_id": 2820, - "label": "MeasuredPhase11thHarmonicCurrent", - "type": "Optional[int]" - }, - "1024": { - "id": 1024, - "cluster_id": 2820, - "label": "AcFrequencyMultiplier", - "type": "Optional[uint]" - }, - "1025": { - "id": 1025, - "cluster_id": 2820, - "label": "AcFrequencyDivisor", - "type": "Optional[uint]" - }, - "1026": { - "id": 1026, - "cluster_id": 2820, - "label": "PowerMultiplier", - "type": "Optional[uint]" - }, - "1027": { - "id": 1027, - "cluster_id": 2820, - "label": "PowerDivisor", - "type": "Optional[uint]" - }, - "1028": { - "id": 1028, - "cluster_id": 2820, - "label": "HarmonicCurrentMultiplier", - "type": "Optional[int]" - }, - "1029": { - "id": 1029, - "cluster_id": 2820, - "label": "PhaseHarmonicCurrentMultiplier", - "type": "Optional[int]" - }, - "1280": { - "id": 1280, - "cluster_id": 2820, - "label": "InstantaneousVoltage", - "type": "Optional[int]" - }, - "1281": { - "id": 1281, - "cluster_id": 2820, - "label": "InstantaneousLineCurrent", - "type": "Optional[uint]" - }, - "1282": { - "id": 1282, - "cluster_id": 2820, - "label": "InstantaneousActiveCurrent", - "type": "Optional[int]" - }, - "1283": { - "id": 1283, - "cluster_id": 2820, - "label": "InstantaneousReactiveCurrent", - "type": "Optional[int]" - }, - "1284": { - "id": 1284, - "cluster_id": 2820, - "label": "InstantaneousPower", - "type": "Optional[int]" - }, - "1285": { - "id": 1285, - "cluster_id": 2820, - "label": "RmsVoltage", - "type": "Optional[uint]" - }, - "1286": { - "id": 1286, - "cluster_id": 2820, - "label": "RmsVoltageMin", - "type": "Optional[uint]" - }, - "1287": { - "id": 1287, - "cluster_id": 2820, - "label": "RmsVoltageMax", - "type": "Optional[uint]" - }, - "1288": { - "id": 1288, - "cluster_id": 2820, - "label": "RmsCurrent", - "type": "Optional[uint]" - }, - "1289": { - "id": 1289, - "cluster_id": 2820, - "label": "RmsCurrentMin", - "type": "Optional[uint]" - }, - "1290": { - "id": 1290, - "cluster_id": 2820, - "label": "RmsCurrentMax", - "type": "Optional[uint]" - }, - "1291": { - "id": 1291, - "cluster_id": 2820, - "label": "ActivePower", - "type": "Optional[int]" - }, - "1292": { - "id": 1292, - "cluster_id": 2820, - "label": "ActivePowerMin", - "type": "Optional[int]" - }, - "1293": { - "id": 1293, - "cluster_id": 2820, - "label": "ActivePowerMax", - "type": "Optional[int]" - }, - "1294": { - "id": 1294, - "cluster_id": 2820, - "label": "ReactivePower", - "type": "Optional[int]" - }, - "1295": { - "id": 1295, - "cluster_id": 2820, - "label": "ApparentPower", - "type": "Optional[uint]" - }, - "1296": { - "id": 1296, - "cluster_id": 2820, - "label": "PowerFactor", - "type": "Optional[int]" - }, - "1297": { - "id": 1297, - "cluster_id": 2820, - "label": "AverageRmsVoltageMeasurementPeriod", - "type": "Optional[uint]" - }, - "1299": { - "id": 1299, - "cluster_id": 2820, - "label": "AverageRmsUnderVoltageCounter", - "type": "Optional[uint]" - }, - "1300": { - "id": 1300, - "cluster_id": 2820, - "label": "RmsExtremeOverVoltagePeriod", - "type": "Optional[uint]" - }, - "1301": { - "id": 1301, - "cluster_id": 2820, - "label": "RmsExtremeUnderVoltagePeriod", - "type": "Optional[uint]" - }, - "1302": { - "id": 1302, - "cluster_id": 2820, - "label": "RmsVoltageSagPeriod", - "type": "Optional[uint]" - }, - "1303": { - "id": 1303, - "cluster_id": 2820, - "label": "RmsVoltageSwellPeriod", - "type": "Optional[uint]" - }, - "1536": { - "id": 1536, - "cluster_id": 2820, - "label": "AcVoltageMultiplier", - "type": "Optional[uint]" - }, - "1537": { - "id": 1537, - "cluster_id": 2820, - "label": "AcVoltageDivisor", - "type": "Optional[uint]" - }, - "1538": { - "id": 1538, - "cluster_id": 2820, - "label": "AcCurrentMultiplier", - "type": "Optional[uint]" - }, - "1539": { - "id": 1539, - "cluster_id": 2820, - "label": "AcCurrentDivisor", - "type": "Optional[uint]" - }, - "1540": { - "id": 1540, - "cluster_id": 2820, - "label": "AcPowerMultiplier", - "type": "Optional[uint]" - }, - "1541": { - "id": 1541, - "cluster_id": 2820, - "label": "AcPowerDivisor", - "type": "Optional[uint]" - }, - "1792": { - "id": 1792, - "cluster_id": 2820, - "label": "OverloadAlarmsMask", - "type": "Optional[uint]" - }, - "1793": { - "id": 1793, - "cluster_id": 2820, - "label": "VoltageOverload", - "type": "Optional[int]" - }, - "1794": { - "id": 1794, - "cluster_id": 2820, - "label": "CurrentOverload", - "type": "Optional[int]" - }, - "2048": { - "id": 2048, - "cluster_id": 2820, - "label": "AcOverloadAlarmsMask", - "type": "Optional[uint]" - }, - "2049": { - "id": 2049, - "cluster_id": 2820, - "label": "AcVoltageOverload", - "type": "Optional[int]" - }, - "2050": { - "id": 2050, - "cluster_id": 2820, - "label": "AcCurrentOverload", - "type": "Optional[int]" - }, - "2051": { - "id": 2051, - "cluster_id": 2820, - "label": "AcActivePowerOverload", - "type": "Optional[int]" - }, - "2052": { - "id": 2052, - "cluster_id": 2820, - "label": "AcReactivePowerOverload", - "type": "Optional[int]" - }, - "2053": { - "id": 2053, - "cluster_id": 2820, - "label": "AverageRmsOverVoltage", - "type": "Optional[int]" - }, - "2054": { - "id": 2054, - "cluster_id": 2820, - "label": "AverageRmsUnderVoltage", - "type": "Optional[int]" - }, - "2055": { - "id": 2055, - "cluster_id": 2820, - "label": "RmsExtremeOverVoltage", - "type": "Optional[int]" - }, - "2056": { - "id": 2056, - "cluster_id": 2820, - "label": "RmsExtremeUnderVoltage", - "type": "Optional[int]" - }, - "2057": { - "id": 2057, - "cluster_id": 2820, - "label": "RmsVoltageSag", - "type": "Optional[int]" - }, - "2058": { - "id": 2058, - "cluster_id": 2820, - "label": "RmsVoltageSwell", - "type": "Optional[int]" - }, - "2305": { - "id": 2305, - "cluster_id": 2820, - "label": "LineCurrentPhaseB", - "type": "Optional[uint]" - }, - "2306": { - "id": 2306, - "cluster_id": 2820, - "label": "ActiveCurrentPhaseB", - "type": "Optional[int]" - }, - "2307": { - "id": 2307, - "cluster_id": 2820, - "label": "ReactiveCurrentPhaseB", - "type": "Optional[int]" - }, - "2309": { - "id": 2309, - "cluster_id": 2820, - "label": "RmsVoltagePhaseB", - "type": "Optional[uint]" - }, - "2310": { - "id": 2310, - "cluster_id": 2820, - "label": "RmsVoltageMinPhaseB", - "type": "Optional[uint]" - }, - "2311": { - "id": 2311, - "cluster_id": 2820, - "label": "RmsVoltageMaxPhaseB", - "type": "Optional[uint]" - }, - "2312": { - "id": 2312, - "cluster_id": 2820, - "label": "RmsCurrentPhaseB", - "type": "Optional[uint]" - }, - "2313": { - "id": 2313, - "cluster_id": 2820, - "label": "RmsCurrentMinPhaseB", - "type": "Optional[uint]" - }, - "2314": { - "id": 2314, - "cluster_id": 2820, - "label": "RmsCurrentMaxPhaseB", - "type": "Optional[uint]" - }, - "2315": { - "id": 2315, - "cluster_id": 2820, - "label": "ActivePowerPhaseB", - "type": "Optional[int]" - }, - "2316": { - "id": 2316, - "cluster_id": 2820, - "label": "ActivePowerMinPhaseB", - "type": "Optional[int]" - }, - "2317": { - "id": 2317, - "cluster_id": 2820, - "label": "ActivePowerMaxPhaseB", - "type": "Optional[int]" + "cluster_id": 1872, + "label": "DeviceDirectory", + "type": "List[EcosystemInformation.Structs.EcosystemDeviceStruct]" }, - "2318": { - "id": 2318, - "cluster_id": 2820, - "label": "ReactivePowerPhaseB", - "type": "Optional[int]" - }, - "2319": { - "id": 2319, - "cluster_id": 2820, - "label": "ApparentPowerPhaseB", - "type": "Optional[uint]" - }, - "2320": { - "id": 2320, - "cluster_id": 2820, - "label": "PowerFactorPhaseB", - "type": "Optional[int]" - }, - "2321": { - "id": 2321, - "cluster_id": 2820, - "label": "AverageRmsVoltageMeasurementPeriodPhaseB", - "type": "Optional[uint]" - }, - "2322": { - "id": 2322, - "cluster_id": 2820, - "label": "AverageRmsOverVoltageCounterPhaseB", - "type": "Optional[uint]" - }, - "2323": { - "id": 2323, - "cluster_id": 2820, - "label": "AverageRmsUnderVoltageCounterPhaseB", - "type": "Optional[uint]" - }, - "2324": { - "id": 2324, - "cluster_id": 2820, - "label": "RmsExtremeOverVoltagePeriodPhaseB", - "type": "Optional[uint]" - }, - "2325": { - "id": 2325, - "cluster_id": 2820, - "label": "RmsExtremeUnderVoltagePeriodPhaseB", - "type": "Optional[uint]" - }, - "2326": { - "id": 2326, - "cluster_id": 2820, - "label": "RmsVoltageSagPeriodPhaseB", - "type": "Optional[uint]" - }, - "2327": { - "id": 2327, - "cluster_id": 2820, - "label": "RmsVoltageSwellPeriodPhaseB", - "type": "Optional[uint]" - }, - "2561": { - "id": 2561, - "cluster_id": 2820, - "label": "LineCurrentPhaseC", - "type": "Optional[uint]" - }, - "2562": { - "id": 2562, - "cluster_id": 2820, - "label": "ActiveCurrentPhaseC", - "type": "Optional[int]" - }, - "2563": { - "id": 2563, - "cluster_id": 2820, - "label": "ReactiveCurrentPhaseC", - "type": "Optional[int]" - }, - "2565": { - "id": 2565, - "cluster_id": 2820, - "label": "RmsVoltagePhaseC", - "type": "Optional[uint]" - }, - "2566": { - "id": 2566, - "cluster_id": 2820, - "label": "RmsVoltageMinPhaseC", - "type": "Optional[uint]" - }, - "2567": { - "id": 2567, - "cluster_id": 2820, - "label": "RmsVoltageMaxPhaseC", - "type": "Optional[uint]" - }, - "2568": { - "id": 2568, - "cluster_id": 2820, - "label": "RmsCurrentPhaseC", - "type": "Optional[uint]" - }, - "2569": { - "id": 2569, - "cluster_id": 2820, - "label": "RmsCurrentMinPhaseC", - "type": "Optional[uint]" - }, - "2570": { - "id": 2570, - "cluster_id": 2820, - "label": "RmsCurrentMaxPhaseC", - "type": "Optional[uint]" - }, - "2571": { - "id": 2571, - "cluster_id": 2820, - "label": "ActivePowerPhaseC", - "type": "Optional[int]" - }, - "2572": { - "id": 2572, - "cluster_id": 2820, - "label": "ActivePowerMinPhaseC", - "type": "Optional[int]" - }, - "2573": { - "id": 2573, - "cluster_id": 2820, - "label": "ActivePowerMaxPhaseC", - "type": "Optional[int]" - }, - "2574": { - "id": 2574, - "cluster_id": 2820, - "label": "ReactivePowerPhaseC", - "type": "Optional[int]" - }, - "2575": { - "id": 2575, - "cluster_id": 2820, - "label": "ApparentPowerPhaseC", - "type": "Optional[uint]" - }, - "2576": { - "id": 2576, - "cluster_id": 2820, - "label": "PowerFactorPhaseC", - "type": "Optional[int]" - }, - "2577": { - "id": 2577, - "cluster_id": 2820, - "label": "AverageRmsVoltageMeasurementPeriodPhaseC", - "type": "Optional[uint]" + "1": { + "id": 1, + "cluster_id": 1872, + "label": "LocationDirectory", + "type": "List[EcosystemInformation.Structs.EcosystemLocationStruct]" }, - "2578": { - "id": 2578, - "cluster_id": 2820, - "label": "AverageRmsOverVoltageCounterPhaseC", - "type": "Optional[uint]" + "65528": { + "id": 65528, + "cluster_id": 1872, + "label": "GeneratedCommandList", + "type": "List[uint]" }, - "2579": { - "id": 2579, - "cluster_id": 2820, - "label": "AverageRmsUnderVoltageCounterPhaseC", - "type": "Optional[uint]" + "65529": { + "id": 65529, + "cluster_id": 1872, + "label": "AcceptedCommandList", + "type": "List[uint]" }, - "2580": { - "id": 2580, - "cluster_id": 2820, - "label": "RmsExtremeOverVoltagePeriodPhaseC", - "type": "Optional[uint]" + "65530": { + "id": 65530, + "cluster_id": 1872, + "label": "EventList", + "type": "List[uint]" }, - "2581": { - "id": 2581, - "cluster_id": 2820, - "label": "RmsExtremeUnderVoltagePeriodPhaseC", - "type": "Optional[uint]" + "65531": { + "id": 65531, + "cluster_id": 1872, + "label": "AttributeList", + "type": "List[uint]" }, - "2582": { - "id": 2582, - "cluster_id": 2820, - "label": "RmsVoltageSagPeriodPhaseC", - "type": "Optional[uint]" + "65532": { + "id": 65532, + "cluster_id": 1872, + "label": "FeatureMap", + "type": "uint" }, - "2583": { - "id": 2583, - "cluster_id": 2820, - "label": "RmsVoltageSwellPeriodPhaseC", - "type": "Optional[uint]" + "65533": { + "id": 65533, + "cluster_id": 1872, + "label": "ClusterRevision", + "type": "uint" + } + } + }, + "1873": { + "id": 1873, + "label": "CommissionerControl", + "attributes": { + "0": { + "id": 0, + "cluster_id": 1873, + "label": "SupportedDeviceCategories", + "type": "uint" }, "65528": { "id": 65528, - "cluster_id": 2820, + "cluster_id": 1873, "label": "GeneratedCommandList", "type": "List[uint]" }, "65529": { "id": 65529, - "cluster_id": 2820, + "cluster_id": 1873, "label": "AcceptedCommandList", "type": "List[uint]" }, "65530": { "id": 65530, - "cluster_id": 2820, + "cluster_id": 1873, "label": "EventList", "type": "List[uint]" }, "65531": { "id": 65531, - "cluster_id": 2820, + "cluster_id": 1873, "label": "AttributeList", "type": "List[uint]" }, "65532": { "id": 65532, - "cluster_id": 2820, + "cluster_id": 1873, "label": "FeatureMap", "type": "uint" }, "65533": { "id": 65533, - "cluster_id": 2820, + "cluster_id": 1873, "label": "ClusterRevision", "type": "uint" } @@ -12218,12 +11774,36 @@ export const clusters: Record = { "label": "ClusterErrorBoolean", "type": "bool" }, + "51": { + "id": 51, + "cluster_id": 4294048773, + "label": "GlobalEnum", + "type": "aenum TestGlobalEnum" + }, + "52": { + "id": 52, + "cluster_id": 4294048773, + "label": "GlobalStruct", + "type": "Globals.Structs.TestGlobalStruct" + }, "255": { "id": 255, "cluster_id": 4294048773, "label": "Unsupported", "type": "Optional[bool]" }, + "12288": { + "id": 12288, + "cluster_id": 4294048773, + "label": "ReadFailureCode", + "type": "Optional[uint]" + }, + "12289": { + "id": 12289, + "cluster_id": 4294048773, + "label": "FailureInt32U", + "type": "Optional[uint]" + }, "16384": { "id": 16384, "cluster_id": 4294048773, @@ -12428,6 +12008,18 @@ export const clusters: Record = { "label": "WriteOnlyInt8u", "type": "Optional[uint]" }, + "16435": { + "id": 16435, + "cluster_id": 4294048773, + "label": "NullableGlobalEnum", + "type": "Union[Nullable, Globals.Enums.TestGlobalEnum]" + }, + "16436": { + "id": 16436, + "cluster_id": 4294048773, + "label": "NullableGlobalStruct", + "type": "Union[Nullable, Globals.Structs.TestGlobalStruct]" + }, "65528": { "id": 65528, "cluster_id": 4294048773, @@ -12601,6 +12193,30 @@ export const clusters: Record = { "cluster_id": 319486977, "label": "Current", "type": "float32" + }, + "319422483": { + "id": 319422483, + "cluster_id": 319486977, + "label": "Altitude", + "type": "float32" + }, + "319422484": { + "id": 319422484, + "cluster_id": 319486977, + "label": "Pressure", + "type": "float32" + }, + "319422488": { + "id": 319422488, + "cluster_id": 319486977, + "label": "ValvePosition", + "type": "int" + }, + "319422477": { + "id": 319422477, + "cluster_id": 319486977, + "label": "MotionSensitivity", + "type": "int" } } }, diff --git a/matter_server/client/models/device_types.py b/matter_server/client/models/device_types.py index 694532aa..e43a5fe5 100644 --- a/matter_server/client/models/device_types.py +++ b/matter_server/client/models/device_types.py @@ -116,8 +116,8 @@ class Aggregator(DeviceType, device_type=0x000E): } -class BridgedDevice(DeviceType, device_type=0x0013): - """Bridged Device.""" +class BridgedNode(DeviceType, device_type=0x0013): + """Bridged Node.""" clusters = { all_clusters.Descriptor, @@ -594,7 +594,6 @@ class SmokeCoAlarm(DeviceType, device_type=0x0076): """Smoke CO Alarm.""" clusters = { - all_clusters.Descriptor, all_clusters.Identify, all_clusters.Groups, all_clusters.SmokeCoAlarm, @@ -737,6 +736,7 @@ class RoboticVacuumCleaner(DeviceType, device_type=0x0074): all_clusters.RvcRunMode, all_clusters.RvcCleanMode, all_clusters.RvcOperationalState, + all_clusters.ServiceArea, } @@ -796,11 +796,24 @@ class RainSensor(DeviceType, device_type=0x0044): } -class NetworkInfrastructureManager(DeviceType, device_type=0xFFF10010): +class NetworkInfrastructureManager(DeviceType, device_type=0x0090): """Network Infrastructure Manager.""" clusters = { all_clusters.Descriptor, + all_clusters.ThreadNetworkDirectory, + all_clusters.WiFiNetworkManagement, + all_clusters.ThreadBorderRouterManagement, + } + + +class ThreadBorderRouter(DeviceType, device_type=0x0091): + """Thread Border Router.""" + + clusters = { + all_clusters.Descriptor, + all_clusters.ThreadNetworkDiagnostics, + all_clusters.ThreadBorderRouterManagement, } @@ -811,7 +824,6 @@ class AllClustersAppServerExample(DeviceType, device_type=0xFFF10003): all_clusters.Identify, all_clusters.Descriptor, all_clusters.Binding, - all_clusters.BarrierControl, all_clusters.ColorControl, all_clusters.DoorLock, all_clusters.Groups, @@ -822,12 +834,15 @@ class AllClustersAppServerExample(DeviceType, device_type=0xFFF10003): } -class SecondaryNetworkCommissioningDeviceType(DeviceType, device_type=0xFFF10002): - """Secondary Network Commissioning Device Type.""" +class SecondaryNetworkInterface(DeviceType, device_type=0x0019): + """Secondary Network Interface.""" clusters = { all_clusters.NetworkCommissioning, all_clusters.Descriptor, + all_clusters.EthernetNetworkDiagnostics, + all_clusters.WiFiNetworkDiagnostics, + all_clusters.ThreadNetworkDiagnostics, } @@ -845,6 +860,7 @@ class CookSurface(DeviceType, device_type=0x0077): """Cook Surface.""" clusters = { + all_clusters.OnOff, all_clusters.Descriptor, all_clusters.TemperatureControl, all_clusters.TemperatureMeasurement, @@ -861,3 +877,52 @@ class Evse(DeviceType, device_type=0x050C): all_clusters.EnergyEvseMode, all_clusters.TemperatureMeasurement, } + + +class DeviceEnergyManagement(DeviceType, device_type=0x050D): + """Device Energy Management.""" + + clusters = { + all_clusters.Descriptor, + all_clusters.DeviceEnergyManagement, + all_clusters.DeviceEnergyManagementMode, + } + + +class WaterHeater(DeviceType, device_type=0x050F): + """Water Heater.""" + + clusters = { + all_clusters.Descriptor, + all_clusters.Identify, + all_clusters.Thermostat, + all_clusters.WaterHeaterManagement, + all_clusters.WaterHeaterMode, + } + + +class HeatPump(DeviceType, device_type=0x0309): + """Heat Pump.""" + + clusters = { + all_clusters.Descriptor, + all_clusters.Identify, + } + + +class SolarPower(DeviceType, device_type=0x0017): + """Solar Power.""" + + clusters = { + all_clusters.Descriptor, + all_clusters.Identify, + } + + +class BatteryStorage(DeviceType, device_type=0x0018): + """Battery Storage.""" + + clusters = { + all_clusters.Descriptor, + all_clusters.Identify, + } diff --git a/matter_server/client/models/node.py b/matter_server/client/models/node.py index 81336e62..66b2c6ef 100644 --- a/matter_server/client/models/node.py +++ b/matter_server/client/models/node.py @@ -19,7 +19,7 @@ from .device_types import ( ALL_TYPES as DEVICE_TYPES, Aggregator, - BridgedDevice, + BridgedNode, DeviceType, RootNode, ) @@ -75,7 +75,7 @@ def __init__( @property def is_bridged_device(self) -> bool: """Return if this endpoint represents a Bridged device.""" - return BridgedDevice in self.device_types + return BridgedNode in self.device_types @property def is_composed_device(self) -> bool: diff --git a/pyproject.toml b/pyproject.toml index 2d18af0b..6b50271d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -20,7 +20,7 @@ dependencies = [ "async-timeout", "coloredlogs", "orjson", - "home-assistant-chip-clusters==2024.9.0", + "home-assistant-chip-clusters==2024.11.4", ] description = "Python Matter WebSocket Server" license = {text = "Apache-2.0"} @@ -39,7 +39,7 @@ server = [ "cryptography==44.0.0", "orjson==3.10.12", "zeroconf==0.136.2", - "home-assistant-chip-core==2024.9.0", + "home-assistant-chip-core==2024.11.4", ] test = [ "aioresponses==0.7.7", From 6c5b87eb0ec96b1f7b701919eaabd1a944123874 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20BOU=C3=89?= Date: Thu, 5 Dec 2024 22:44:16 +0100 Subject: [PATCH 077/400] Move Websocket commands doc into docs directory (#981) --- README.md | 178 ++--------------------------------- docs/websockets_api.md | 205 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 211 insertions(+), 172 deletions(-) create mode 100644 docs/websockets_api.md diff --git a/README.md b/README.md index 03ac1fb8..4e07ef73 100644 --- a/README.md +++ b/README.md @@ -132,180 +132,10 @@ docker compose logs -f NOTE: Both Matter and this implementation are in an early state and features are probably missing or could be improved. See our [development notes](#development) how you can help out, with development and/or testing. -### Websocket commands - -This list is not intended to be complete, for a complete oversight see the client implementation. - -**Set WiFi credentials** - -Inform the controller about the WiFi credentials it needs to send when commissioning a new device. - -```json -{ - "message_id": "1", - "command": "set_wifi_credentials", - "args": { - "ssid": "wifi-name-here", - "credentials": "wifi-password-here" - } -} -``` - -**Set Thread dataset** - -Inform the controller about the Thread credentials it needs to use when commissioning a new device. - -```json -{ - "message_id": "1", - "command": "set_thread_dataset", - "args": { - "dataset": "put-credentials-here" - } -} -``` - -**Commission with code** - -Commission a new device. For WiFi or Thread based devices, the credentials need to be set upfront, otherwise, commissioning will fail. Supports both QR-code syntax (MT:...) and manual pairing code as string. -The controller will use bluetooth for the commissioning of wireless devices. If the machine running the Python Matter Server controller lacks Bluetooth support, commissioning will only work for devices already connected to the network (by cable or another controller). - -Matter QR-code -```json -{ - "message_id": "2", - "command": "commission_with_code", - "args": { - "code": "MT:Y.ABCDEFG123456789" - } -} -``` - -Manual pairing code -```json -{ - "message_id": "2", - "command": "commission_with_code", - "args": { - "code": "35325335079", - "network_only": true - } -} -``` - -**Open Commissioning window** - -Open a commissioning window to commission a device present on this controller to another. -Returns code to use as discriminator. - -```json -{ - "message_id": "2", - "command": "open_commissioning_window", - "args": { - "node_id": 1 - } -} -``` - -**Get Nodes** - -Get all nodes already commissioned on the controller. - -```json -{ - "message_id": "2", - "command": "get_nodes" -} -``` - -**Get Node** - -Get info of a single Node. - -```json -{ - "message_id": "2", - "command": "get_node", - "args": { - "node_id": 1 - } -} -``` - -**Start listening** - -When the start_listening command is issued, the server will dump all existing nodes. From that moment on all events (including node attribute changes) will be forwarded. - -```json -{ - "message_id": "3", - "command": "start_listening" -} -``` - -**Send a command** - -Here is an example of turning on a switch (OnOff cluster) - -```json -{ - "message_id": "example", - "command": "device_command", - "args": { - "endpoint_id": 1, - "node_id": 1, - "payload": {}, - "cluster_id": 6, - "command_name": "On" - } -} -``` - -**Python script to send a command** - -Because we use the datamodels of the Matter SDK, this is a little bit more involved. -Here is an example of turning on a switch: - -```python -import json - -# Import the CHIP clusters -from chip.clusters import Objects as clusters - -# Import the ability to turn objects into dictionaries, and vice-versa -from matter_server.common.helpers.util import dataclass_from_dict,dataclass_to_dict - -command = clusters.OnOff.Commands.On() -payload = dataclass_to_dict(command) - - -message = { - "message_id": "example", - "command": "device_command", - "args": { - "endpoint_id": 1, - "node_id": 1, - "payload": payload, - "cluster_id": command.cluster_id, - "command_name": "On" - } -} - -print(json.dumps(message, indent=2)) -``` -You can also provide parameters for the cluster commands. Here's how to change the brightness for example: - -```python -command = clusters.LevelControl.Commands.MoveToLevelWithOnOff( - level=int(value), # provide a percentage - transitionTime=0, # in seconds -) -``` - ### Note when using Thread based Matter devices -When communicating with Thread devices through a non-local Thread border router, +> [!NOTE] +> When communicating with Thread devices through a non-local Thread border router, your host must process ICMPv6 Router Advertisements. See the [openthread.io Bidirectional IPv6 Connectivity code labs](https://openthread.io/codelabs/openthread-border-router#6) on how-to setup your host correctly. Note that NetworkManager has its own ICMPv6 @@ -342,3 +172,7 @@ There is also a Python client library hosted in this repository (used by Home As The client library has a dependency on the chip/matter clusters package which contains all (Cluster) models and this package is os/platform independent. The server library depends on the Matter Core SDK (still named CHIP) which is architecture and OS specific. We build (and publish) wheels for Linux (amd64 and aarch64) to pypi but for other platforms (like Macos) you will need to build those wheels yourself using the exact same version of the SDK as we use for the clusters package. Take a look at our build script for directions: https://github.com/home-assistant-libs/chip-wheels/blob/main/.github/workflows/build.yaml To only install the client part: `pip install python-matter-server` + +### Websocket commands + +[Websocket documentation](/docs/websockets_api.md) diff --git a/docs/websockets_api.md b/docs/websockets_api.md new file mode 100644 index 00000000..45641939 --- /dev/null +++ b/docs/websockets_api.md @@ -0,0 +1,205 @@ +## Websocket documentation + +This list is not intended to be complete, for a complete oversight see the client implementation. + +## Websocket commands + +Here are the most frequently used commands: + +**Set WiFi credentials** + +Inform the controller about the WiFi credentials it needs to send when commissioning a new device. + +```json +{ + "message_id": "1", + "command": "set_wifi_credentials", + "args": { + "ssid": "wifi-name-here", + "credentials": "wifi-password-here" + } +} +``` + +**Set Thread dataset** + +Inform the controller about the Thread credentials it needs to use when commissioning a new device. + +```json +{ + "message_id": "1", + "command": "set_thread_dataset", + "args": { + "dataset": "put-credentials-here" + } +} +``` + +**Commission with code** + +Commission a new device. For WiFi or Thread based devices, the credentials need to be set upfront, otherwise, commissioning will fail. Supports both QR-code syntax (MT:...) and manual pairing code as string. +The controller will use bluetooth for the commissioning of wireless devices. If the machine running the Python Matter Server controller lacks Bluetooth support, commissioning will only work for devices already connected to the network (by cable or another controller). + +Matter QR-code +```json +{ + "message_id": "2", + "command": "commission_with_code", + "args": { + "code": "MT:Y.ABCDEFG123456789" + } +} +``` + +Manual pairing code +```json +{ + "message_id": "2", + "command": "commission_with_code", + "args": { + "code": "35325335079", + "network_only": true + } +} +``` + +**Open Commissioning window** + +Open a commissioning window to commission a device present on this controller to another. +Returns code to use as discriminator. + +```json +{ + "message_id": "2", + "command": "open_commissioning_window", + "args": { + "node_id": 1 + } +} +``` + +**Get Nodes** + +Get all nodes already commissioned on the controller. + +```json +{ + "message_id": "2", + "command": "get_nodes" +} +``` + +**Get Node** + +Get info of a single Node. + +```json +{ + "message_id": "2", + "command": "get_node", + "args": { + "node_id": 1 + } +} +``` + +**Start listening** + +When the start_listening command is issued, the server will dump all existing nodes. From that moment on all events (including node attribute changes) will be forwarded. + +```json +{ + "message_id": "3", + "command": "start_listening" +} +``` + +**Read an attribute** + +Here is an example of reading `OnOff` attribute on a switch (OnOff cluster) + +```json +{ + "message_id": "read", + "command": "read_attribute", + "args": { + "node_id": 1, + "attribute_path":"1/6/0" + } +} +``` + +**Write an attribute** + +Here is an example of writing `OnTime` attribute on a switch (OnOff cluster) + +```json +{ + "message_id": "write", + "command":"write_attribute", + "args":{ + "node_id":1, + "attribute_path":"1/6/16385", + "value": 10 + } +} +``` + +**Send a command** + +Here is an example of turning on a switch (OnOff cluster) + +```json +{ + "message_id": "example", + "command": "device_command", + "args": { + "endpoint_id": 1, + "node_id": 1, + "payload": {}, + "cluster_id": 6, + "command_name": "On" + } +} +``` + +**Python script to send a command** + +Because we use the datamodels of the Matter SDK, this is a little bit more involved. +Here is an example of turning on a switch: + +```python +import json + +# Import the CHIP clusters +from chip.clusters import Objects as clusters + +# Import the ability to turn objects into dictionaries, and vice-versa +from matter_server.common.helpers.util import dataclass_from_dict,dataclass_to_dict + +command = clusters.OnOff.Commands.On() +payload = dataclass_to_dict(command) + + +message = { + "message_id": "example", + "command": "device_command", + "args": { + "endpoint_id": 1, + "node_id": 1, + "payload": payload, + "cluster_id": command.cluster_id, + "command_name": "On" + } +} + +print(json.dumps(message, indent=2)) +``` +You can also provide parameters for the cluster commands. Here's how to change the brightness for example: + +```python +command = clusters.LevelControl.Commands.MoveToLevelWithOnOff( + level=int(value), # provide a percentage + transitionTime=0, # in seconds +) +``` From f907f9852cc752ab626d66bd9f1ed200c532f990 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 9 Dec 2024 10:08:02 +0100 Subject: [PATCH 078/400] Bump aiohttp from 3.11.9 to 3.11.10 (#996) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 6b50271d..b9a720e6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,7 +32,7 @@ version = "0.0.0" [project.optional-dependencies] server = [ - "aiohttp==3.11.9", + "aiohttp==3.11.10", "aiorun==2024.8.1", "async-timeout==5.0.1", "coloredlogs==15.0.1", From 5078962f4379de4e0014589800ecc55e8816c7d9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 9 Dec 2024 10:11:47 +0100 Subject: [PATCH 079/400] Bump ruff from 0.8.1 to 0.8.2 (#995) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index b9a720e6..255fe383 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -53,7 +53,7 @@ test = [ "pytest-asyncio==0.24.0", "pytest-aiohttp==1.0.5", "pytest-cov==6.0.0", - "ruff==0.8.1", + "ruff==0.8.2", "tomli==2.2.1", ] From 22fe9ff6f60eda5985dfca43c15f4950bcd467bf Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 10 Dec 2024 09:19:08 +0100 Subject: [PATCH 080/400] Bump pypa/gh-action-pypi-publish from 1.12.2 to 1.12.3 (#997) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ea81ffc0..856e47c0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -64,7 +64,7 @@ jobs: run: >- python3 -m build - name: Publish release to PyPI - uses: pypa/gh-action-pypi-publish@v1.12.2 + uses: pypa/gh-action-pypi-publish@v1.12.3 with: user: __token__ password: ${{ secrets.PYPI_TOKEN }} From 5205f31f2474c266c53b5c8c4aacea531bda980c Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Tue, 10 Dec 2024 11:54:45 +0100 Subject: [PATCH 081/400] Change name in readme + pyproject to reflect the certified name (#998) --- README.md | 31 +++++++++++++++---------------- pyproject.toml | 2 +- 2 files changed, 16 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 4e07ef73..8df68204 100644 --- a/README.md +++ b/README.md @@ -1,19 +1,16 @@ -# Python Matter Server +# Open Home Foundation Matter Server + +The Open Home Foundation Matter Server is an [officially certified](https://csa-iot.org/csa_product/open-home-foundation-matter-server/) Software Component to create a Matter controller. It serves as the foundation to provide Matter support to [Home Assistant](https://home-assistant.io) but its universal approach makes it suitable to be used in other projects too. This project implements a Matter Controller Server over WebSockets using the [official Matter (formerly CHIP) SDK](https://github.com/project-chip/connectedhomeip) as a base and provides both a server and client implementation. -The goal of this project is primarily to have Matter support in Home Assistant -but its universal approach makes it suitable to be used in other projects too. - -[![Python Matter Server - A library from the Open Home Foundation](https://www.openhomefoundation.org/badges/python-matter-server.png)](https://www.openhomefoundation.org/) +The Open Home Foundation Matter Server software component is funded by [Nabu Casa](https://www.nabucasa.com/) (a member of the CSA) and donated to [The Open Home Foundation](<(https://www.openhomefoundation.org/)>). ## Support -Got questions? - -You have several options to get them answered: +For users of Home Assistant, seek support in the official Home Assistant support channels. - The Home Assistant [Community Forum](https://community.home-assistant.io/). - The Home Assistant [Discord Chat Server](https://discord.gg/c5DvZ4e). @@ -22,8 +19,9 @@ You have several options to get them answered: If you experience issues using Matter with Home Assistant, please open an issue report in the [Home Assistant Core repository](https://github.com/home-assistant/core/issues/new/choose). -You may also open issues in this repository if you are absolutely sure that your -issue is related to the Matter Server component. +Please do not create Home Assistant enduser support issues in the issue tracker of this repository. + +For developers, making use of this component, use the issue tracker within this repository and/or reach out on discord. ## Installation @@ -112,6 +110,7 @@ docker run -d \ > The container has a default command line set (see Dockerfile). If you intend to pass additional arguments, you have to pass the default command line as well. To use local commissioning with Bluetooth, make sure to pass the D-Bus socket as well: + ``` docker run -d \ --name matter-server \ @@ -136,12 +135,12 @@ NOTE: Both Matter and this implementation are in an early state and features are > [!NOTE] > When communicating with Thread devices through a non-local Thread border router, -your host must process ICMPv6 Router Advertisements. See the [openthread.io -Bidirectional IPv6 Connectivity code labs](https://openthread.io/codelabs/openthread-border-router#6) -on how-to setup your host correctly. Note that NetworkManager has its own ICMPv6 -Router Advertisement processing. A recent version of NetworkManager is -necessary, and there are still known issues (see NetworkManager issue -[#1232](https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/1232)). +> your host must process ICMPv6 Router Advertisements. See the [openthread.io +> Bidirectional IPv6 Connectivity code labs](https://openthread.io/codelabs/openthread-border-router#6) +> on how-to setup your host correctly. Note that NetworkManager has its own ICMPv6 +> Router Advertisement processing. A recent version of NetworkManager is +> necessary, and there are still known issues (see NetworkManager issue +> [#1232](https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/1232)). The Home Assistant Operating System 10 and newer correctly processes ICMPv6 Router Advertisements. diff --git a/pyproject.toml b/pyproject.toml index 255fe383..d8858bf2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -22,7 +22,7 @@ dependencies = [ "orjson", "home-assistant-chip-clusters==2024.11.4", ] -description = "Python Matter WebSocket Server" +description = "Open Home Foundation Matter Server" license = {text = "Apache-2.0"} name = "python-matter-server" readme = "README.md" From 1ccee23f45ce314b55912c737c5eb018405c412c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20BOU=C3=89?= Date: Wed, 11 Dec 2024 19:16:14 +0100 Subject: [PATCH 082/400] Explain how to start the server with debug log-level (#999) Co-authored-by: Stefan Agner --- README.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8df68204..0b65ae73 100644 --- a/README.md +++ b/README.md @@ -158,9 +158,15 @@ Development is only possible on a (recent) Linux or MacOS machine. Other operati - Download/clone the repo to your local machine. - Set-up the development environment: `scripts/setup.sh` -You can check out the example script in the scripts folder for generic directions to run the client and server. +### Start Matter server -To just run the server, you can run: `python -m matter_server.server` +You can check out the [example script](/scripts/example.py) in the scripts folder for generic directions to run the client and server. + +* To run the server in `info` log-level, you can run: `python -m matter_server.server` +* To start the server in `debug` log-level, you can run: `python -m matter_server.server --log-level debug` +* To start the server with SDK in `progress` log-level, you can run: `python -m matter_server.server --log-level-sdk progress`. This will display more information from the Matter SDK (C++) side of the Matter Server. + +Use `--help` to get a list of possible log levels and other command line arguments. The server runs a Matter Controller and includes all logic for storing node information, interviews and subscriptions. To interact with this controller we've created a small Websockets API with an RPC-like interface. The library contains a client as reference implementation which in turn is used by Home Assistant. Splitting the server from the client allows the scenario where multiple consumers can communicate to the same Matter fabric and the Matter fabric can keep running while the consumer (e.g. Home Assistant is down). From c17d9862adc53017b620410e1dc6d825e3cfb2ba Mon Sep 17 00:00:00 2001 From: Artem Sorokin Date: Wed, 11 Dec 2024 21:18:40 +0300 Subject: [PATCH 083/400] Add draft ElectricalMeasurement cluster definition (#1000) --- dashboard/src/client/models/descriptions.ts | 60 +++++ matter_server/common/custom_clusters.py | 250 ++++++++++++++++++++ 2 files changed, 310 insertions(+) diff --git a/dashboard/src/client/models/descriptions.ts b/dashboard/src/client/models/descriptions.ts index 89ef386e..debff851 100644 --- a/dashboard/src/client/models/descriptions.ts +++ b/dashboard/src/client/models/descriptions.ts @@ -12267,5 +12267,65 @@ export const clusters: Record = { "type": "uint" } } + }, + "2820": { + "id": 2820, + "label": "DraftElectricalMeasurementCluster", + "attributes": { + "1285": { + "id": 1285, + "cluster_id": 2820, + "label": "RmsVoltage", + "type": "uint" + }, + "1288": { + "id": 1288, + "cluster_id": 2820, + "label": "RmsCurrent", + "type": "uint" + }, + "1291": { + "id": 1291, + "cluster_id": 2820, + "label": "ActivePower", + "type": "uint" + }, + "1536": { + "id": 1536, + "cluster_id": 2820, + "label": "AcVoltageMultiplier", + "type": "uint" + }, + "1537": { + "id": 1537, + "cluster_id": 2820, + "label": "AcVoltageDivisor", + "type": "uint" + }, + "1538": { + "id": 1538, + "cluster_id": 2820, + "label": "AcCurrentMultiplier", + "type": "uint" + }, + "1539": { + "id": 1539, + "cluster_id": 2820, + "label": "AcCurrentDivisor", + "type": "uint" + }, + "1540": { + "id": 1540, + "cluster_id": 2820, + "label": "AcPowerMultiplier", + "type": "uint" + }, + "1541": { + "id": 1541, + "cluster_id": 2820, + "label": "AcPowerDivisor", + "type": "uint" + } + } } } diff --git a/matter_server/common/custom_clusters.py b/matter_server/common/custom_clusters.py index a49c51eb..aa6f7e9c 100644 --- a/matter_server/common/custom_clusters.py +++ b/matter_server/common/custom_clusters.py @@ -575,6 +575,256 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: uint = 0 +@dataclass +class DraftElectricalMeasurementCluster(Cluster, CustomClusterMixin): + """Custom ElectricalMetering cluster from Matter 1.0 draft specification.""" + + id: ClassVar[int] = 0x00000B04 + + @ChipUtility.classproperty + def descriptor(cls) -> ClusterObjectDescriptor: + """Return descriptor for this cluster.""" + return ClusterObjectDescriptor( + Fields=[ + ClusterObjectFieldDescriptor( + Label="rmsVoltage", Tag=0x00000505, Type=uint + ), + ClusterObjectFieldDescriptor( + Label="rmsCurrent", Tag=0x00000508, Type=uint + ), + ClusterObjectFieldDescriptor( + Label="activePower", Tag=0x0000050B, Type=uint + ), + ClusterObjectFieldDescriptor( + Label="acVoltageMultiplier", Tag=0x00000600, Type=uint + ), + ClusterObjectFieldDescriptor( + Label="acVoltageDivisor", Tag=0x00000601, Type=uint + ), + ClusterObjectFieldDescriptor( + Label="acCurrentMultiplier", Tag=0x00000602, Type=uint + ), + ClusterObjectFieldDescriptor( + Label="acCurrentDivisor", Tag=0x00000603, Type=uint + ), + ClusterObjectFieldDescriptor( + Label="acPowerMultiplier", Tag=0x00000604, Type=uint + ), + ClusterObjectFieldDescriptor( + Label="acPowerDivisor", Tag=0x00000605, Type=uint + ), + ] + ) + + rmsVoltage: uint | None = None + rmsCurrent: uint | None = None + activePower: uint | None = None + acVoltageMultiplier: uint | None = None + acVoltageDivisor: uint | None = None + acCurrentMultiplier: uint | None = None + acCurrentDivisor: uint | None = None + acPowerMultiplier: uint | None = None + acPowerDivisor: uint | None = None + + class Attributes: + """Attributes for the custom Cluster.""" + + @dataclass + class RmsVoltage(ClusterAttributeDescriptor, CustomClusterAttributeMixin): + """RmsVoltage Attribute within the DraftElectricalMeasurement Cluster.""" + + @ChipUtility.classproperty + def cluster_id(cls) -> int: + """Return cluster id.""" + return 0x00000B04 + + @ChipUtility.classproperty + def attribute_id(cls) -> int: + """Return attribute id.""" + return 0x00000505 + + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + """Return attribute type.""" + return ClusterObjectFieldDescriptor(Type=uint) + + value: uint = 0 + + @dataclass + class RmsCurrent(ClusterAttributeDescriptor, CustomClusterAttributeMixin): + """RmsCurrent Attribute within the DraftElectricalMeasurement Cluster.""" + + @ChipUtility.classproperty + def cluster_id(cls) -> int: + """Return cluster id.""" + return 0x00000B04 + + @ChipUtility.classproperty + def attribute_id(cls) -> int: + """Return attribute id.""" + return 0x00000508 + + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + """Return attribute type.""" + return ClusterObjectFieldDescriptor(Type=uint) + + value: uint = 0 + + @dataclass + class ActivePower(ClusterAttributeDescriptor, CustomClusterAttributeMixin): + """ActivePower Attribute within the DraftElectricalMeasurement Cluster.""" + + @ChipUtility.classproperty + def cluster_id(cls) -> int: + """Return cluster id.""" + return 0x00000B04 + + @ChipUtility.classproperty + def attribute_id(cls) -> int: + """Return attribute id.""" + return 0x0000050B + + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + """Return attribute type.""" + return ClusterObjectFieldDescriptor(Type=uint) + + value: uint = 0 + + @dataclass + class AcVoltageMultiplier( + ClusterAttributeDescriptor, CustomClusterAttributeMixin + ): + """AcVoltageMultiplier Attribute within the DraftElectricalMeasurement Cluster.""" + + @ChipUtility.classproperty + def cluster_id(cls) -> int: + """Return cluster id.""" + return 0x00000B04 + + @ChipUtility.classproperty + def attribute_id(cls) -> int: + """Return attribute id.""" + return 0x00000600 + + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + """Return attribute type.""" + return ClusterObjectFieldDescriptor(Type=uint) + + value: uint = 0 + + @dataclass + class AcVoltageDivisor(ClusterAttributeDescriptor, CustomClusterAttributeMixin): + """AcVoltageDivisor Attribute within the DraftElectricalMeasurement Cluster.""" + + @ChipUtility.classproperty + def cluster_id(cls) -> int: + """Return cluster id.""" + return 0x00000B04 + + @ChipUtility.classproperty + def attribute_id(cls) -> int: + """Return attribute id.""" + return 0x00000601 + + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + """Return attribute type.""" + return ClusterObjectFieldDescriptor(Type=uint) + + value: uint = 0 + + @dataclass + class AcCurrentMultiplier( + ClusterAttributeDescriptor, CustomClusterAttributeMixin + ): + """AcCurrentMultiplier Attribute within the DraftElectricalMeasurement Cluster.""" + + @ChipUtility.classproperty + def cluster_id(cls) -> int: + """Return cluster id.""" + return 0x00000B04 + + @ChipUtility.classproperty + def attribute_id(cls) -> int: + """Return attribute id.""" + return 0x00000602 + + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + """Return attribute type.""" + return ClusterObjectFieldDescriptor(Type=uint) + + value: uint = 0 + + @dataclass + class AcCurrentDivisor(ClusterAttributeDescriptor, CustomClusterAttributeMixin): + """AcCurrentDivisor Attribute within the DraftElectricalMeasurement Cluster.""" + + @ChipUtility.classproperty + def cluster_id(cls) -> int: + """Return cluster id.""" + return 0x00000B04 + + @ChipUtility.classproperty + def attribute_id(cls) -> int: + """Return attribute id.""" + return 0x00000603 + + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + """Return attribute type.""" + return ClusterObjectFieldDescriptor(Type=uint) + + value: uint = 0 + + @dataclass + class AcPowerMultiplier( + ClusterAttributeDescriptor, CustomClusterAttributeMixin + ): + """AcPowerMultiplier Attribute within the DraftElectricalMeasurement Cluster.""" + + @ChipUtility.classproperty + def cluster_id(cls) -> int: + """Return cluster id.""" + return 0x00000B04 + + @ChipUtility.classproperty + def attribute_id(cls) -> int: + """Return attribute id.""" + return 0x00000604 + + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + """Return attribute type.""" + return ClusterObjectFieldDescriptor(Type=uint) + + value: uint = 0 + + @dataclass + class AcPowerDivisor(ClusterAttributeDescriptor, CustomClusterAttributeMixin): + """AcPowerDivisor Attribute within the DraftElectricalMeasurement Cluster.""" + + @ChipUtility.classproperty + def cluster_id(cls) -> int: + """Return cluster id.""" + return 0x00000B04 + + @ChipUtility.classproperty + def attribute_id(cls) -> int: + """Return attribute id.""" + return 0x00000605 + + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + """Return attribute type.""" + return ClusterObjectFieldDescriptor(Type=uint) + + value: uint = 0 + + def check_polled_attributes(node_data: MatterNodeData) -> set[str]: """Check if custom attributes are present in the node data that need to be polled.""" attributes_to_poll: set[str] = set() From 9f9ae88589b3bf7607276bb8eaa0399ac598750c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 16 Dec 2024 10:17:54 +0100 Subject: [PATCH 084/400] Bump ruff from 0.8.2 to 0.8.3 (#1004) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index d8858bf2..cde0d101 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -53,7 +53,7 @@ test = [ "pytest-asyncio==0.24.0", "pytest-aiohttp==1.0.5", "pytest-cov==6.0.0", - "ruff==0.8.2", + "ruff==0.8.3", "tomli==2.2.1", ] From 0a729b59466d8d7a7e981a28d271441909bc623e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 16 Dec 2024 10:18:13 +0100 Subject: [PATCH 085/400] Bump pytest-asyncio from 0.24.0 to 0.25.0 (#1005) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index cde0d101..c5786a04 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -50,7 +50,7 @@ test = [ "pre-commit-hooks==5.0.0", "pylint==3.3.2", "pytest==8.3.4", - "pytest-asyncio==0.24.0", + "pytest-asyncio==0.25.0", "pytest-aiohttp==1.0.5", "pytest-cov==6.0.0", "ruff==0.8.3", From 8284a6b2f6e210d4d97b3ded4a6dddc18b89729f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 17 Dec 2024 10:22:43 +0100 Subject: [PATCH 086/400] Bump docker/setup-buildx-action from 3.7.1 to 3.8.0 (#1006) --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 856e47c0..a6fbdc0a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -85,7 +85,7 @@ jobs: username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3.7.1 + uses: docker/setup-buildx-action@v3.8.0 - name: Version number for tags id: tags shell: bash From 91d9bdecf32d2e0c17e52c497242c4c247310eea Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Fri, 20 Dec 2024 17:13:54 +0100 Subject: [PATCH 087/400] Set fabric label on interview (#1007) --- matter_server/server/device_controller.py | 48 ++++++++++++++++++----- 1 file changed, 39 insertions(+), 9 deletions(-) diff --git a/matter_server/server/device_controller.py b/matter_server/server/device_controller.py index fbe540d3..c9bf97ce 100644 --- a/matter_server/server/device_controller.py +++ b/matter_server/server/device_controller.py @@ -321,15 +321,6 @@ async def commission_with_code( LOGGER.info("Commissioned Node ID: %s vs %s", commissioned_node_id, node_id) if commissioned_node_id != node_id: raise RuntimeError("Returned Node ID must match requested Node ID") - - if self._default_fabric_label: - await self._chip_device_controller.send_command( - node_id, - 0, - Clusters.OperationalCredentials.Commands.UpdateFabricLabel( - self._default_fabric_label - ), - ) except ChipStackError as err: raise NodeCommissionFailed( f"Commission with code failed for node {node_id}." @@ -348,6 +339,12 @@ async def commission_with_code( await self._interview_node(node_id) except (NodeNotResolving, NodeInterviewFailed) as err: if retries <= 0: + try: + await self._chip_device_controller.unpair_device(node_id) + except ChipStackError as err_unpair: + LOGGER.warning( + "Removing current fabric from device failed: %s", err_unpair + ) raise err retries -= 1 LOGGER.warning("Unable to interview Node %s: %s", node_id, err) @@ -580,6 +577,39 @@ async def _interview_node(self, node_id: int) -> None: except ChipStackError as err: raise NodeInterviewFailed(f"Failed to interview node {node_id}") from err + # Set label if specified and needed + if self._default_fabric_label: + cluster = read_response.attributes[0][Clusters.OperationalCredentials] + fabrics: list[ + Clusters.OperationalCredentials.Structs.FabricDescriptorStruct + ] = cluster[Clusters.OperationalCredentials.Attributes.Fabrics] + fabric_index = cluster[ + Clusters.OperationalCredentials.Attributes.CurrentFabricIndex + ] + + local_fabric = next( + (fabric for fabric in fabrics if fabric.fabricIndex == fabric_index), + None, + ) + if local_fabric and local_fabric.label != self._default_fabric_label: + try: + LOGGER.debug( + "Setting fabric label for node %s to '%s'", + node_id, + self._default_fabric_label, + ) + await self._chip_device_controller.send_command( + node_id, + 0, + Clusters.OperationalCredentials.Commands.UpdateFabricLabel( + self._default_fabric_label + ), + ) + except ChipStackError as err: + LOGGER.warning( + "Failed to set fabric label for node %s: %s", node_id, err + ) + is_new_node = node_id not in self._nodes existing_info = self._nodes.get(node_id) node = MatterNodeData( From 619d5e83fcebc32611dc6fae0d2bb86fcd52843f Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Fri, 20 Dec 2024 18:27:24 +0100 Subject: [PATCH 088/400] Restructure the documentation in more smaller parts (#1008) --- DEVELOPMENT.md | 32 ++++++++ README.md | 170 ++++------------------------------------ compose.yml | 18 ----- docs/docker.md | 76 ++++++++++++++++++ docs/matter_logo.svg | 11 +++ docs/os_requirements.md | 75 ++++++++++++++++++ docs/websockets_api.md | 23 +++--- 7 files changed, 222 insertions(+), 183 deletions(-) create mode 100644 DEVELOPMENT.md delete mode 100644 compose.yml create mode 100644 docs/docker.md create mode 100644 docs/matter_logo.svg create mode 100644 docs/os_requirements.md diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md new file mode 100644 index 00000000..158261ea --- /dev/null +++ b/DEVELOPMENT.md @@ -0,0 +1,32 @@ +# Setting up your development environment + +**For enabling Matter support within Home Assistant, please refer to the Home Assistant documentation. These instructions are for development only!** + +Development is only possible on a (recent) Linux or MacOS machine. Other operating systems are **not supported**. See [here](docs/os_requirements.md) for a full list of requirements to the OS and network, especially if you plan on communicating with Thread based devices. + +- Download/clone the repo to your local machine. +- Set-up the development environment: `scripts/setup.sh` + +## Start Matter server + +You can check out the [example script](/scripts/example.py) in the scripts folder for generic directions to run the client and server. + +- To run the server in `info` log-level, you can run: `python -m matter_server.server` +- To start the server in `debug` log-level, you can run: `python -m matter_server.server --log-level debug` +- To start the server with SDK in `progress` log-level, you can run: `python -m matter_server.server --log-level-sdk progress`. This will display more information from the Matter SDK (C++) side of the Matter Server. + +Use `--help` to get a list of possible log levels and other command line arguments. + +The server runs a Matter Controller and includes all logic for storing node information, interviews and subscriptions. To interact with this controller we've created a small Websockets API with an RPC-like interface. The library contains a client as reference implementation which in turn is used by Home Assistant. Splitting the server from the client allows the scenario where multiple consumers can communicate to the same Matter fabric and the Matter fabric can keep running while the consumer (e.g. Home Assistant is down). + +## Python client library only + +There is also a Python client library hosted in this repository (used by Home Assistant), which consumes the Websockets API published from the server. + +The client library has a dependency on the chip/matter clusters package which contains all (Cluster) models and this package is os/platform independent. The server library depends on the Matter Core SDK (still named CHIP) which is architecture and OS specific. We build (and publish) wheels for Linux (amd64 and aarch64) to pypi but for other platforms (like Macos) you will need to build those wheels yourself using the exact same version of the SDK as we use for the clusters package. Take a look at our build script for directions: https://github.com/home-assistant-libs/chip-wheels/blob/main/.github/workflows/build.yaml + +To only install the client part: `pip install python-matter-server` + +## Websocket commands + +[Websocket documentation](/docs/websockets_api.md) diff --git a/README.md b/README.md index 0b65ae73..52602f4f 100644 --- a/README.md +++ b/README.md @@ -1,183 +1,43 @@ # Open Home Foundation Matter Server +![Matter Logo](docs/matter_logo.svg) + The Open Home Foundation Matter Server is an [officially certified](https://csa-iot.org/csa_product/open-home-foundation-matter-server/) Software Component to create a Matter controller. It serves as the foundation to provide Matter support to [Home Assistant](https://home-assistant.io) but its universal approach makes it suitable to be used in other projects too. This project implements a Matter Controller Server over WebSockets using the [official Matter (formerly CHIP) SDK](https://github.com/project-chip/connectedhomeip) as a base and provides both a server and client implementation. -The Open Home Foundation Matter Server software component is funded by [Nabu Casa](https://www.nabucasa.com/) (a member of the CSA) and donated to [The Open Home Foundation](<(https://www.openhomefoundation.org/)>). +The Open Home Foundation Matter Server software component is funded by [Nabu Casa](https://www.nabucasa.com/) (a member of the CSA) and donated to [The Open Home Foundation](https://www.openhomefoundation.org/). ## Support +For developers, making use of this component or contributing to it, use the issue tracker within this repository and/or reach out on discord. + For users of Home Assistant, seek support in the official Home Assistant support channels. - The Home Assistant [Community Forum](https://community.home-assistant.io/). - The Home Assistant [Discord Chat Server](https://discord.gg/c5DvZ4e). - Join [the Reddit subreddit in /r/homeassistant](https://reddit.com/r/homeassistant). -If you experience issues using Matter with Home Assistant, please open an issue -report in the [Home Assistant Core repository](https://github.com/home-assistant/core/issues/new/choose). +- If you experience issues using Matter with Home Assistant, please open an issue + report in the [Home Assistant Core repository](https://github.com/home-assistant/core/issues/new/choose). Please do not create Home Assistant enduser support issues in the issue tracker of this repository. -For developers, making use of this component, use the issue tracker within this repository and/or reach out on discord. - -## Installation - -We strongly recommend using Home Assistant OS along with the official Matter -Server add-on to use Matter with Home Assistant. The Matter integration -automatically installs the Python Matter Server add-on. Please refer to the -[Home Assistant documentation](https://www.home-assistant.io/integrations/matter/). -Home Assistant OS has been tested and tuned to be used with Matter and Thread, -which makes this combination the best tested and largely worry free -environment. - -If you still prefer a self-managed container installation, we do offer an -official container image. Please keep in mind that you might experience -communication issues with Matter devices, especially Thread based devices. -This is mostly because the container installation uses host networking, and -relies on the networking managed by your operating system. - -### Requirements to communicate with Wi-Fi/Ethernet based Matter devices - -Make sure you run the container on the host network. The host network -interface needs to be in the same network as the Android/iPhone device -you are using for commissioning. Matter uses link-local multicast protocols -which do not work across different LANs or VLANs. - -The host network interface needs IPv6 support enabled. - -### Requirements to communicate with Thread devices through Thread border routers - -For communication through Thread border routers which are not running on the same -host as the Matter Controller server to work, IPv6 routing needs to be properly -working. IPv6 routing is largely setup automatically through the IPv6 Neighbor -Discovery Protocol, specifically the Route Information Options (RIO). However, -if IPv6 Neighbor Discovery RIO's are processed, and processed correctly depends on the network -management software your system is using. There may be bugs and caveats in -processing this Route Information Options. - -In general, make sure the kernel option `CONFIG_IPV6_ROUTER_PREF` is enabled and -that IPv6 forwarding is disabled (sysctl variable `net.ipv6.conf.all.forwarding`). -If IPv6 forwarding is enabled, the Linux kernel doesn't employ reachability -probing (RFC 4191), which can lead to longer outages (up to 30min) until -network changes are detected. - -If you are using NetworkManager, make sure to use at least NetworkManager 1.42. -Previous versions lose track of routes and stale routes can lead to unreachable -Thread devices. All current released NetworkManager versions can't handle -multiple routes to the same network properly. This means if you have multiple -Thread border routers, the fallback won't work immediately (see [NetworkManager -issue #1232](https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/1232)). - -We currently don't have experience with systemd-networkd. It seems to have its -own IPv6 Neighbor Discovery Protocol handling. - -If you don't use NetworkManager or systemd-networkd, you can use the kernel's -IPv6 Neighbor Discovery Protocol handling. - -Make sure the kernel options `CONFIG_IPV6_ROUTE_INFO` is enabled and the -following sysctl variables are set: - -``` -sysctl -w net.ipv6.conf.wlan0.accept_ra=1 -sysctl -w net.ipv6.conf.wlan0.accept_ra_rt_info_max_plen=64 -``` - -If your system has IPv6 forwarding enabled (not recommended, see above), you'll -have to use `2` for the accept_ra variable. See also the [Thread Border Router - Bidirectional IPv6 Connectivity and DNS-Based Service Discovery codelab](https://openthread.io/codelabs/openthread-border-router#6). - -### Running the Matter Server using container image - -With the following command you can run the Matter Server in a container using -Docker. The Matter network data (fabric information) are stored in a newly -created directory `data` in the current directory. Adjust the command to -choose another location instead. - -``` -mkdir data -docker run -d \ - --name matter-server \ - --restart=unless-stopped \ - --security-opt apparmor=unconfined \ - -v $(pwd)/data:/data \ - --network=host \ - ghcr.io/home-assistant-libs/python-matter-server:stable -``` - -> [!NOTE] -> The container has a default command line set (see Dockerfile). If you intend to pass additional arguments, you have to pass the default command line as well. - -To use local commissioning with Bluetooth, make sure to pass the D-Bus socket as well: - -``` -docker run -d \ - --name matter-server \ - --restart=unless-stopped \ - --security-opt apparmor=unconfined \ - -v $(pwd)/data:/data \ - -v /run/dbus:/run/dbus:ro \ - --network=host \ - ghcr.io/home-assistant-libs/python-matter-server:stable --storage-path /data --paa-root-cert-dir /data/credentials --bluetooth-adapter 0 -``` - -### Running using Docker compose - -```sh -docker compose up -d -docker compose logs -f -``` - -NOTE: Both Matter and this implementation are in an early state and features are probably missing or could be improved. See our [development notes](#development) how you can help out, with development and/or testing. - -### Note when using Thread based Matter devices - -> [!NOTE] -> When communicating with Thread devices through a non-local Thread border router, -> your host must process ICMPv6 Router Advertisements. See the [openthread.io -> Bidirectional IPv6 Connectivity code labs](https://openthread.io/codelabs/openthread-border-router#6) -> on how-to setup your host correctly. Note that NetworkManager has its own ICMPv6 -> Router Advertisement processing. A recent version of NetworkManager is -> necessary, and there are still known issues (see NetworkManager issue -> [#1232](https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/1232)). - -The Home Assistant Operating System 10 and newer correctly processes ICMPv6 -Router Advertisements. - ## Development -Want to help out with development, testing, and/or documentation? Great! As both this project and Matter keeps evolving and more and more devices are available with actual Matter support, there will be a lot to improve. Reach out to us on discord if you want to help out. - -### Setting up your development environment - -**For enabling Matter support within Home Assistant, please refer to the Home Assistant documentation. These instructions are for development only!** - -Development is only possible on a (recent) Linux or MacOS machine. Other operating systems are not supported. - -- Download/clone the repo to your local machine. -- Set-up the development environment: `scripts/setup.sh` +Want to help out with development, testing, and/or documentation? Great! As both this project and Matter keeps evolving there will be a lot to improve. Reach out to us on discord if you want to help out. -### Start Matter server +[Development documentation](DEVELOPMENT.md) -You can check out the [example script](/scripts/example.py) in the scripts folder for generic directions to run the client and server. +## Installation / Running the Matter Server -* To run the server in `info` log-level, you can run: `python -m matter_server.server` -* To start the server in `debug` log-level, you can run: `python -m matter_server.server --log-level debug` -* To start the server with SDK in `progress` log-level, you can run: `python -m matter_server.server --log-level-sdk progress`. This will display more information from the Matter SDK (C++) side of the Matter Server. +- Endusers of Home Assistant, refer to the [Home Assistant documentation](https://www.home-assistant.io/integrations/matter/) how to run Matter in Home Assistant using the official Matter Server add-on, which is based on this project. -Use `--help` to get a list of possible log levels and other command line arguments. +- For running the server and/or client in your development environment, see the [Development documentation](DEVELOPMENT.md). -The server runs a Matter Controller and includes all logic for storing node information, interviews and subscriptions. To interact with this controller we've created a small Websockets API with an RPC-like interface. The library contains a client as reference implementation which in turn is used by Home Assistant. Splitting the server from the client allows the scenario where multiple consumers can communicate to the same Matter fabric and the Matter fabric can keep running while the consumer (e.g. Home Assistant is down). +- For running the Matter Server as a standalone docker container, see our instructions [here](docs/docker.md). -### Python client library only - -There is also a Python client library hosted in this repository (used by Home Assistant), which consumes the Websockets API published from the server. - -The client library has a dependency on the chip/matter clusters package which contains all (Cluster) models and this package is os/platform independent. The server library depends on the Matter Core SDK (still named CHIP) which is architecture and OS specific. We build (and publish) wheels for Linux (amd64 and aarch64) to pypi but for other platforms (like Macos) you will need to build those wheels yourself using the exact same version of the SDK as we use for the clusters package. Take a look at our build script for directions: https://github.com/home-assistant-libs/chip-wheels/blob/main/.github/workflows/build.yaml - -To only install the client part: `pip install python-matter-server` - -### Websocket commands - -[Websocket documentation](/docs/websockets_api.md) +> [!NOTE] +> Both Matter and this implementation are in an early state and features are probably missing or could be improved. See our [development notes](#development) how you can help out, with development and/or testing. diff --git a/compose.yml b/compose.yml deleted file mode 100644 index 2696c453..00000000 --- a/compose.yml +++ /dev/null @@ -1,18 +0,0 @@ -services: - # python-matter-server - matter-server: - image: ghcr.io/home-assistant-libs/python-matter-server:stable - container_name: matter-server - restart: unless-stopped - # Required for mDNS to work correctly - network_mode: host - security_opt: - # Needed for Bluetooth via dbus - - apparmor:unconfined - volumes: - # Create an .env file that sets the USERDIR environment variable. - - ${USERDIR:-$HOME}/docker/matter-server/data:/data/ - # Required for Bluetooth via D-Bus - #- /run/dbus:/run/dbus:ro - # If you adjust command line, make sure to pass the default CMD arguments too: - #command: --storage-path /data --paa-root-cert-dir /data/credentials --bluetooth-adapter 0 diff --git a/docs/docker.md b/docs/docker.md new file mode 100644 index 00000000..73bc51f9 --- /dev/null +++ b/docs/docker.md @@ -0,0 +1,76 @@ +# Running Matter Server in Docker + +For testing/evaluation purposes or as a guideline towards other application developers that want to run the Matter Server, we do provide an [official Docker container image](https://github.com/home-assistant-libs/python-matter-server/pkgs/container/python-matter-server). Just make sure that the underlying operating system on which you intend to run the docker container matches the [requirements needed for Matter and Thread](os_requirements.md) so better not attempt to run it on a specific purpose operating system such as a NAS. + +> [!NOTE] **Attention Home Assistant users:** The docker image is provided as-is and without official support (due to all the complex requirements to the underlying host/OS). Use it at your own risk if you know what you're doing. + +We strongly recommend using Home Assistant OS along with the official Matter +Server add-on to use Matter with Home Assistant. The Matter integration +automatically installs the Matter Server as an add-on. Please refer to the +[Home Assistant documentation](https://www.home-assistant.io/integrations/matter/). + +Home Assistant OS has been tested and tuned to be used with Matter and Thread, +which makes this combination the best tested and largely worry free +environment. + +If you still prefer a self-managed container installation, you might experience +communication issues with Matter devices, especially Thread based devices. +This is mostly because the container installation uses host networking, and +relies on the networking managed by your operating system. + +## Running the Matter Server using container image + +With the following command you can run the Matter Server in a container using +Docker. The Matter network data (fabric information) are stored in a newly +created directory `data` in the current directory. Adjust the command to +choose another location instead. + +``` +mkdir data +docker run -d \ + --name matter-server \ + --restart=unless-stopped \ + --security-opt apparmor=unconfined \ + -v $(pwd)/data:/data \ + --network=host \ + ghcr.io/home-assistant-libs/python-matter-server:stable +``` + +> [!NOTE] +> The container has a default command line set (see Dockerfile). If you intend to pass additional arguments, you have to pass the default command line as well. + +To use local commissioning with Bluetooth, make sure to pass the D-Bus socket as well: + +```sh +docker run -d \ + --name matter-server \ + --restart=unless-stopped \ + --security-opt apparmor=unconfined \ + -v $(pwd)/data:/data \ + -v /run/dbus:/run/dbus:ro \ + --network=host \ + ghcr.io/home-assistant-libs/python-matter-server:stable --storage-path /data --paa-root-cert-dir /data/credentials --bluetooth-adapter 0 +``` + +## Running using Docker compose + +```yaml +services: + # python-matter-server + matter-server: + image: ghcr.io/home-assistant-libs/python-matter-server:stable + container_name: matter-server + restart: unless-stopped + # Required for mDNS to work correctly + network_mode: host + security_opt: + # Needed for Bluetooth via dbus + - apparmor:unconfined + volumes: + # Create an .env file that sets the USERDIR environment variable. + - ${USERDIR:-$HOME}/docker/matter-server/data:/data/ + # Required for Bluetooth via D-Bus + - /run/dbus:/run/dbus:ro + # If you adjust command line, make sure to pass the default CMD arguments too: + #command: --storage-path /data --paa-root-cert-dir /data/credentials --bluetooth-adapter 0 +``` diff --git a/docs/matter_logo.svg b/docs/matter_logo.svg new file mode 100644 index 00000000..0843a0f9 --- /dev/null +++ b/docs/matter_logo.svg @@ -0,0 +1,11 @@ + + + Bitmap + + + + + + + + diff --git a/docs/os_requirements.md b/docs/os_requirements.md new file mode 100644 index 00000000..842afb2a --- /dev/null +++ b/docs/os_requirements.md @@ -0,0 +1,75 @@ +# OS Requirements + +Matter is based on IPv6 link-local multicast protocols and thus running the Matter Server (or developing it) is not as straightforward as any other application, mostly due to the bad shape of IPv6 support in various Linux distributions, let alone the IPv6 Neighbor +Discovery Protocol, which is required for Thread. + +## Networking + +Matter uses link-local multicast protocols which do not work across different LANs or VLANs so best to use either a complete flat network or ensure that the machine running Matter Server is on the same (v)LAN as the devices, any border routers and the phone/device used for commissioning. + +The host network interface needs IPv6 support enabled. + +Be aware of any (semi) professional networking gear such as Unifi or Omada which has options to filter multicast traffic, often called something like "Multicast optimizations" or something along those lines. Disable such features, they are helpful in a high density enterprise network, but they're killing domestic protocols that rely on multicast like Matter, Airplay etc. + +Also do not enable any mdns forwarders on the network (the option is called mDNS on Unifi for example) as they tend to corrupt or severely hinder the Matter packets on the network. + +In some cases it is known that IGMP/MLD snopping implementations on network gear may help or hinder Matter traffic. Play with these options if you have network equipment that offer it. + +As a general rule of thumb, if you use standard, home user oriented network equipment, you have the highest rate of success with Matter. + +## Operating system + +The only supported operating systems for developing or running the Matter Server are (recent) versions of (64 bits) MacOS and a very recent distribution (including kernel) of Linux. Running it on non 64 bits architecture or another operating system (even WSL) is not supported. + +For a MacOS (development) environment, things will work fine out of the box from MacOS 14 or higher (arm-based CPU). In combination with a python venv, it makes up for the recommended development environment for working on the Matter codebase. + +For a Linux operating system, keep the following recomemndations in mind: + +> your host must process ICMPv6 Router Advertisements. See the [openthread.io +> Bidirectional IPv6 Connectivity code labs](https://openthread.io/codelabs/openthread-border-router#6) +> on how-to setup your host correctly. Note that NetworkManager has its own ICMPv6 +> Router Advertisement processing. A recent version of NetworkManager is +> necessary, and there are still known issues (see NetworkManager issue +> [#1232](https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/1232)). + +The Home Assistant Operating System 10 and newer correctly processes ICMPv6 Router Advertisements. The Matter Server is provided as an add-on to that operating system, thus including all the required fixes. + +### Requirements to communicate with Thread devices through Thread border routers + +For communication through Thread border routers which are not running on the same +host as the Matter Controller server to work, IPv6 routing needs to be properly +working. IPv6 routing is largely setup automatically through the IPv6 Neighbor +Discovery Protocol, specifically the Route Information Options (RIO). However, +if IPv6 Neighbor Discovery RIO's are processed, and processed correctly depends on the network +management software your system is using. There may be bugs and caveats in +processing this Route Information Options. + +In general, make sure the kernel option `CONFIG_IPV6_ROUTER_PREF` is enabled and +that IPv6 forwarding is disabled (sysctl variable `net.ipv6.conf.all.forwarding`). +If IPv6 forwarding is enabled, the Linux kernel doesn't employ reachability +probing (RFC 4191), which can lead to longer outages (up to 30min) until +network changes are detected. + +If you are using NetworkManager, make sure to use at least NetworkManager 1.42. +Previous versions lose track of routes and stale routes can lead to unreachable +Thread devices. All current released NetworkManager versions can't handle +multiple routes to the same network properly. This means if you have multiple +Thread border routers, the fallback won't work immediately (see [NetworkManager +issue #1232](https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/1232)). + +We currently don't have experience with systemd-networkd. It seems to have its +own IPv6 Neighbor Discovery Protocol handling. + +If you don't use NetworkManager or systemd-networkd, you can use the kernel's +IPv6 Neighbor Discovery Protocol handling. + +Make sure the kernel options `CONFIG_IPV6_ROUTE_INFO` is enabled and the +following sysctl variables are set: + +```sh +sysctl -w net.ipv6.conf.wlan0.accept_ra=1 +sysctl -w net.ipv6.conf.wlan0.accept_ra_rt_info_max_plen=64 +``` + +If your system has IPv6 forwarding enabled (not recommended, see above), you'll +have to use `2` for the accept_ra variable. See also the [Thread Border Router - Bidirectional IPv6 Connectivity and DNS-Based Service Discovery codelab](https://openthread.io/codelabs/openthread-border-router#6). diff --git a/docs/websockets_api.md b/docs/websockets_api.md index 45641939..a6b1cbb8 100644 --- a/docs/websockets_api.md +++ b/docs/websockets_api.md @@ -1,4 +1,4 @@ -## Websocket documentation +# Websocket documentation This list is not intended to be complete, for a complete oversight see the client implementation. @@ -41,6 +41,7 @@ Commission a new device. For WiFi or Thread based devices, the credentials need The controller will use bluetooth for the commissioning of wireless devices. If the machine running the Python Matter Server controller lacks Bluetooth support, commissioning will only work for devices already connected to the network (by cable or another controller). Matter QR-code + ```json { "message_id": "2", @@ -52,6 +53,7 @@ Matter QR-code ``` Manual pairing code + ```json { "message_id": "2", @@ -124,8 +126,8 @@ Here is an example of reading `OnOff` attribute on a switch (OnOff cluster) "command": "read_attribute", "args": { "node_id": 1, - "attribute_path":"1/6/0" - } + "attribute_path": "1/6/0" + } } ``` @@ -135,13 +137,13 @@ Here is an example of writing `OnTime` attribute on a switch (OnOff cluster) ```json { - "message_id": "write", - "command":"write_attribute", - "args":{ - "node_id":1, - "attribute_path":"1/6/16385", - "value": 10 - } + "message_id": "write", + "command": "write_attribute", + "args": { + "node_id": 1, + "attribute_path": "1/6/16385", + "value": 10 + } } ``` @@ -195,6 +197,7 @@ message = { print(json.dumps(message, indent=2)) ``` + You can also provide parameters for the cluster commands. Here's how to change the brightness for example: ```python From 20ed7c9c090a282a45a5cdd67ad0947d5a30317c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 23 Dec 2024 10:00:49 +0100 Subject: [PATCH 089/400] Bump ruff from 0.8.3 to 0.8.4 (#1013) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index c5786a04..3938c613 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -53,7 +53,7 @@ test = [ "pytest-asyncio==0.25.0", "pytest-aiohttp==1.0.5", "pytest-cov==6.0.0", - "ruff==0.8.3", + "ruff==0.8.4", "tomli==2.2.1", ] From 485c1d563799791c8805b72aa89e1b3ff25c2a3d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 23 Dec 2024 10:01:21 +0100 Subject: [PATCH 090/400] Bump mypy from 1.13.0 to 1.14.0 (#1012) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 3938c613..db553844 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -45,7 +45,7 @@ test = [ "aioresponses==0.7.7", "codespell==2.3.0", "isort==5.13.2", - "mypy==1.13.0", + "mypy==1.14.0", "pre-commit==4.0.1", "pre-commit-hooks==5.0.0", "pylint==3.3.2", From 380cfef7bb2b954d9fcf252ec50b673cc641d6c2 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 23 Dec 2024 10:07:43 +0100 Subject: [PATCH 091/400] Bump aiohttp from 3.11.10 to 3.11.11 (#1011) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index db553844..04f45fb0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,7 +32,7 @@ version = "0.0.0" [project.optional-dependencies] server = [ - "aiohttp==3.11.10", + "aiohttp==3.11.11", "aiorun==2024.8.1", "async-timeout==5.0.1", "coloredlogs==15.0.1", From 8cdce6298060aa25ddd99da10a58826f2c894afe Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Mon, 23 Dec 2024 17:52:01 +0100 Subject: [PATCH 092/400] Use atomic writes for the storage file (#1014) Co-authored-by: Stefan Agner --- matter_server/server/storage.py | 12 +++++++++--- pyproject.toml | 1 + 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/matter_server/server/storage.py b/matter_server/server/storage.py index eeb896aa..64a0e0bd 100644 --- a/matter_server/server/storage.py +++ b/matter_server/server/storage.py @@ -5,8 +5,11 @@ import asyncio import logging from pathlib import Path +import shutil from typing import TYPE_CHECKING, Any, cast +from atomicwrites import atomic_write + from ..common.helpers.json import JSON_DECODE_EXCEPTIONS, json_dumps, json_loads if TYPE_CHECKING: @@ -152,11 +155,14 @@ async def async_save(self) -> None: def do_save() -> None: # make backup before we write a new file - if self.filename.is_file(): - self.filename.replace(self.filename_backup) + self.filename_backup.unlink(True) + shutil.copy(self.filename, self.filename_backup) - with open(self.filename, "w", encoding="utf-8") as _file: + # use atomomic write to avoid corrupting the file + # if power is cut during write, we don't write a corrupted file + with atomic_write(self.filename, encoding="utf-8", overwrite=True) as _file: _file.write(json_dumps(self._data)) + LOGGER.debug("Saved data to persistent storage") async with self._save_lock: diff --git a/pyproject.toml b/pyproject.toml index 04f45fb0..23b53345 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,6 +35,7 @@ server = [ "aiohttp==3.11.11", "aiorun==2024.8.1", "async-timeout==5.0.1", + "atomicwrites==1.4.1", "coloredlogs==15.0.1", "cryptography==44.0.0", "orjson==3.10.12", From 7a5f78080828a80c28d9096ec5c625f17bc38c42 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 30 Dec 2024 10:05:39 +0100 Subject: [PATCH 093/400] Bump orjson from 3.10.12 to 3.10.13 (#1021) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 23b53345..c2934f0a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,7 +38,7 @@ server = [ "atomicwrites==1.4.1", "coloredlogs==15.0.1", "cryptography==44.0.0", - "orjson==3.10.12", + "orjson==3.10.13", "zeroconf==0.136.2", "home-assistant-chip-core==2024.11.4", ] From f3b3f10a719d122be2d29f6388e9b861b50083ae Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 30 Dec 2024 10:06:07 +0100 Subject: [PATCH 094/400] Bump pylint from 3.3.2 to 3.3.3 (#1020) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index c2934f0a..aa1919ee 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -49,7 +49,7 @@ test = [ "mypy==1.14.0", "pre-commit==4.0.1", "pre-commit-hooks==5.0.0", - "pylint==3.3.2", + "pylint==3.3.3", "pytest==8.3.4", "pytest-asyncio==0.25.0", "pytest-aiohttp==1.0.5", From a15a8f1ade00adfd6195367618be9e18d1c7b4cd Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Tue, 31 Dec 2024 10:18:01 +0100 Subject: [PATCH 095/400] Fix settings file storage at first/clean startup (#1023) --- matter_server/server/storage.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/matter_server/server/storage.py b/matter_server/server/storage.py index 64a0e0bd..de15cc84 100644 --- a/matter_server/server/storage.py +++ b/matter_server/server/storage.py @@ -156,7 +156,8 @@ async def async_save(self) -> None: def do_save() -> None: # make backup before we write a new file self.filename_backup.unlink(True) - shutil.copy(self.filename, self.filename_backup) + if self.filename.is_file(): + shutil.copy(self.filename, self.filename_backup) # use atomomic write to avoid corrupting the file # if power is cut during write, we don't write a corrupted file From cd5123a765c55b79ebe533ffdc6dadad75cb3e1c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 6 Jan 2025 10:54:37 +0100 Subject: [PATCH 096/400] Bump mypy from 1.14.0 to 1.14.1 (#1026) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index aa1919ee..d0ca23ec 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -46,7 +46,7 @@ test = [ "aioresponses==0.7.7", "codespell==2.3.0", "isort==5.13.2", - "mypy==1.14.0", + "mypy==1.14.1", "pre-commit==4.0.1", "pre-commit-hooks==5.0.0", "pylint==3.3.3", From cec732be1efbbe260c29e7a4d0e37912028c7116 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 6 Jan 2025 10:57:09 +0100 Subject: [PATCH 097/400] Bump ruff from 0.8.4 to 0.8.6 (#1024) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index d0ca23ec..2bcc9494 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,7 +54,7 @@ test = [ "pytest-asyncio==0.25.0", "pytest-aiohttp==1.0.5", "pytest-cov==6.0.0", - "ruff==0.8.4", + "ruff==0.8.6", "tomli==2.2.1", ] From 7d89b0256b6aa4cb8550bd435e0438f0fccf9eea Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 6 Jan 2025 12:21:25 +0100 Subject: [PATCH 098/400] Bump pytest-asyncio from 0.25.0 to 0.25.1 (#1025) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 2bcc9494..c5cfdca6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -51,7 +51,7 @@ test = [ "pre-commit-hooks==5.0.0", "pylint==3.3.3", "pytest==8.3.4", - "pytest-asyncio==0.25.0", + "pytest-asyncio==0.25.1", "pytest-aiohttp==1.0.5", "pytest-cov==6.0.0", "ruff==0.8.6", From 078b6ed20dfdf3bc775a4a62fbc146cbbf34e5e8 Mon Sep 17 00:00:00 2001 From: jonathan351 Date: Fri, 10 Jan 2025 19:21:51 +0000 Subject: [PATCH 099/400] Client can't reconnect after disconnection (#1029) --- matter_server/client/client.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/matter_server/client/client.py b/matter_server/client/client.py index aababf67..c3273300 100644 --- a/matter_server/client/client.py +++ b/matter_server/client/client.py @@ -612,6 +612,8 @@ async def connect(self) -> None: if self.connection.connected: # already connected return + + self._stop_called = False # NOTE: connect will raise when connecting failed await self.connection.connect() From 29c049ebd14b3b2bdac4de40a529e1586cea60a0 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 10 Jan 2025 20:22:37 +0100 Subject: [PATCH 100/400] Bump docker/build-push-action from 6.10.0 to 6.11.0 (#1028) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a6fbdc0a..4864566f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -95,7 +95,7 @@ jobs: echo "minor=${patch%.*}" >> $GITHUB_OUTPUT echo "major=${patch%.*.*}" >> $GITHUB_OUTPUT - name: Build and Push release - uses: docker/build-push-action@v6.10.0 + uses: docker/build-push-action@v6.11.0 if: github.event.release.prerelease == false with: context: . @@ -109,7 +109,7 @@ jobs: push: true build-args: "PYTHON_MATTER_SERVER=${{ needs.build-and-publish-pypi.outputs.version }}" - name: Build and Push pre-release - uses: docker/build-push-action@v6.10.0 + uses: docker/build-push-action@v6.11.0 if: github.event.release.prerelease == true with: context: . From d99b98d6bccb29916105a795ca7fa66b8db4a684 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 13 Jan 2025 11:19:18 +0100 Subject: [PATCH 101/400] Bump pytest-asyncio from 0.25.1 to 0.25.2 (#1034) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index c5cfdca6..50c759ff 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -51,7 +51,7 @@ test = [ "pre-commit-hooks==5.0.0", "pylint==3.3.3", "pytest==8.3.4", - "pytest-asyncio==0.25.1", + "pytest-asyncio==0.25.2", "pytest-aiohttp==1.0.5", "pytest-cov==6.0.0", "ruff==0.8.6", From 8b68ce872e4d072d05b5880c6492b5d2da878694 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 13 Jan 2025 11:31:46 +0100 Subject: [PATCH 102/400] Bump orjson from 3.10.13 to 3.10.14 (#1033) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 50c759ff..ea9084a4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,7 +38,7 @@ server = [ "atomicwrites==1.4.1", "coloredlogs==15.0.1", "cryptography==44.0.0", - "orjson==3.10.13", + "orjson==3.10.14", "zeroconf==0.136.2", "home-assistant-chip-core==2024.11.4", ] From b0acf64cf94bcf42a92730c64262d10674a91937 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 13 Jan 2025 11:36:16 +0100 Subject: [PATCH 103/400] Bump zeroconf from 0.136.2 to 0.139.0 (#1032) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index ea9084a4..e55332b3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -39,7 +39,7 @@ server = [ "coloredlogs==15.0.1", "cryptography==44.0.0", "orjson==3.10.14", - "zeroconf==0.136.2", + "zeroconf==0.139.0", "home-assistant-chip-core==2024.11.4", ] test = [ From a706367e6dc93ff5271681f475511b95cf88a884 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Mon, 13 Jan 2025 13:03:08 +0100 Subject: [PATCH 104/400] Use new pre-commit stage names (#1035) --- .pre-commit-config.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index dbb047a4..b870673d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,14 +9,14 @@ repos: types: [python] entry: scripts/run-in-env.sh ruff check --fix require_serial: true - stages: [commit, push, manual] + stages: [pre-commit, pre-push, manual] - id: ruff-format name: ๐Ÿถ Ruff Formatter language: system types: [python] entry: scripts/run-in-env.sh ruff format require_serial: true - stages: [commit, push, manual] + stages: [pre-commit, pre-push, manual] - id: check-ast name: ๐Ÿ Check Python AST language: system @@ -36,7 +36,7 @@ repos: language: system types: [text, executable] entry: scripts/run-in-env.sh check-executables-have-shebangs - stages: [commit, push, manual] + stages: [pre-commit, pre-push, manual] - id: check-json name: ๏ฝ› Check JSON files language: system @@ -72,7 +72,7 @@ repos: language: system types: [text] entry: scripts/run-in-env.sh end-of-file-fixer - stages: [commit, push, manual] + stages: [pre-commit, pre-push, manual] - id: no-commit-to-branch name: ๐Ÿ›‘ Don't commit to main branch language: system @@ -91,7 +91,7 @@ repos: language: system types: [text] entry: scripts/run-in-env.sh trailing-whitespace-fixer - stages: [commit, push, manual] + stages: [pre-commit, pre-push, manual] - id: mypy name: mypy entry: scripts/run-in-env.sh mypy From f0be9a0220c621f959f33cbb6163dd0163a9ee62 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 13 Jan 2025 13:16:30 +0100 Subject: [PATCH 105/400] Bump ruff from 0.8.6 to 0.9.1 (#1031) --- matter_server/common/helpers/util.py | 2 +- pyproject.toml | 2 +- tests/ruff.toml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/matter_server/common/helpers/util.py b/matter_server/common/helpers/util.py index f7b15234..0f70de7f 100644 --- a/matter_server/common/helpers/util.py +++ b/matter_server/common/helpers/util.py @@ -283,7 +283,7 @@ def dataclass_from_dict( extra_keys = dict_obj.keys() - {f.name for f in dc_fields} if extra_keys: raise KeyError( - f'Extra key(s) {",".join(extra_keys)} not allowed for {str(cls)}' + f"Extra key(s) {','.join(extra_keys)} not allowed for {str(cls)}" ) type_hints = cached_type_hints(cls) return cls( diff --git a/pyproject.toml b/pyproject.toml index e55332b3..0111c749 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,7 +54,7 @@ test = [ "pytest-asyncio==0.25.2", "pytest-aiohttp==1.0.5", "pytest-cov==6.0.0", - "ruff==0.8.6", + "ruff==0.9.1", "tomli==2.2.1", ] diff --git a/tests/ruff.toml b/tests/ruff.toml index 83ab9fd7..ea51db73 100644 --- a/tests/ruff.toml +++ b/tests/ruff.toml @@ -8,6 +8,6 @@ lint.extend-select = [ lint.extend-ignore = [ "S101", # Use of assert detected. As these are tests... "SLF001", # Tests will access private/protected members... - "TCH002", # pytest doesn't like this one... + "TC002", # pytest doesn't like this one... "PT012", # annoying with tests ] From b1fa99e26860f98331a2667f6263647ec9870030 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Mon, 13 Jan 2025 14:29:16 +0100 Subject: [PATCH 106/400] Support local updates with the same version string (#1027) --- matter_server/server/device_controller.py | 4 ++- matter_server/server/ota/__init__.py | 31 ++++++++++++++--------- 2 files changed, 22 insertions(+), 13 deletions(-) diff --git a/matter_server/server/device_controller.py b/matter_server/server/device_controller.py index c9bf97ce..da791cc1 100644 --- a/matter_server/server/device_controller.py +++ b/matter_server/server/device_controller.py @@ -1099,10 +1099,12 @@ async def _check_node_update( raise UpdateCheckError("Update found, but no OTA URL provided.") node_logger.info( - "New software update found: %s on %s (current %s).", + "Software update found: %s (%s) from %s, current %s (%s)).", update["softwareVersionString"], + update["softwareVersion"], update_source, software_version_string, + software_version, ) return update_source, update diff --git a/matter_server/server/ota/__init__.py b/matter_server/server/ota/__init__.py index 21cf52c7..b054d75f 100644 --- a/matter_server/server/ota/__init__.py +++ b/matter_server/server/ota/__init__.py @@ -8,7 +8,9 @@ from matter_server.common.models import UpdateSource from matter_server.server.ota import dcl -_local_updates: dict[tuple[int, int], dict] = {} +MatterProduct = tuple[int, int] + +_local_updates: dict[MatterProduct, dict[int | str, dict]] = {} async def load_local_updates(ota_provider_dir: Path) -> None: @@ -21,9 +23,12 @@ def _load_update(ota_provider_dir: Path) -> None: with open(update_file) as f: update = json.load(f) model_version = update["modelVersion"] - _local_updates[(model_version["vid"], model_version["pid"])] = ( - model_version - ) + model_key = (model_version["vid"], model_version["pid"]) + update_dict = _local_updates.get(model_key, {}) + # Store by string or integer, this allows update by both + update_dict[model_version["softwareVersion"]] = model_version + update_dict[model_version["softwareVersionString"]] = model_version + _local_updates[model_key] = update_dict await asyncio.get_running_loop().run_in_executor( None, _load_update, ota_provider_dir @@ -38,14 +43,16 @@ async def check_for_update( requested_software_version: int | str | None = None, ) -> tuple[UpdateSource, dict] | tuple[None, None]: """Check for software updates.""" - if (vid, pid) in _local_updates: - local_update = _local_updates[(vid, pid)] - if ( - requested_software_version is None - or local_update["softwareVersion"] == requested_software_version - or local_update["softwareVersionString"] == requested_software_version - ): - return UpdateSource.LOCAL, local_update + if local_updates := _local_updates.get((vid, pid)): + logger.info("Local updates found for this device") + if requested_software_version is None: + # Use integer version to reliably determine absolute latest version + versions = filter( + lambda version: isinstance(version, int), local_updates.keys() + ) + return UpdateSource.LOCAL, local_updates[max(versions)] + if requested_software_version in local_updates: + return UpdateSource.LOCAL, local_updates[requested_software_version] if dcl_update := await dcl.check_for_update( logger, vid, pid, current_software_version, requested_software_version From 317060b6a1b8ee4e8e05738f0315b380d6d7d58c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 16 Jan 2025 10:06:42 +0100 Subject: [PATCH 107/400] Bump docker/build-push-action from 6.11.0 to 6.12.0 (#1036) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4864566f..e045a1f4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -95,7 +95,7 @@ jobs: echo "minor=${patch%.*}" >> $GITHUB_OUTPUT echo "major=${patch%.*.*}" >> $GITHUB_OUTPUT - name: Build and Push release - uses: docker/build-push-action@v6.11.0 + uses: docker/build-push-action@v6.12.0 if: github.event.release.prerelease == false with: context: . @@ -109,7 +109,7 @@ jobs: push: true build-args: "PYTHON_MATTER_SERVER=${{ needs.build-and-publish-pypi.outputs.version }}" - name: Build and Push pre-release - uses: docker/build-push-action@v6.11.0 + uses: docker/build-push-action@v6.12.0 if: github.event.release.prerelease == true with: context: . From 6fe3d942174adf5404f979d32ffdfc7929750cf7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 20 Jan 2025 09:41:17 +0100 Subject: [PATCH 108/400] Bump orjson from 3.10.14 to 3.10.15 (#1041) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 0111c749..e81d0205 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,7 +38,7 @@ server = [ "atomicwrites==1.4.1", "coloredlogs==15.0.1", "cryptography==44.0.0", - "orjson==3.10.14", + "orjson==3.10.15", "zeroconf==0.139.0", "home-assistant-chip-core==2024.11.4", ] From 680243a1112fb82f9547b7c59fe3fb4ee84e535d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 20 Jan 2025 09:44:44 +0100 Subject: [PATCH 109/400] Bump ruff from 0.9.1 to 0.9.2 (#1038) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index e81d0205..b9f9e806 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,7 +54,7 @@ test = [ "pytest-asyncio==0.25.2", "pytest-aiohttp==1.0.5", "pytest-cov==6.0.0", - "ruff==0.9.1", + "ruff==0.9.2", "tomli==2.2.1", ] From 599282fbe52ee571cf3a2e3a3f5d2bbb31db55d3 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 20 Jan 2025 09:52:02 +0100 Subject: [PATCH 110/400] Bump zeroconf from 0.139.0 to 0.140.1 (#1039) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index b9f9e806..aee184af 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -39,7 +39,7 @@ server = [ "coloredlogs==15.0.1", "cryptography==44.0.0", "orjson==3.10.15", - "zeroconf==0.139.0", + "zeroconf==0.140.1", "home-assistant-chip-core==2024.11.4", ] test = [ From edcba75b233bd4fc5e0391004b94ceaf0b65743a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 20 Jan 2025 10:11:30 +0100 Subject: [PATCH 111/400] Bump release-drafter/release-drafter from 6.0.0 to 6.1.0 (#1042) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release-drafter.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index 18e52677..1c3e89de 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -10,6 +10,6 @@ jobs: runs-on: ubuntu-latest steps: # Drafts your next Release notes as Pull Requests are merged into "master" - - uses: release-drafter/release-drafter@v6.0.0 + - uses: release-drafter/release-drafter@v6.1.0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 20fb9088f167d12e6ebf99415d8e74034d61d7b6 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 21 Jan 2025 11:55:50 +0100 Subject: [PATCH 112/400] Bump aioresponses from 0.7.7 to 0.7.8 (#1040) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Stefan Agner --- pyproject.toml | 2 +- tests/server/ota/test_dcl.py | 47 +++++++++++++++++++----------------- 2 files changed, 26 insertions(+), 23 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index aee184af..54051419 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -43,7 +43,7 @@ server = [ "home-assistant-chip-core==2024.11.4", ] test = [ - "aioresponses==0.7.7", + "aioresponses==0.7.8", "codespell==2.3.0", "isort==5.13.2", "mypy==1.14.1", diff --git a/tests/server/ota/test_dcl.py b/tests/server/ota/test_dcl.py index eb507aba..0509d98b 100644 --- a/tests/server/ota/test_dcl.py +++ b/tests/server/ota/test_dcl.py @@ -8,6 +8,7 @@ from aioresponses import aioresponses import pytest +from matter_server.server.helpers import DCL_PRODUCTION_URL from matter_server.server.ota.dcl import check_for_update @@ -24,22 +25,31 @@ def mock_aioresponse(): yield m +def mock_dcl_version( + aioresponse, vid: int, pid: int, version: int | None = None, suffix: str = "" +) -> dict: + """Test.""" + if version: + data = _load_fixture(f"{vid}-{pid}-{version}{suffix}.json") + url = DCL_PRODUCTION_URL + f"/dcl/model/versions/{vid}/{pid}/{version}" + else: + data = _load_fixture(f"{vid}-{pid}{suffix}.json") + url = DCL_PRODUCTION_URL + f"/dcl/model/versions/{vid}/{pid}" + aioresponse.get(url=url, status=200, payload=data) + return data + + @pytest.fixture(name="get_software_versions", autouse=True) def _mock_get_software_versions(aioresponse) -> None: """Mock the _get_software_versions function.""" - data = _load_fixture("4447-8194.json") - aioresponse.get(url="/dcl/model/versions/4447/8194", status=200, payload=data) - aioresponse.get( - url="/dcl/model/versions/4447/8194/1000", - payload=_load_fixture("4447-8194-1000.json"), - ) + mock_dcl_version(aioresponse, 4447, 8194) + mock_dcl_version(aioresponse, 4447, 8194, 1000) async def test_check_updates(aioresponse): """Test the case where the latest software version is applicable.""" # Call the function with a current software version of 1000 - data = _load_fixture("4447-8194-1011-valid.json") - aioresponse.get(url="/dcl/model/versions/4447/8194/1011", status=200, payload=data) + data = mock_dcl_version(aioresponse, 4447, 8194, 1011, "-valid") result = await check_for_update(MagicMock(), 4447, 8194, 1000) assert result == data["modelVersion"] @@ -48,8 +58,7 @@ async def test_check_updates(aioresponse): async def test_check_updates_not_applicable(aioresponse): """Test the case where the latest software version is not applicable.""" # Call the function with a current software version of 2000 - data = _load_fixture("4447-8194-1011-valid.json") - aioresponse.get(url="/dcl/model/versions/4447/8194/1011", status=200, payload=data) + mock_dcl_version(aioresponse, 4447, 8194, 1011, "-valid") result = await check_for_update(MagicMock(), 4447, 8194, 2000) assert result is None @@ -57,8 +66,7 @@ async def test_check_updates_not_applicable(aioresponse): async def test_check_updates_not_applicable_not_valid(aioresponse): """Test the case where the latest software version is not valid.""" - data = _load_fixture("4447-8194-1011-invalid.json") - aioresponse.get(url="/dcl/model/versions/4447/8194/1011", status=200, payload=data) + mock_dcl_version(aioresponse, 4447, 8194, 1011, "-invalid") result = await check_for_update(MagicMock(), 4447, 8194, 1000) assert result is None @@ -67,8 +75,7 @@ async def test_check_updates_not_applicable_not_valid(aioresponse): async def test_check_updates_specific_version(aioresponse): """Test the case to get a specific version.""" # Call the function with a current software version of 1000 and request 1011 as update - data = _load_fixture("4447-8194-1011-valid.json") - aioresponse.get(url="/dcl/model/versions/4447/8194/1011", payload=data) + data = mock_dcl_version(aioresponse, 4447, 8194, 1011, "-valid") result = await check_for_update(MagicMock(), 4447, 8194, 1000, 1011) assert result == data["modelVersion"] @@ -77,14 +84,10 @@ async def test_check_updates_specific_version(aioresponse): async def test_check_no_update_if_url_empty(aioresponse): """Test the case checks if latest version gets picked version.""" # Call the function with a current software version of 1000 and request 1011 as update - data = _load_fixture("4442-67.json") - aioresponse.get(url="/dcl/model/versions/4442/67", payload=data) - data = _load_fixture("4442-67-197888.json") - aioresponse.get(url="/dcl/model/versions/4442/67/197888", payload=data) - data = _load_fixture("4442-67-197910.json") - aioresponse.get(url="/dcl/model/versions/4442/67/197910", payload=data) - data = _load_fixture("4442-67-198340.json") - aioresponse.get(url="/dcl/model/versions/4442/67/198340", payload=data) + mock_dcl_version(aioresponse, 4442, 67) + mock_dcl_version(aioresponse, 4442, 67, 197888) + mock_dcl_version(aioresponse, 4442, 67, 197910) + mock_dcl_version(aioresponse, 4442, 67, 198340) result = await check_for_update(MagicMock(), 4442, 67, 197120) assert result is None From f8dc236dffcba669e4fb4c4c2e4e4777ed6858e6 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 24 Jan 2025 09:33:46 +0100 Subject: [PATCH 113/400] Bump pypa/gh-action-pypi-publish from 1.12.3 to 1.12.4 (#1048) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e045a1f4..e92ddbdb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -64,7 +64,7 @@ jobs: run: >- python3 -m build - name: Publish release to PyPI - uses: pypa/gh-action-pypi-publish@v1.12.3 + uses: pypa/gh-action-pypi-publish@v1.12.4 with: user: __token__ password: ${{ secrets.PYPI_TOKEN }} From b53be9379b2d610d0673f28b65e54f20d662b61d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 27 Jan 2025 09:21:23 +0100 Subject: [PATCH 114/400] Bump docker/build-push-action from 6.12.0 to 6.13.0 (#1049) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e92ddbdb..7ecdf8db 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -95,7 +95,7 @@ jobs: echo "minor=${patch%.*}" >> $GITHUB_OUTPUT echo "major=${patch%.*.*}" >> $GITHUB_OUTPUT - name: Build and Push release - uses: docker/build-push-action@v6.12.0 + uses: docker/build-push-action@v6.13.0 if: github.event.release.prerelease == false with: context: . @@ -109,7 +109,7 @@ jobs: push: true build-args: "PYTHON_MATTER_SERVER=${{ needs.build-and-publish-pypi.outputs.version }}" - name: Build and Push pre-release - uses: docker/build-push-action@v6.12.0 + uses: docker/build-push-action@v6.13.0 if: github.event.release.prerelease == true with: context: . From 3793ea46cf8db64ba3580d97561f62d453e6cf1f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 27 Jan 2025 09:22:05 +0100 Subject: [PATCH 115/400] Bump pytest-aiohttp from 1.0.5 to 1.1.0 (#1051) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 54051419..9d693904 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,7 +52,7 @@ test = [ "pylint==3.3.3", "pytest==8.3.4", "pytest-asyncio==0.25.2", - "pytest-aiohttp==1.0.5", + "pytest-aiohttp==1.1.0", "pytest-cov==6.0.0", "ruff==0.9.2", "tomli==2.2.1", From 5fdb62e21cfd01883475632ecdb85b8c7b9e3fba Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 27 Jan 2025 09:22:17 +0100 Subject: [PATCH 116/400] Bump ruff from 0.9.2 to 0.9.3 (#1052) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 9d693904..06914044 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,7 +54,7 @@ test = [ "pytest-asyncio==0.25.2", "pytest-aiohttp==1.1.0", "pytest-cov==6.0.0", - "ruff==0.9.2", + "ruff==0.9.3", "tomli==2.2.1", ] From 5e0a96ecaa6281659346d6d9d57dabc37854a71c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 27 Jan 2025 09:22:29 +0100 Subject: [PATCH 117/400] Bump codespell from 2.3.0 to 2.4.0 (#1053) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 06914044..f1b8a20b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -44,7 +44,7 @@ server = [ ] test = [ "aioresponses==0.7.8", - "codespell==2.3.0", + "codespell==2.4.0", "isort==5.13.2", "mypy==1.14.1", "pre-commit==4.0.1", From 3239ffaeb2ac56cd05f4278573810b341399874b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 27 Jan 2025 09:23:04 +0100 Subject: [PATCH 118/400] Bump zeroconf from 0.140.1 to 0.141.0 (#1050) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index f1b8a20b..b668f378 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -39,7 +39,7 @@ server = [ "coloredlogs==15.0.1", "cryptography==44.0.0", "orjson==3.10.15", - "zeroconf==0.140.1", + "zeroconf==0.141.0", "home-assistant-chip-core==2024.11.4", ] test = [ From c132c30a0f98fe35ce13997695a4e8e00275fc92 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 27 Jan 2025 09:27:54 +0100 Subject: [PATCH 119/400] Bump pre-commit from 4.0.1 to 4.1.0 (#1054) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index b668f378..e52cad7e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -47,7 +47,7 @@ test = [ "codespell==2.4.0", "isort==5.13.2", "mypy==1.14.1", - "pre-commit==4.0.1", + "pre-commit==4.1.0", "pre-commit-hooks==5.0.0", "pylint==3.3.3", "pytest==8.3.4", From 5a040d1889e1b9ec0eb9c12be546a4ee455ea77b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 28 Jan 2025 13:58:56 +0100 Subject: [PATCH 120/400] Bump actions/setup-python from 5.3.0 to 5.4.0 (#1055) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 2 +- .github/workflows/test.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7ecdf8db..9812f94c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,7 +32,7 @@ jobs: fi fi - name: Set up Python ${{ env.PYTHON_VERSION }} - uses: actions/setup-python@v5.3.0 + uses: actions/setup-python@v5.4.0 with: python-version: ${{ env.PYTHON_VERSION }} - name: Set up Node ${{ env.NODE_VERSION }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 75bfc45c..5035b2f5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,7 +18,7 @@ jobs: - name: Check out code from GitHub uses: actions/checkout@v4.2.2 - name: Set up Python - uses: actions/setup-python@v5.3.0 + uses: actions/setup-python@v5.4.0 with: python-version: "3.11" - name: Install dependencies @@ -45,7 +45,7 @@ jobs: - name: Check out code from GitHub uses: actions/checkout@v4.2.2 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5.3.0 + uses: actions/setup-python@v5.4.0 with: python-version: ${{ matrix.python-version }} - name: Install dependencies From 056d9b00cfacca535b2691af146ee3553f74238d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 3 Feb 2025 10:27:33 +0100 Subject: [PATCH 121/400] Bump ruff from 0.9.3 to 0.9.4 (#1061) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index e52cad7e..60d74514 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,7 +54,7 @@ test = [ "pytest-asyncio==0.25.2", "pytest-aiohttp==1.1.0", "pytest-cov==6.0.0", - "ruff==0.9.3", + "ruff==0.9.4", "tomli==2.2.1", ] From d742988109b7064051455ac1e02cac0ed810407b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 3 Feb 2025 10:27:53 +0100 Subject: [PATCH 122/400] Bump pylint from 3.3.3 to 3.3.4 (#1062) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 60d74514..9e66c9f5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -49,7 +49,7 @@ test = [ "mypy==1.14.1", "pre-commit==4.1.0", "pre-commit-hooks==5.0.0", - "pylint==3.3.3", + "pylint==3.3.4", "pytest==8.3.4", "pytest-asyncio==0.25.2", "pytest-aiohttp==1.1.0", From 9c8957198ac262d6ac8409cf6282b57fb9967a94 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 3 Feb 2025 10:35:00 +0100 Subject: [PATCH 123/400] Bump aiorun from 2024.8.1 to 2025.1.1 (#1067) --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 9e66c9f5..872c9306 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -33,7 +33,7 @@ version = "0.0.0" [project.optional-dependencies] server = [ "aiohttp==3.11.11", - "aiorun==2024.8.1", + "aiorun==2025.1.1", "async-timeout==5.0.1", "atomicwrites==1.4.1", "coloredlogs==15.0.1", From b5af28cc1da26247b55c7b6476c13a64db38ca2d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 3 Feb 2025 10:35:19 +0100 Subject: [PATCH 124/400] Bump codespell from 2.4.0 to 2.4.1 (#1065) --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 872c9306..873539f2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -44,7 +44,7 @@ server = [ ] test = [ "aioresponses==0.7.8", - "codespell==2.4.0", + "codespell==2.4.1", "isort==5.13.2", "mypy==1.14.1", "pre-commit==4.1.0", From a1caf49b2d11c9def9c9ea2b62e7cd55a6c45bb2 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 3 Feb 2025 10:35:37 +0100 Subject: [PATCH 125/400] Bump zeroconf from 0.141.0 to 0.143.0 (#1064) --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 873539f2..8167337f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -39,7 +39,7 @@ server = [ "coloredlogs==15.0.1", "cryptography==44.0.0", "orjson==3.10.15", - "zeroconf==0.141.0", + "zeroconf==0.143.0", "home-assistant-chip-core==2024.11.4", ] test = [ From 685eef35eb24e4d089000cf9b98478ce15f25755 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 3 Feb 2025 10:35:56 +0100 Subject: [PATCH 126/400] Bump pytest-asyncio from 0.25.2 to 0.25.3 (#1063) --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 8167337f..0eb1b337 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -51,7 +51,7 @@ test = [ "pre-commit-hooks==5.0.0", "pylint==3.3.4", "pytest==8.3.4", - "pytest-asyncio==0.25.2", + "pytest-asyncio==0.25.3", "pytest-aiohttp==1.1.0", "pytest-cov==6.0.0", "ruff==0.9.4", From f30099429e0b9e4ec3bc4554ea886aac967effd0 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 3 Feb 2025 10:42:17 +0100 Subject: [PATCH 127/400] Bump isort from 5.13.2 to 6.0.0 (#1066) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 0eb1b337..f7c52d1b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -45,7 +45,7 @@ server = [ test = [ "aioresponses==0.7.8", "codespell==2.4.1", - "isort==5.13.2", + "isort==6.0.0", "mypy==1.14.1", "pre-commit==4.1.0", "pre-commit-hooks==5.0.0", From 61861f00b5d2cb6d4de935cff6ebb1ec47a86395 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 7 Feb 2025 09:48:31 +0100 Subject: [PATCH 128/400] Bump docker/setup-buildx-action from 3.8.0 to 3.9.0 (#1070) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9812f94c..8c6f6faa 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -85,7 +85,7 @@ jobs: username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3.8.0 + uses: docker/setup-buildx-action@v3.9.0 - name: Version number for tags id: tags shell: bash From 649c2a77fcb15ddb4f4ca9829857d2f1125ab80d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 10 Feb 2025 09:50:39 +0100 Subject: [PATCH 129/400] Bump aiohttp from 3.11.11 to 3.11.12 (#1074) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index f7c52d1b..5ef9ffca 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,7 +32,7 @@ version = "0.0.0" [project.optional-dependencies] server = [ - "aiohttp==3.11.11", + "aiohttp==3.11.12", "aiorun==2025.1.1", "async-timeout==5.0.1", "atomicwrites==1.4.1", From 3e5c7711d5984db181d2d4952fb6169b4e801e8b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 10 Feb 2025 09:50:52 +0100 Subject: [PATCH 130/400] Bump ruff from 0.9.4 to 0.9.5 (#1073) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 5ef9ffca..836275e7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,7 +54,7 @@ test = [ "pytest-asyncio==0.25.3", "pytest-aiohttp==1.1.0", "pytest-cov==6.0.0", - "ruff==0.9.4", + "ruff==0.9.5", "tomli==2.2.1", ] From 91334a7efc3ff41c8516f7198df691cce79e2cde Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 10 Feb 2025 09:51:05 +0100 Subject: [PATCH 131/400] Bump mypy from 1.14.1 to 1.15.0 (#1072) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 836275e7..314da70c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -46,7 +46,7 @@ test = [ "aioresponses==0.7.8", "codespell==2.4.1", "isort==6.0.0", - "mypy==1.14.1", + "mypy==1.15.0", "pre-commit==4.1.0", "pre-commit-hooks==5.0.0", "pylint==3.3.4", From b74160437e0bbf50e8694c1a2240407d4911edb5 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 17 Feb 2025 09:55:53 +0100 Subject: [PATCH 132/400] Bump zeroconf from 0.143.0 to 0.145.0 (#1077) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 314da70c..5e3fd959 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -39,7 +39,7 @@ server = [ "coloredlogs==15.0.1", "cryptography==44.0.0", "orjson==3.10.15", - "zeroconf==0.143.0", + "zeroconf==0.145.0", "home-assistant-chip-core==2024.11.4", ] test = [ From 625a6c09e1d0cdc37c459488ad836fd8fa426276 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 17 Feb 2025 10:47:04 +0100 Subject: [PATCH 133/400] Bump cryptography from 44.0.0 to 44.0.1 (#1078) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 5e3fd959..d29ce2f2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,7 +37,7 @@ server = [ "async-timeout==5.0.1", "atomicwrites==1.4.1", "coloredlogs==15.0.1", - "cryptography==44.0.0", + "cryptography==44.0.1", "orjson==3.10.15", "zeroconf==0.145.0", "home-assistant-chip-core==2024.11.4", From 60d5a886c1d2887ae163e4fbaf5690c7dbb2f06f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 19 Feb 2025 10:49:59 +0100 Subject: [PATCH 134/400] Bump ruff from 0.9.5 to 0.9.6 (#1079) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Stefan Agner --- pyproject.toml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index d29ce2f2..3e067cb3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,7 +54,7 @@ test = [ "pytest-asyncio==0.25.3", "pytest-aiohttp==1.1.0", "pytest-cov==6.0.0", - "ruff==0.9.5", + "ruff==0.9.6", "tomli==2.2.1", ] @@ -239,6 +239,9 @@ ignore = [ select = ["ALL"] +[tool.ruff.lint.flake8-builtins] +builtins-allowed-modules = ["json"] + [tool.ruff.lint.flake8-pytest-style] fixture-parentheses = false mark-parentheses = false From f9a412c9459ffc68b001db067bca794a49ac5556 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 20 Feb 2025 10:44:23 +0100 Subject: [PATCH 135/400] Bump docker/build-push-action from 6.13.0 to 6.14.0 (#1082) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8c6f6faa..de63c448 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -95,7 +95,7 @@ jobs: echo "minor=${patch%.*}" >> $GITHUB_OUTPUT echo "major=${patch%.*.*}" >> $GITHUB_OUTPUT - name: Build and Push release - uses: docker/build-push-action@v6.13.0 + uses: docker/build-push-action@v6.14.0 if: github.event.release.prerelease == false with: context: . @@ -109,7 +109,7 @@ jobs: push: true build-args: "PYTHON_MATTER_SERVER=${{ needs.build-and-publish-pypi.outputs.version }}" - name: Build and Push pre-release - uses: docker/build-push-action@v6.13.0 + uses: docker/build-push-action@v6.14.0 if: github.event.release.prerelease == true with: context: . From 17082c407888e65ebabd0a44509b2727e9545303 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 24 Feb 2025 10:28:06 +0100 Subject: [PATCH 136/400] Bump zeroconf from 0.145.0 to 0.145.1 (#1085) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 3e067cb3..3fa8bf61 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -39,7 +39,7 @@ server = [ "coloredlogs==15.0.1", "cryptography==44.0.1", "orjson==3.10.15", - "zeroconf==0.145.0", + "zeroconf==0.145.1", "home-assistant-chip-core==2024.11.4", ] test = [ From 3de7416f4fa77d98700914744158841f630589eb Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 24 Feb 2025 10:28:27 +0100 Subject: [PATCH 137/400] Bump ruff from 0.9.6 to 0.9.7 (#1084) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 3fa8bf61..e848b82f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,7 +54,7 @@ test = [ "pytest-asyncio==0.25.3", "pytest-aiohttp==1.1.0", "pytest-cov==6.0.0", - "ruff==0.9.6", + "ruff==0.9.7", "tomli==2.2.1", ] From 7e087189ed768f80c13b0751eba30e1a247d86a8 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 27 Feb 2025 12:10:27 +0100 Subject: [PATCH 138/400] Bump docker/build-push-action from 6.14.0 to 6.15.0 (#1088) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index de63c448..f644e52f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -95,7 +95,7 @@ jobs: echo "minor=${patch%.*}" >> $GITHUB_OUTPUT echo "major=${patch%.*.*}" >> $GITHUB_OUTPUT - name: Build and Push release - uses: docker/build-push-action@v6.14.0 + uses: docker/build-push-action@v6.15.0 if: github.event.release.prerelease == false with: context: . @@ -109,7 +109,7 @@ jobs: push: true build-args: "PYTHON_MATTER_SERVER=${{ needs.build-and-publish-pypi.outputs.version }}" - name: Build and Push pre-release - uses: docker/build-push-action@v6.14.0 + uses: docker/build-push-action@v6.15.0 if: github.event.release.prerelease == true with: context: . From a5fe46b3f2b89720c49d6d3dc859b4af06437a32 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 27 Feb 2025 12:10:41 +0100 Subject: [PATCH 139/400] Bump docker/setup-buildx-action from 3.9.0 to 3.10.0 (#1087) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f644e52f..c7731416 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -85,7 +85,7 @@ jobs: username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3.9.0 + uses: docker/setup-buildx-action@v3.10.0 - name: Version number for tags id: tags shell: bash From 565406e80d8d757225cec61d5a28b8efd1eafb40 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 3 Mar 2025 10:06:18 +0100 Subject: [PATCH 140/400] Bump isort from 6.0.0 to 6.0.1 (#1095) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index e848b82f..cebb30c0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -45,7 +45,7 @@ server = [ test = [ "aioresponses==0.7.8", "codespell==2.4.1", - "isort==6.0.0", + "isort==6.0.1", "mypy==1.15.0", "pre-commit==4.1.0", "pre-commit-hooks==5.0.0", From 7d6ccd21970e5b4f88b01210df607ac79cf8d020 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 3 Mar 2025 10:14:08 +0100 Subject: [PATCH 141/400] Bump aiohttp from 3.11.12 to 3.11.13 (#1094) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index cebb30c0..980d44f5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,7 +32,7 @@ version = "0.0.0" [project.optional-dependencies] server = [ - "aiohttp==3.11.12", + "aiohttp==3.11.13", "aiorun==2025.1.1", "async-timeout==5.0.1", "atomicwrites==1.4.1", From 26d9fd6813db6b5e36e3538d36851b5ec9a6df46 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 3 Mar 2025 10:16:27 +0100 Subject: [PATCH 142/400] Bump pytest from 8.3.4 to 8.3.5 (#1093) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 980d44f5..f3cfadc6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -50,7 +50,7 @@ test = [ "pre-commit==4.1.0", "pre-commit-hooks==5.0.0", "pylint==3.3.4", - "pytest==8.3.4", + "pytest==8.3.5", "pytest-asyncio==0.25.3", "pytest-aiohttp==1.1.0", "pytest-cov==6.0.0", From 62b928b1c72b93c9fe666f4ebeedab22b5fbbf5d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 3 Mar 2025 10:25:18 +0100 Subject: [PATCH 143/400] Bump ruff from 0.9.7 to 0.9.9 (#1092) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index f3cfadc6..8b7cb684 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,7 +54,7 @@ test = [ "pytest-asyncio==0.25.3", "pytest-aiohttp==1.1.0", "pytest-cov==6.0.0", - "ruff==0.9.7", + "ruff==0.9.9", "tomli==2.2.1", ] From 568cc4deda8f5dfee0e4eb52e36931101c91933e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 3 Mar 2025 10:31:20 +0100 Subject: [PATCH 144/400] Bump cryptography from 44.0.1 to 44.0.2 (#1091) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 8b7cb684..888bd50f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,7 +37,7 @@ server = [ "async-timeout==5.0.1", "atomicwrites==1.4.1", "coloredlogs==15.0.1", - "cryptography==44.0.1", + "cryptography==44.0.2", "orjson==3.10.15", "zeroconf==0.145.1", "home-assistant-chip-core==2024.11.4", From 3295c8ba038c7b3701ca7eb853a66ae468cbae94 Mon Sep 17 00:00:00 2001 From: Harry Heymann Date: Tue, 4 Mar 2025 13:00:07 -0500 Subject: [PATCH 145/400] Add a custom cluster for Inovelli VTM31-SN Dimmer (#1090) --- dashboard/src/client/models/descriptions.ts | 18 +++++ matter_server/common/custom_clusters.py | 73 +++++++++++++++++++++ 2 files changed, 91 insertions(+) diff --git a/dashboard/src/client/models/descriptions.ts b/dashboard/src/client/models/descriptions.ts index debff851..5888641f 100644 --- a/dashboard/src/client/models/descriptions.ts +++ b/dashboard/src/client/models/descriptions.ts @@ -12220,6 +12220,24 @@ export const clusters: Record = { } } }, + "305134641": { + "id": 305134641, + "label": "InovelliCluster", + "attributes": { + "305070177": { + "id": 305070177, + "cluster_id": 305134641, + "label": "LEDIndicatorIntensityOn", + "type": "uint" + }, + "305070178": { + "id": 305070178, + "cluster_id": 305134641, + "label": "LEDIndicatorIntensityOff", + "type": "uint" + } + } + }, "308149265": { "id": 308149265, "label": "NeoCluster", diff --git a/matter_server/common/custom_clusters.py b/matter_server/common/custom_clusters.py index aa6f7e9c..ae7849a1 100644 --- a/matter_server/common/custom_clusters.py +++ b/matter_server/common/custom_clusters.py @@ -368,6 +368,79 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: int = 0 +@dataclass +class InovelliCluster(Cluster, CustomClusterMixin): + """Custom (vendor-specific) cluster for Inovelli - Vendor ID 4961 (0x1361).""" + + id: ClassVar[int] = 0x122FFC31 + + @ChipUtility.classproperty + def descriptor(cls) -> ClusterObjectDescriptor: + """Return descriptor for this cluster.""" + return ClusterObjectDescriptor( + Fields=[ + ClusterObjectFieldDescriptor( + Label="ledIndicatorIntensityOn", Tag=0x122F0061, Type=uint + ), + ClusterObjectFieldDescriptor( + Label="ledIndicatorIntensityOff", Tag=0x122F0062, Type=uint + ), + ] + ) + + ledIndicatorIntenstyOn: uint | None = None + ledIndicatorIntensityOff: uint | None = None + + class Attributes: + """Attributes for the Inovelli Cluster.""" + + @dataclass + class LEDIndicatorIntensityOn( + ClusterAttributeDescriptor, CustomClusterAttributeMixin + ): + """LEDIndicatorIntensityOn Attribute within the Inovelli Cluster.""" + + @ChipUtility.classproperty + def cluster_id(cls) -> int: + """Return cluster id.""" + return 0x122FFC31 + + @ChipUtility.classproperty + def attribute_id(cls) -> int: + """Return attribute id.""" + return 0x122F0061 + + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + """Return attribute type.""" + return ClusterObjectFieldDescriptor(Type=uint) + + value: uint = 0 + + @dataclass + class LEDIndicatorIntensityOff( + ClusterAttributeDescriptor, CustomClusterAttributeMixin + ): + """LEDIndicatorIntensityOff Attribute within the Inovelli Cluster.""" + + @ChipUtility.classproperty + def cluster_id(cls) -> int: + """Return cluster id.""" + return 0x122FFC31 + + @ChipUtility.classproperty + def attribute_id(cls) -> int: + """Return attribute id.""" + return 0x122F0062 + + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + """Return attribute type.""" + return ClusterObjectFieldDescriptor(Type=uint) + + value: uint = 0 + + @dataclass class NeoCluster(Cluster, CustomClusterMixin): """Custom (vendor-specific) cluster for Neo - Vendor ID 4991 (0x137F).""" From cfb5d8bdef30cd53342418e03f340b2a384106c5 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Tue, 4 Mar 2025 21:22:43 +0100 Subject: [PATCH 146/400] Add docs to allowed PR labels (#1097) --- .github/workflows/pr-labels.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-labels.yaml b/.github/workflows/pr-labels.yaml index 1f7dd8f7..b1d4e6b4 100644 --- a/.github/workflows/pr-labels.yaml +++ b/.github/workflows/pr-labels.yaml @@ -20,4 +20,4 @@ jobs: uses: ludeeus/action-require-labels@1.1.0 with: labels: >- - breaking-change, bugfix, refactor, new-feature, maintenance, ci, dependencies + breaking-change, bugfix, refactor, new-feature, maintenance, ci, dependencies, docs From fb04ae731e3e99650cdf7d6cd41d3bb5f0308530 Mon Sep 17 00:00:00 2001 From: Markus Becker Date: Tue, 4 Mar 2025 21:24:23 +0100 Subject: [PATCH 147/400] Developer documentation: /data & IPv4 group limits (#1081) Co-authored-by: Zack Elia --- DEVELOPMENT.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index 158261ea..dd49ff81 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -6,6 +6,7 @@ Development is only possible on a (recent) Linux or MacOS machine. Other operati - Download/clone the repo to your local machine. - Set-up the development environment: `scripts/setup.sh` +- Create the `/data` directory if it does not exist with permissions for the user running the python-matter-server. ## Start Matter server @@ -19,6 +20,12 @@ Use `--help` to get a list of possible log levels and other command line argumen The server runs a Matter Controller and includes all logic for storing node information, interviews and subscriptions. To interact with this controller we've created a small Websockets API with an RPC-like interface. The library contains a client as reference implementation which in turn is used by Home Assistant. Splitting the server from the client allows the scenario where multiple consumers can communicate to the same Matter fabric and the Matter fabric can keep running while the consumer (e.g. Home Assistant is down). +If you happen to get `OSError: [Errno 105] No buffer space available.`, increase the IPv4 group limits with: +``` +echo "net.ipv4.igmp_max_memberships=1024" | sudo tee -a /etc/sysctl.d/local.conf +sudo service procps force-reload +``` + ## Python client library only There is also a Python client library hosted in this repository (used by Home Assistant), which consumes the Websockets API published from the server. From 5deb5c1e8df709b8b6dd7f6bdf590bdc72cb8d75 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 10 Mar 2025 10:04:44 +0100 Subject: [PATCH 148/400] Bump ruff from 0.9.9 to 0.9.10 (#1099) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 888bd50f..4fad6cab 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,7 +54,7 @@ test = [ "pytest-asyncio==0.25.3", "pytest-aiohttp==1.1.0", "pytest-cov==6.0.0", - "ruff==0.9.9", + "ruff==0.9.10", "tomli==2.2.1", ] From 655ff7c47eec041e7166794c214f755218629351 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 10 Mar 2025 10:05:19 +0100 Subject: [PATCH 149/400] Bump zeroconf from 0.145.1 to 0.146.1 (#1100) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 4fad6cab..00b1aada 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -39,7 +39,7 @@ server = [ "coloredlogs==15.0.1", "cryptography==44.0.2", "orjson==3.10.15", - "zeroconf==0.145.1", + "zeroconf==0.146.1", "home-assistant-chip-core==2024.11.4", ] test = [ From b548626b16b394be6bd9f0c51a818947d08bd235 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 17 Mar 2025 09:19:35 +0100 Subject: [PATCH 150/400] Bump aiohttp from 3.11.13 to 3.11.14 (#1105) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 00b1aada..0ede858c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,7 +32,7 @@ version = "0.0.0" [project.optional-dependencies] server = [ - "aiohttp==3.11.13", + "aiohttp==3.11.14", "aiorun==2025.1.1", "async-timeout==5.0.1", "atomicwrites==1.4.1", From f861cf569add4a6c684aff29dcf8d12db280b258 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 17 Mar 2025 10:05:24 +0100 Subject: [PATCH 151/400] Bump docker/login-action from 3.3.0 to 3.4.0 (#1106) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c7731416..cfa74e78 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -79,7 +79,7 @@ jobs: steps: - uses: actions/checkout@v4.2.2 - name: Log in to the GitHub container registry - uses: docker/login-action@v3.3.0 + uses: docker/login-action@v3.4.0 with: registry: ghcr.io username: ${{ github.repository_owner }} From 1564dbf02a6bc0e8b94cf8bcbd632182327f5f97 Mon Sep 17 00:00:00 2001 From: Harry Heymann Date: Wed, 19 Mar 2025 10:06:51 -0400 Subject: [PATCH 152/400] Add additional attribute to Inovelli VTM31-SN dimmer custom cluster (#1103) --- dashboard/src/client/models/descriptions.ts | 6 +++++ matter_server/common/custom_clusters.py | 29 +++++++++++++++++++++ 2 files changed, 35 insertions(+) diff --git a/dashboard/src/client/models/descriptions.ts b/dashboard/src/client/models/descriptions.ts index 5888641f..5f8bdb30 100644 --- a/dashboard/src/client/models/descriptions.ts +++ b/dashboard/src/client/models/descriptions.ts @@ -12235,6 +12235,12 @@ export const clusters: Record = { "cluster_id": 305134641, "label": "LEDIndicatorIntensityOff", "type": "uint" + }, + "305070342": { + "id": 305070342, + "cluster_id": 305134641, + "label": "ClearNotificationWithConfigDoubleTap", + "type": "bool" } } }, diff --git a/matter_server/common/custom_clusters.py b/matter_server/common/custom_clusters.py index ae7849a1..024689fa 100644 --- a/matter_server/common/custom_clusters.py +++ b/matter_server/common/custom_clusters.py @@ -385,11 +385,17 @@ def descriptor(cls) -> ClusterObjectDescriptor: ClusterObjectFieldDescriptor( Label="ledIndicatorIntensityOff", Tag=0x122F0062, Type=uint ), + ClusterObjectFieldDescriptor( + Label="clearNotificationWithConfigDoubleTap", + Tag=0x122F0106, + Type=bool, + ), ] ) ledIndicatorIntenstyOn: uint | None = None ledIndicatorIntensityOff: uint | None = None + clearNotificationWithConfigDoubleTap: bool | None = None class Attributes: """Attributes for the Inovelli Cluster.""" @@ -440,6 +446,29 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: uint = 0 + @dataclass + class ClearNotificationWithConfigDoubleTap( + ClusterAttributeDescriptor, CustomClusterAttributeMixin + ): + """ClearNotificationWithConfigDoubleTap Attribute within the Inovelli Cluster.""" + + @ChipUtility.classproperty + def cluster_id(cls) -> int: + """Return cluster id.""" + return 0x122FFC31 + + @ChipUtility.classproperty + def attribute_id(cls) -> int: + """Return attribute id.""" + return 0x122F0106 + + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + """Return attribute type.""" + return ClusterObjectFieldDescriptor(Type=bool) + + value: bool = False + @dataclass class NeoCluster(Cluster, CustomClusterMixin): From 50e487ca323e431acb1b85acb6e23115c81ff5d4 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 24 Mar 2025 10:53:36 +0100 Subject: [PATCH 153/400] Bump pre-commit from 4.1.0 to 4.2.0 (#1110) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 0ede858c..88570319 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -47,7 +47,7 @@ test = [ "codespell==2.4.1", "isort==6.0.1", "mypy==1.15.0", - "pre-commit==4.1.0", + "pre-commit==4.2.0", "pre-commit-hooks==5.0.0", "pylint==3.3.4", "pytest==8.3.5", From 2d9baa70de3194150db33c5e61a36f93484285e8 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 24 Mar 2025 10:58:32 +0100 Subject: [PATCH 154/400] Bump pylint from 3.3.4 to 3.3.6 (#1111) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 88570319..733a3495 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -49,7 +49,7 @@ test = [ "mypy==1.15.0", "pre-commit==4.2.0", "pre-commit-hooks==5.0.0", - "pylint==3.3.4", + "pylint==3.3.6", "pytest==8.3.5", "pytest-asyncio==0.25.3", "pytest-aiohttp==1.1.0", From 838c6754f9a4395403318a0ff22b9f6239c51e89 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 25 Mar 2025 09:31:15 +0100 Subject: [PATCH 155/400] Bump actions/setup-python from 5.4.0 to 5.5.0 (#1112) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 2 +- .github/workflows/test.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cfa74e78..fdba99a6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,7 +32,7 @@ jobs: fi fi - name: Set up Python ${{ env.PYTHON_VERSION }} - uses: actions/setup-python@v5.4.0 + uses: actions/setup-python@v5.5.0 with: python-version: ${{ env.PYTHON_VERSION }} - name: Set up Node ${{ env.NODE_VERSION }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5035b2f5..485fa160 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,7 +18,7 @@ jobs: - name: Check out code from GitHub uses: actions/checkout@v4.2.2 - name: Set up Python - uses: actions/setup-python@v5.4.0 + uses: actions/setup-python@v5.5.0 with: python-version: "3.11" - name: Install dependencies @@ -45,7 +45,7 @@ jobs: - name: Check out code from GitHub uses: actions/checkout@v4.2.2 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5.4.0 + uses: actions/setup-python@v5.5.0 with: python-version: ${{ matrix.python-version }} - name: Install dependencies From 923e2dc550f36f56b00c0b8ca89e5dc63eb7bf15 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 31 Mar 2025 10:50:44 +0200 Subject: [PATCH 156/400] Bump pytest-asyncio from 0.25.3 to 0.26.0 (#1116) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 733a3495..4e06c7da 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -51,7 +51,7 @@ test = [ "pre-commit-hooks==5.0.0", "pylint==3.3.6", "pytest==8.3.5", - "pytest-asyncio==0.25.3", + "pytest-asyncio==0.26.0", "pytest-aiohttp==1.1.0", "pytest-cov==6.0.0", "ruff==0.9.10", From 222b56c583284eb7e3781175fd3d6b1dec630809 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 31 Mar 2025 10:53:01 +0200 Subject: [PATCH 157/400] Bump orjson from 3.10.15 to 3.10.16 (#1115) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 4e06c7da..18a70ef9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,7 +38,7 @@ server = [ "atomicwrites==1.4.1", "coloredlogs==15.0.1", "cryptography==44.0.2", - "orjson==3.10.15", + "orjson==3.10.16", "zeroconf==0.146.1", "home-assistant-chip-core==2024.11.4", ] From 6bbc6f5decb80d691b33718a8717e0524407196f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 2 Apr 2025 09:39:29 +0200 Subject: [PATCH 158/400] Bump ruff from 0.9.10 to 0.11.2 (#1109) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Stefan Agner --- matter_server/server/ota/provider.py | 6 +++--- pyproject.toml | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/matter_server/server/ota/provider.py b/matter_server/server/ota/provider.py index 73a19384..606ffda8 100644 --- a/matter_server/server/ota/provider.py +++ b/matter_server/server/ota/provider.py @@ -149,13 +149,13 @@ async def _commission_ota_provider( ) ) if write_result[0].Status != Status.Success: - logging.error( + LOGGER.error( "Failed writing adjusted OTA Provider App ACL: Status %s.", str(write_result[0].Status), ) raise UpdateError("Error while setting up OTA Provider.") except ChipStackError as ex: - logging.exception("Failed setting up OTA Provider.", exc_info=ex) + LOGGER.exception("Failed setting up OTA Provider.", exc_info=ex) raise UpdateError("Error while setting up OTA Provider.") from ex async def start_update( @@ -323,7 +323,7 @@ async def fetch_update(self, update_desc: dict) -> None: elif parsed_url.scheme in ["file"]: file_path = self._ota_provider_base_dir / Path(parsed_url.path[1:]) if not await asyncio.to_thread(file_path.exists): - logging.warning("Local update file not found: %s", file_path) + LOGGER.warning("Local update file not found: %s", file_path) raise UpdateError("Local update file not found") if checksum_alg: checksum_alg.update(await asyncio.to_thread(file_path.read_bytes)) diff --git a/pyproject.toml b/pyproject.toml index 18a70ef9..702d7a8a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,7 +54,7 @@ test = [ "pytest-asyncio==0.26.0", "pytest-aiohttp==1.1.0", "pytest-cov==6.0.0", - "ruff==0.9.10", + "ruff==0.11.2", "tomli==2.2.1", ] @@ -170,6 +170,8 @@ ignore = [ "TD004", # Just annoying, not really useful "COM812", # Conflict with the Ruff formatter "ISC001", # Conflict with the Ruff formatter + # Quotes for typing.cast generally not necessary, only for performance critical paths + "TC006", # Add quotes to type expression in typing.cast() "TID252", # TEMPORARY DISABLED "N805", # TEMPORARY DISABLED "EXE002", # TEMPORARY DISABLED From 269b9f1090f09337996b01a39bb7a095deb609e4 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 2 Apr 2025 09:43:17 +0200 Subject: [PATCH 159/400] Bump aiohttp from 3.11.14 to 3.11.16 (#1117) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 702d7a8a..b7be9fc6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,7 +32,7 @@ version = "0.0.0" [project.optional-dependencies] server = [ - "aiohttp==3.11.14", + "aiohttp==3.11.16", "aiorun==2025.1.1", "async-timeout==5.0.1", "atomicwrites==1.4.1", From fca0856c6de492b00d7611924cf39306a3a01e37 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 2 Apr 2025 09:43:29 +0200 Subject: [PATCH 160/400] Bump zeroconf from 0.146.1 to 0.146.2 (#1118) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index b7be9fc6..310ece6f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -39,7 +39,7 @@ server = [ "coloredlogs==15.0.1", "cryptography==44.0.2", "orjson==3.10.16", - "zeroconf==0.146.1", + "zeroconf==0.146.2", "home-assistant-chip-core==2024.11.4", ] test = [ From 1f457e2c8600b90b2729dd88a3ea60ac48611926 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 2 Apr 2025 09:43:44 +0200 Subject: [PATCH 161/400] Bump pytest-cov from 6.0.0 to 6.1.0 (#1119) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 310ece6f..cb6d31c2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -53,7 +53,7 @@ test = [ "pytest==8.3.5", "pytest-asyncio==0.26.0", "pytest-aiohttp==1.1.0", - "pytest-cov==6.0.0", + "pytest-cov==6.1.0", "ruff==0.11.2", "tomli==2.2.1", ] From 3170042195ed962f0ab332d4dff571e76794dc76 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 7 Apr 2025 11:19:46 +0200 Subject: [PATCH 162/400] Bump ruff from 0.11.2 to 0.11.4 (#1122) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index cb6d31c2..3bcf2389 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,7 +54,7 @@ test = [ "pytest-asyncio==0.26.0", "pytest-aiohttp==1.1.0", "pytest-cov==6.1.0", - "ruff==0.11.2", + "ruff==0.11.4", "tomli==2.2.1", ] From e6bfef8024d99ca49ed97cc50fbd0a384483393c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 7 Apr 2025 12:27:53 +0200 Subject: [PATCH 163/400] Bump pytest-cov from 6.1.0 to 6.1.1 (#1123) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 3bcf2389..5b1a6d02 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -53,7 +53,7 @@ test = [ "pytest==8.3.5", "pytest-asyncio==0.26.0", "pytest-aiohttp==1.1.0", - "pytest-cov==6.1.0", + "pytest-cov==6.1.1", "ruff==0.11.4", "tomli==2.2.1", ] From 960f6881f3585e91465b5012972b0bb02e7865f5 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 7 Apr 2025 12:34:23 +0200 Subject: [PATCH 164/400] Bump zeroconf from 0.146.2 to 0.146.3 (#1124) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 5b1a6d02..3fe71e7e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -39,7 +39,7 @@ server = [ "coloredlogs==15.0.1", "cryptography==44.0.2", "orjson==3.10.16", - "zeroconf==0.146.2", + "zeroconf==0.146.3", "home-assistant-chip-core==2024.11.4", ] test = [ From 9fbf15017cb78d75d6975be5a690f14686dfa347 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 9 Apr 2025 20:55:22 +0200 Subject: [PATCH 165/400] Bump home-assistant-chip-core from 2024.11.4 to 2025.4.0 (#1125) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Stefan Agner --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 3fe71e7e..fbf4454c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -20,7 +20,7 @@ dependencies = [ "async-timeout", "coloredlogs", "orjson", - "home-assistant-chip-clusters==2024.11.4", + "home-assistant-chip-clusters==2025.4.0", ] description = "Open Home Foundation Matter Server" license = {text = "Apache-2.0"} @@ -40,7 +40,7 @@ server = [ "cryptography==44.0.2", "orjson==3.10.16", "zeroconf==0.146.3", - "home-assistant-chip-core==2024.11.4", + "home-assistant-chip-core==2025.4.0", ] test = [ "aioresponses==0.7.8", From 679dcd60397cb66192de75b4d6170d375324c33c Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Thu, 10 Apr 2025 11:28:29 +0200 Subject: [PATCH 166/400] Always use multicasts for service discovery (#1127) --- matter_server/server/device_controller.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/matter_server/server/device_controller.py b/matter_server/server/device_controller.py index da791cc1..cfb9b133 100644 --- a/matter_server/server/device_controller.py +++ b/matter_server/server/device_controller.py @@ -24,7 +24,13 @@ from chip.discovery import DiscoveryType from chip.exceptions import ChipStackError from chip.native import PyChipError -from zeroconf import BadTypeInNameException, IPVersion, ServiceStateChange, Zeroconf +from zeroconf import ( + BadTypeInNameException, + DNSQuestionType, + IPVersion, + ServiceStateChange, + Zeroconf, +) from zeroconf.asyncio import AsyncServiceBrowser, AsyncServiceInfo, AsyncZeroconf from matter_server.common.const import VERBOSE_LOG_LEVEL @@ -220,6 +226,7 @@ async def start(self) -> None: self._aiozc.zeroconf, services, handlers=[self._on_mdns_service_state_change], + question_type=DNSQuestionType.QM, ) async def stop(self) -> None: From 4eeef77e2c27d86941276394f7ee9224e8bdb11e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 14 Apr 2025 11:41:19 +0200 Subject: [PATCH 167/400] Bump ruff from 0.11.4 to 0.11.5 (#1130) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index fbf4454c..2b457850 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,7 +54,7 @@ test = [ "pytest-asyncio==0.26.0", "pytest-aiohttp==1.1.0", "pytest-cov==6.1.1", - "ruff==0.11.4", + "ruff==0.11.5", "tomli==2.2.1", ] From 77655deccf1bc284fd58d509a52132edf750bbc3 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 21 Apr 2025 16:36:48 +0200 Subject: [PATCH 168/400] Bump ruff from 0.11.5 to 0.11.6 (#1132) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 2b457850..1c704e94 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,7 +54,7 @@ test = [ "pytest-asyncio==0.26.0", "pytest-aiohttp==1.1.0", "pytest-cov==6.1.1", - "ruff==0.11.5", + "ruff==0.11.6", "tomli==2.2.1", ] From 1143c6cfa9df9140de00a13847fe141ef3c7f9f7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 21 Apr 2025 16:40:31 +0200 Subject: [PATCH 169/400] Bump zeroconf from 0.146.3 to 0.146.5 (#1131) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 1c704e94..eeeb7b75 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -39,7 +39,7 @@ server = [ "coloredlogs==15.0.1", "cryptography==44.0.2", "orjson==3.10.16", - "zeroconf==0.146.3", + "zeroconf==0.146.5", "home-assistant-chip-core==2025.4.0", ] test = [ From f61554a7c5823b2105472b9bfaac632fd28fa784 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 24 Apr 2025 15:26:00 +0200 Subject: [PATCH 170/400] Bump actions/setup-python from 5.5.0 to 5.6.0 (#1133) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 2 +- .github/workflows/test.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fdba99a6..ae5ff0f1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,7 +32,7 @@ jobs: fi fi - name: Set up Python ${{ env.PYTHON_VERSION }} - uses: actions/setup-python@v5.5.0 + uses: actions/setup-python@v5.6.0 with: python-version: ${{ env.PYTHON_VERSION }} - name: Set up Node ${{ env.NODE_VERSION }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 485fa160..78ba9bad 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,7 +18,7 @@ jobs: - name: Check out code from GitHub uses: actions/checkout@v4.2.2 - name: Set up Python - uses: actions/setup-python@v5.5.0 + uses: actions/setup-python@v5.6.0 with: python-version: "3.11" - name: Install dependencies @@ -45,7 +45,7 @@ jobs: - name: Check out code from GitHub uses: actions/checkout@v4.2.2 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5.5.0 + uses: actions/setup-python@v5.6.0 with: python-version: ${{ matrix.python-version }} - name: Install dependencies From 13c5cb032645050e3f22ae87904a2f5142973b91 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 25 Apr 2025 10:13:24 +0200 Subject: [PATCH 171/400] Bump docker/build-push-action from 6.15.0 to 6.16.0 (#1134) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ae5ff0f1..390a77f4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -95,7 +95,7 @@ jobs: echo "minor=${patch%.*}" >> $GITHUB_OUTPUT echo "major=${patch%.*.*}" >> $GITHUB_OUTPUT - name: Build and Push release - uses: docker/build-push-action@v6.15.0 + uses: docker/build-push-action@v6.16.0 if: github.event.release.prerelease == false with: context: . @@ -109,7 +109,7 @@ jobs: push: true build-args: "PYTHON_MATTER_SERVER=${{ needs.build-and-publish-pypi.outputs.version }}" - name: Build and Push pre-release - uses: docker/build-push-action@v6.15.0 + uses: docker/build-push-action@v6.16.0 if: github.event.release.prerelease == true with: context: . From d364a1ed8777163252bb04d0a65bdec9c16517ef Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 28 Apr 2025 11:34:54 +0200 Subject: [PATCH 172/400] Bump aiohttp from 3.11.16 to 3.11.18 (#1135) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index eeeb7b75..11f92b19 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,7 +32,7 @@ version = "0.0.0" [project.optional-dependencies] server = [ - "aiohttp==3.11.16", + "aiohttp==3.11.18", "aiorun==2025.1.1", "async-timeout==5.0.1", "atomicwrites==1.4.1", From 10a92e1c3b9a0ba9191328db2d4067c1506ac738 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 28 Apr 2025 11:35:26 +0200 Subject: [PATCH 173/400] Bump ruff from 0.11.6 to 0.11.7 (#1136) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 11f92b19..ab16e16d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,7 +54,7 @@ test = [ "pytest-asyncio==0.26.0", "pytest-aiohttp==1.1.0", "pytest-cov==6.1.1", - "ruff==0.11.6", + "ruff==0.11.7", "tomli==2.2.1", ] From 3413467b66f5d697e710652ba51abc39e58ec6d1 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 5 May 2025 11:01:37 +0200 Subject: [PATCH 174/400] Bump orjson from 3.10.16 to 3.10.18 (#1142) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index ab16e16d..ffaaf0e1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,7 +38,7 @@ server = [ "atomicwrites==1.4.1", "coloredlogs==15.0.1", "cryptography==44.0.2", - "orjson==3.10.16", + "orjson==3.10.18", "zeroconf==0.146.5", "home-assistant-chip-core==2025.4.0", ] From 687b3fb7f8a1c04e94eac863028471e9fb093899 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 5 May 2025 11:08:23 +0200 Subject: [PATCH 175/400] Bump zeroconf from 0.146.5 to 0.147.0 (#1140) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index ffaaf0e1..f8716eb1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -39,7 +39,7 @@ server = [ "coloredlogs==15.0.1", "cryptography==44.0.2", "orjson==3.10.18", - "zeroconf==0.146.5", + "zeroconf==0.147.0", "home-assistant-chip-core==2025.4.0", ] test = [ From a9d2c378924a5856a207d70d538f88b94b58fb81 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 5 May 2025 11:08:32 +0200 Subject: [PATCH 176/400] Bump cryptography from 44.0.2 to 44.0.3 (#1141) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index f8716eb1..5bd57a7b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,7 +37,7 @@ server = [ "async-timeout==5.0.1", "atomicwrites==1.4.1", "coloredlogs==15.0.1", - "cryptography==44.0.2", + "cryptography==44.0.3", "orjson==3.10.18", "zeroconf==0.147.0", "home-assistant-chip-core==2025.4.0", From 3d68fd79478a2d49514c601df6ffcc2974d4f810 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 5 May 2025 11:13:23 +0200 Subject: [PATCH 177/400] Bump ruff from 0.11.7 to 0.11.8 (#1139) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 5bd57a7b..f1ea31f4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,7 +54,7 @@ test = [ "pytest-asyncio==0.26.0", "pytest-aiohttp==1.1.0", "pytest-cov==6.1.1", - "ruff==0.11.7", + "ruff==0.11.8", "tomli==2.2.1", ] From 6119ab5eebe930276b628ec85ae0e9530c7f2884 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 5 May 2025 11:14:05 +0200 Subject: [PATCH 178/400] Bump pylint from 3.3.6 to 3.3.7 (#1138) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index f1ea31f4..ca33c528 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -49,7 +49,7 @@ test = [ "mypy==1.15.0", "pre-commit==4.2.0", "pre-commit-hooks==5.0.0", - "pylint==3.3.6", + "pylint==3.3.7", "pytest==8.3.5", "pytest-asyncio==0.26.0", "pytest-aiohttp==1.1.0", From d08e5bbed66556c4faa25337ddc306f986e0b004 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Wed, 7 May 2025 15:50:21 +0200 Subject: [PATCH 179/400] Bump OTA Provider to 2025.5.0 (#1143) --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index d82fb07f..fed4062c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,7 +26,7 @@ RUN \ ARG PYTHON_MATTER_SERVER -ENV chip_example_url "https://github.com/home-assistant-libs/matter-linux-ota-provider/releases/download/2024.7.2" +ENV chip_example_url "https://github.com/home-assistant-libs/matter-linux-ota-provider/releases/download/2025.5.0" ARG TARGETPLATFORM RUN \ From e0573703b8714d727b22ba7f8472fb78367efc59 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Wed, 7 May 2025 17:53:10 +0200 Subject: [PATCH 180/400] Remove unnecessary libgirepository dependency (#1147) --- .github/workflows/test.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 78ba9bad..d02de551 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -24,7 +24,6 @@ jobs: - name: Install dependencies run: | sudo apt-get update - sudo apt-get install -y libgirepository1.0-dev python -m pip install --upgrade pip pip install -e .[server] pip install -e .[test] From 81687efa402f5df72716551841996603be6832eb Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Wed, 7 May 2025 17:57:33 +0200 Subject: [PATCH 181/400] Bump to Python 3.12 (#1146) --- .github/workflows/release.yml | 2 +- .github/workflows/test.yml | 4 ++-- pyproject.toml | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 390a77f4..ba561e1d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,7 +4,7 @@ on: release: types: [published] env: - PYTHON_VERSION: "3.11" + PYTHON_VERSION: "3.12" NODE_VERSION: "18.x" jobs: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d02de551..4c680bf8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,7 +20,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5.6.0 with: - python-version: "3.11" + python-version: "3.12" - name: Install dependencies run: | sudo apt-get update @@ -37,8 +37,8 @@ jobs: fail-fast: false matrix: python-version: - - "3.11" - "3.12" + - "3.13" steps: - name: Check out code from GitHub diff --git a/pyproject.toml b/pyproject.toml index ca33c528..9d88ed7a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,11 +7,11 @@ authors = [ {name = "The Home Assistant Authors", email = "hello@home-assistant.io"}, ] classifiers = [ - "Development Status :: 3 - Alpha", + "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "Environment :: Console", - "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "Topic :: Home Automation", ] dependencies = [ @@ -26,7 +26,7 @@ description = "Open Home Foundation Matter Server" license = {text = "Apache-2.0"} name = "python-matter-server" readme = "README.md" -requires-python = ">=3.11" +requires-python = ">=3.12" # The version is set by GH action on release! version = "0.0.0" From 4f0c27c1581c94bc585710ac732675081fca4e9a Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Wed, 7 May 2025 19:08:56 +0200 Subject: [PATCH 182/400] Drop temporary workaround for Poll Control (#1145) --- scripts/generate_devices.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/scripts/generate_devices.py b/scripts/generate_devices.py index 725fc34b..8fb4d321 100644 --- a/scripts/generate_devices.py +++ b/scripts/generate_devices.py @@ -113,9 +113,6 @@ def __hash__(self) -> int: # It's optional server cluster or cluster["@serverLocked"] == "false" ) - # Temporary: PollControl will be removed from matter_devices.xml - # https://github.com/project-chip/connectedhomeip/pull/22718 - and cluster["@cluster"] != "Poll Control" ) + ",}" # extra comma to force black to do a cluster per line ) From 3756178cfc1f947cfd05e3172f2886538f2dbbfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20BOU=C3=89?= Date: Thu, 8 May 2025 09:28:33 +0200 Subject: [PATCH 183/400] Add Mounted device types (1.4) (#1137) --- dashboard/src/client/models/descriptions.ts | 22 +++++++++++++++++++ matter_server/client/models/device_types.py | 24 +++++++++++++++++++++ 2 files changed, 46 insertions(+) diff --git a/dashboard/src/client/models/descriptions.ts b/dashboard/src/client/models/descriptions.ts index 5f8bdb30..89d7af06 100644 --- a/dashboard/src/client/models/descriptions.ts +++ b/dashboard/src/client/models/descriptions.ts @@ -135,6 +135,28 @@ export const device_types: Record = { 98 ] }, + "271": { + "id": 271, + "label": "Mounted On/Off Control", + "clusters": [ + 98, + 3, + 4, + 6, + 8 + ] + }, + "272": { + "id": 272, + "label": "Mounted Dimmable Load Control", + "clusters": [ + 98, + 3, + 4, + 6, + 8 + ] + }, "268": { "id": 268, "label": "Color Temperature Light", diff --git a/matter_server/client/models/device_types.py b/matter_server/client/models/device_types.py index e43a5fe5..1b93fa45 100644 --- a/matter_server/client/models/device_types.py +++ b/matter_server/client/models/device_types.py @@ -154,6 +154,30 @@ class DimmableLight(DeviceType, device_type=0x0101): } +class MountedOnOffControl(DeviceType, device_type=0x010F): + """Mounted On/Off Control.""" + + clusters = { + all_clusters.Groups, + all_clusters.Identify, + all_clusters.LevelControl, + all_clusters.OnOff, + all_clusters.ScenesManagement, + } + + +class MountedDimmableLoadControl(DeviceType, device_type=0x0110): + """Mounted Dimmable Load Control.""" + + clusters = { + all_clusters.Groups, + all_clusters.Identify, + all_clusters.LevelControl, + all_clusters.OnOff, + all_clusters.ScenesManagement, + } + + class ColorTemperatureLight(DeviceType, device_type=0x010C): """Color Temperature Light.""" From 747a32043dc84e77024a48ba4bb68084cac30e83 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Thu, 8 May 2025 11:00:49 +0200 Subject: [PATCH 184/400] Improve Matter DNS-SD service parsing (#1144) Co-authored-by: Martin Hjelmare --- .pre-commit-config.yaml | 4 +- matter_server/server/device_controller.py | 46 +++++++++++++++-------- matter_server/server/server.py | 23 ++++++++---- tests/test_device_controller.py | 39 +++++++++++++++++++ 4 files changed, 88 insertions(+), 24 deletions(-) create mode 100644 tests/test_device_controller.py diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b870673d..be2d4979 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -85,7 +85,9 @@ repos: name: ๐ŸŒŸ Starring code with pylint language: system types: [python] - entry: scripts/run-in-env.sh pylint + entry: scripts/run-in-env.sh pylint matter_server/ tests/ + require_serial: true + pass_filenames: false - id: trailing-whitespace name: โœ„ Trim Trailing Whitespace language: system diff --git a/matter_server/server/device_controller.py b/matter_server/server/device_controller.py index cfb9b133..0e344c84 100644 --- a/matter_server/server/device_controller.py +++ b/matter_server/server/device_controller.py @@ -13,6 +13,7 @@ from datetime import datetime from functools import cached_property, lru_cache import logging +import re import secrets import time from typing import TYPE_CHECKING, Any, cast @@ -128,6 +129,10 @@ 0, Clusters.IcdManagement.Attributes.AttributeList ) +RE_MDNS_SERVICE_NAME = re.compile( + rf"^([0-9A-Fa-f]{{16}})-([0-9A-Fa-f]{{16}})\.{re.escape(MDNS_TYPE_OPERATIONAL_NODE)}$" +) + # pylint: disable=too-many-lines,too-many-instance-attributes,too-many-public-methods @@ -152,7 +157,6 @@ def __init__( # we keep the last events in memory so we can include them in the diagnostics dump self.event_history: deque[Attribute.EventReadResult] = deque(maxlen=25) self._compressed_fabric_id: int | None = None - self._fabric_id_hex: str | None = None self._wifi_credentials_set: bool = False self._thread_credentials_set: bool = False self._setup_node_tasks = dict[int, asyncio.Task]() @@ -179,7 +183,6 @@ async def initialize(self) -> None: self._compressed_fabric_id = ( await self._chip_device_controller.get_compressed_fabric_id() ) - self._fabric_id_hex = hex(self._compressed_fabric_id)[2:] await load_local_updates(self._ota_provider_dir) async def start(self) -> None: @@ -245,8 +248,10 @@ async def stop(self) -> None: LOGGER.debug("Stopped.") @property - def compressed_fabric_id(self) -> int | None: + def compressed_fabric_id(self) -> int: """Return the compressed fabric id.""" + if self._compressed_fabric_id is None: + raise RuntimeError("Compressed Fabric ID not set") return self._compressed_fabric_id @property @@ -1524,25 +1529,36 @@ def _on_mdns_service_state_change( ) return - if service_type == MDNS_TYPE_OPERATIONAL_NODE: - if self._fabric_id_hex is None or self._fabric_id_hex not in name.lower(): - # filter out messages that are not for our fabric - return - # process the event with a debounce timer + if service_type != MDNS_TYPE_OPERATIONAL_NODE: + return + + if not (match := RE_MDNS_SERVICE_NAME.match(name)): + LOGGER.getChild("mdns").warning( + "Service name doesn't match expected operational node pattern: %s", name + ) + return + + fabric_id_hex, node_id_hex = match.groups() + + # Filter messages of other fabrics + if int(fabric_id_hex, 16) != self.compressed_fabric_id: + return + + # Process the event with a debounce timer self._mdns_event_timer[name] = self._loop.call_later( - 0.5, self._on_mdns_operational_node_state, name, state_change + 0.5, + self._on_mdns_operational_node_state, + name, + int(node_id_hex, 16), + state_change, ) def _on_mdns_operational_node_state( - self, name: str, state_change: ServiceStateChange + self, name: str, node_id: int, state_change: ServiceStateChange ) -> None: """Handle a (operational) Matter node MDNS state change.""" self._mdns_event_timer.pop(name, None) - logger = LOGGER.getChild("mdns") - # the mdns name is constructed as [fabricid]-[nodeid]._matter._tcp.local. - # extract the node id from the name - node_id = int(name.split("-")[1].split(".")[0], 16) - node_logger = self.get_node_logger(logger, node_id) + node_logger = self.get_node_logger(LOGGER.getChild("mdns"), node_id) if not (node := self._nodes.get(node_id)): return # this should not happen, but guard just in case diff --git a/matter_server/server/server.py b/matter_server/server/server.py index 7fd96f22..7e04ff84 100644 --- a/matter_server/server/server.py +++ b/matter_server/server/server.py @@ -4,6 +4,7 @@ import asyncio from functools import cached_property, partial +import inspect import ipaddress import logging import os @@ -315,18 +316,24 @@ def register_api_command( def _register_api_commands(self) -> None: """Register all methods decorated as api_command.""" - for cls in (self, self._device_controller, self.vendor_info): - for attr_name in dir(cls): + for obj in (self, self._device_controller, self.vendor_info): + cls = obj.__class__ + for attr_name, attr in inspect.getmembers(cls): if attr_name.startswith("_"): continue - val = getattr(cls, attr_name) - if not hasattr(val, "api_cmd"): + + if isinstance(attr, property): + continue # skip properties + + # attr is the (unbound) function, we can check for the decorator + if not hasattr(attr, "api_cmd"): continue - if hasattr(val, "mock_calls"): - # filter out mocks + if hasattr(attr, "mock_calls"): continue - # method is decorated with our api decorator - self.register_api_command(val.api_cmd, val) + + # Get the instance method before registering + bound_method = getattr(obj, attr_name) + self.register_api_command(attr.api_cmd, bound_method) async def _handle_info(self, request: web.Request) -> web.Response: """Handle info endpoint to serve basic server (version) info.""" diff --git a/tests/test_device_controller.py b/tests/test_device_controller.py new file mode 100644 index 00000000..eb142595 --- /dev/null +++ b/tests/test_device_controller.py @@ -0,0 +1,39 @@ +"""Device controller tests.""" + +import pytest + +from matter_server.server.device_controller import RE_MDNS_SERVICE_NAME + + +@pytest.mark.parametrize( + ("name", "expected"), + [ + ( + "D22DC25523A78A89-0000000000000125._matter._tcp.local.", + ("D22DC25523A78A89", "0000000000000125"), + ), + ( + "d22dc25523a78a89-0000000000000125._matter._tcp.local.", + ("d22dc25523a78a89", "0000000000000125"), + ), + ], +) +def test_valid_mdns_service_names(name, expected): + """Test valid mDNS service names.""" + match = RE_MDNS_SERVICE_NAME.match(name) + assert match is not None + assert match.groups() == expected + + +@pytest.mark.parametrize( + "name", + [ + "D22DC25523A78A89-0000000000000125 (2)._matter._tcp.local.", + "D22DC25523A78A89-0000000000000125.._matter._tcp.local.", + "G22DC25523A78A89-0000000000000125._matter._tcp.local.", # invalid hex + "D22DC25523A78A89-0000000000000125._matterc._udp.local.", + ], +) +def test_invalid_mdns_service_names(name): + """Test invalid mDNS service names.""" + assert RE_MDNS_SERVICE_NAME.match(name) is None From f15e17af324567f4bdac5a2c1db8b44c1cbeed9d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 12 May 2025 10:49:37 +0200 Subject: [PATCH 185/400] Bump ruff from 0.11.8 to 0.11.9 (#1149) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 9d88ed7a..cd8ec4a3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,7 +54,7 @@ test = [ "pytest-asyncio==0.26.0", "pytest-aiohttp==1.1.0", "pytest-cov==6.1.1", - "ruff==0.11.8", + "ruff==0.11.9", "tomli==2.2.1", ] From 1fb1e8649607993b51bdb5f7b40823e34f8999a1 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 16 May 2025 11:19:27 +0200 Subject: [PATCH 186/400] Bump docker/build-push-action from 6.16.0 to 6.17.0 (#1150) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ba561e1d..8c2676bd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -95,7 +95,7 @@ jobs: echo "minor=${patch%.*}" >> $GITHUB_OUTPUT echo "major=${patch%.*.*}" >> $GITHUB_OUTPUT - name: Build and Push release - uses: docker/build-push-action@v6.16.0 + uses: docker/build-push-action@v6.17.0 if: github.event.release.prerelease == false with: context: . @@ -109,7 +109,7 @@ jobs: push: true build-args: "PYTHON_MATTER_SERVER=${{ needs.build-and-publish-pypi.outputs.version }}" - name: Build and Push pre-release - uses: docker/build-push-action@v6.16.0 + uses: docker/build-push-action@v6.17.0 if: github.event.release.prerelease == true with: context: . From a72c819e68d9eacabeb49a6606ede1a54cb8be00 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 19 May 2025 10:11:38 +0200 Subject: [PATCH 187/400] Bump cryptography from 44.0.3 to 45.0.2 (#1154) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index cd8ec4a3..8ec8eb74 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,7 +37,7 @@ server = [ "async-timeout==5.0.1", "atomicwrites==1.4.1", "coloredlogs==15.0.1", - "cryptography==44.0.3", + "cryptography==45.0.2", "orjson==3.10.18", "zeroconf==0.147.0", "home-assistant-chip-core==2025.4.0", From e3b0443fe068d99df812b085acfcbe484fe9a058 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 19 May 2025 10:12:50 +0200 Subject: [PATCH 188/400] Bump ruff from 0.11.9 to 0.11.10 (#1153) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 8ec8eb74..67ca1cf5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,7 +54,7 @@ test = [ "pytest-asyncio==0.26.0", "pytest-aiohttp==1.1.0", "pytest-cov==6.1.1", - "ruff==0.11.9", + "ruff==0.11.10", "tomli==2.2.1", ] From e8cae9f19aca9cef5a58029be263ca59562657af Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 28 May 2025 11:29:02 +0200 Subject: [PATCH 189/400] Bump docker/build-push-action from 6.17.0 to 6.18.0 (#1157) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8c2676bd..bea44150 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -95,7 +95,7 @@ jobs: echo "minor=${patch%.*}" >> $GITHUB_OUTPUT echo "major=${patch%.*.*}" >> $GITHUB_OUTPUT - name: Build and Push release - uses: docker/build-push-action@v6.17.0 + uses: docker/build-push-action@v6.18.0 if: github.event.release.prerelease == false with: context: . @@ -109,7 +109,7 @@ jobs: push: true build-args: "PYTHON_MATTER_SERVER=${{ needs.build-and-publish-pypi.outputs.version }}" - name: Build and Push pre-release - uses: docker/build-push-action@v6.17.0 + uses: docker/build-push-action@v6.18.0 if: github.event.release.prerelease == true with: context: . From 9f9ca1deba7974bdbcda896fd1f6cd7a21243d4a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 2 Jun 2025 11:31:07 +0200 Subject: [PATCH 190/400] Bump ruff from 0.11.10 to 0.11.12 (#1160) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 67ca1cf5..88d585be 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,7 +54,7 @@ test = [ "pytest-asyncio==0.26.0", "pytest-aiohttp==1.1.0", "pytest-cov==6.1.1", - "ruff==0.11.10", + "ruff==0.11.12", "tomli==2.2.1", ] From 61451ede860afe29f341a1ea91d727ecf5d2c084 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 2 Jun 2025 11:32:39 +0200 Subject: [PATCH 191/400] Bump mypy from 1.15.0 to 1.16.0 (#1161) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 88d585be..4e0c61a0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -46,7 +46,7 @@ test = [ "aioresponses==0.7.8", "codespell==2.4.1", "isort==6.0.1", - "mypy==1.15.0", + "mypy==1.16.0", "pre-commit==4.2.0", "pre-commit-hooks==5.0.0", "pylint==3.3.7", From 449987edc29fad4f9a30638f255a234756722a3d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 2 Jun 2025 11:54:36 +0200 Subject: [PATCH 192/400] Bump cryptography from 45.0.2 to 45.0.3 (#1162) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 4e0c61a0..57c5c719 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,7 +37,7 @@ server = [ "async-timeout==5.0.1", "atomicwrites==1.4.1", "coloredlogs==15.0.1", - "cryptography==45.0.2", + "cryptography==45.0.3", "orjson==3.10.18", "zeroconf==0.147.0", "home-assistant-chip-core==2025.4.0", From ef585f006f1bce84a5ac21bb702fed3c65ebb1cc Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 2 Jun 2025 11:55:16 +0200 Subject: [PATCH 193/400] Bump aiohttp from 3.11.18 to 3.12.6 (#1163) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 57c5c719..a91d5e59 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,7 +32,7 @@ version = "0.0.0" [project.optional-dependencies] server = [ - "aiohttp==3.11.18", + "aiohttp==3.12.6", "aiorun==2025.1.1", "async-timeout==5.0.1", "atomicwrites==1.4.1", From 9a006602b966507ae5cf72397530a33867835e92 Mon Sep 17 00:00:00 2001 From: Luxni <307993459@qq.com> Date: Thu, 5 Jun 2025 20:55:16 +0800 Subject: [PATCH 194/400] Add node binding dialog. (#1155) --- dashboard/note.md | 12 + dashboard/src/client/client.ts | 15 + dashboard/src/client/models/model.ts | 8 + dashboard/src/components/dialogs/acl/model.ts | 109 ++++++ .../src/components/dialogs/binding/model.ts | 61 +++ .../dialogs/binding/node-binding-dialog.ts | 356 ++++++++++++++++++ .../binding/show-node-binding-dialog.ts | 17 + dashboard/src/pages/components/context.ts | 5 + .../src/pages/components/node-details.ts | 36 +- dashboard/src/pages/matter-cluster-view.ts | 6 +- matter_server/common/models.py | 2 + matter_server/server/device_controller.py | 25 +- 12 files changed, 649 insertions(+), 3 deletions(-) create mode 100644 dashboard/note.md create mode 100644 dashboard/src/components/dialogs/acl/model.ts create mode 100644 dashboard/src/components/dialogs/binding/model.ts create mode 100644 dashboard/src/components/dialogs/binding/node-binding-dialog.ts create mode 100644 dashboard/src/components/dialogs/binding/show-node-binding-dialog.ts create mode 100644 dashboard/src/pages/components/context.ts diff --git a/dashboard/note.md b/dashboard/note.md new file mode 100644 index 00000000..12a6d1b2 --- /dev/null +++ b/dashboard/note.md @@ -0,0 +1,12 @@ +``` +
+
${"privilege:" + entry.privilege}
+
${"authMode:" + entry.authMode}
+
${"fabricIndex:" + entry.fabricIndex}
+
+
subjects:${JSON.stringify(entry.subjects)}
+
targets:${JSON.stringify(entry.targets)}
+ +``` diff --git a/dashboard/src/client/client.ts b/dashboard/src/client/client.ts index 25625f68..19d0f5f6 100644 --- a/dashboard/src/client/client.ts +++ b/dashboard/src/client/client.ts @@ -143,6 +143,21 @@ export class MatterClient { await this.sendCommand("update_node", 10, { node_id: nodeId, software_version: softwareVersion }); } + async setACLEntry(nodeId: number, entry: any) { + return await this.sendCommand("set_acl_entry", 0, { + node_id: nodeId, + entry: entry, + }); + } + + async setNodeBinding(nodeId: number, endpoint: number, bindings: any) { + return await this.sendCommand("set_node_binding", 0, { + node_id: nodeId, + endpoint: endpoint, + bindings: bindings, + }); + } + async sendCommand( command: T, require_schema: number | undefined = undefined, diff --git a/dashboard/src/client/models/model.ts b/dashboard/src/client/models/model.ts index 2c04fe66..bb0ef517 100644 --- a/dashboard/src/client/models/model.ts +++ b/dashboard/src/client/models/model.ts @@ -105,6 +105,14 @@ export interface APICommands { requestArgs: {}; response: {}; }; + set_acl_entry: { + requestArgs: {}; + response: {}; + }; + set_node_binding: { + requestArgs: {}; + response: {}; + }; } export interface CommandMessage { diff --git a/dashboard/src/components/dialogs/acl/model.ts b/dashboard/src/components/dialogs/acl/model.ts new file mode 100644 index 00000000..88fa9816 --- /dev/null +++ b/dashboard/src/components/dialogs/acl/model.ts @@ -0,0 +1,109 @@ + +export type AccessControlEntryRawInput = { + "1": number; + "2": number; + "3": number[]; + "4": null; + "254": number; +}; + +export type AccessControlTargetStruct = { + cluster: number | undefined; + endpoint: number | undefined; + deviceType: number | undefined; +}; + +export type AccessControlEntryStruct = { + privilege: number; + authMode: number; + subjects: number[]; + targets: AccessControlTargetStruct[] | undefined; + fabricIndex: number; +}; + +export class AccessControlTargetTransformer { + private static readonly KEY_MAPPING: { + [inputKey: string]: keyof AccessControlTargetStruct; + } = { + "0": "cluster", + "1": "endpoint", + "2": "deviceType", + }; + + public static transform(input: any): AccessControlTargetStruct { + if (!input || typeof input !== "object") { + throw new Error("Invalid input: expected an object"); + } + + const result: Partial = {}; + const keyMapping = AccessControlTargetTransformer.KEY_MAPPING; + + for (const key in input) { + if (key in keyMapping) { + const mappedKey = keyMapping[key]; + if (mappedKey) { + const value = input[key]; + if (value === undefined) continue; + result[mappedKey] = value; + } + } + } + return result as AccessControlTargetStruct; + } +} + +export class AccessControlEntryDataTransformer { + private static readonly KEY_MAPPING: { + [inputKey: string]: keyof AccessControlEntryStruct; + } = { + "1": "privilege", + "2": "authMode", + "3": "subjects", + "4": "targets", + "254": "fabricIndex", + }; + + public static transform(input: any): AccessControlEntryStruct { + if (!input || typeof input !== "object") { + throw new Error("Invalid input: expected an object"); + } + + const result: Partial = {}; + const keyMapping = AccessControlEntryDataTransformer.KEY_MAPPING; + + for (const key in input) { + if (key in keyMapping) { + const mappedKey = keyMapping[key]; + if (mappedKey) { + const value = input[key]; + if (value === undefined) continue; + if (mappedKey === "subjects") { + result[mappedKey] = Array.isArray(value) ? value : undefined; + } else if (mappedKey === "targets") { + if (Array.isArray(value)) { + const _targets = Object.values(value).map((val) => + AccessControlTargetTransformer.transform(val), + ); + result[mappedKey] = _targets; + } else { + result[mappedKey] = undefined; + } + } else { + result[mappedKey] = value; + } + } + } + } + + if ( + result.privilege === undefined || + result.authMode === undefined || + result.subjects === undefined || + result.fabricIndex === undefined + ) { + throw new Error("Missing required fields in AccessControlEntryStruct"); + } + + return result as AccessControlEntryStruct; + } +} diff --git a/dashboard/src/components/dialogs/binding/model.ts b/dashboard/src/components/dialogs/binding/model.ts new file mode 100644 index 00000000..e1b224d3 --- /dev/null +++ b/dashboard/src/components/dialogs/binding/model.ts @@ -0,0 +1,61 @@ +export type InputType = { + [key: string]: number | number[] | undefined; +}; + +export interface BindingEntryStruct { + node: number; + group: number | undefined; + endpoint: number; + cluster: number | undefined; + fabricIndex: number | undefined; +} + +export class BindingEntryDataTransformer { + private static readonly KEY_MAPPING: { + [inputKey: string]: keyof BindingEntryStruct; + } = { + "1": "node", + "3": "endpoint", + "4": "cluster", + "254": "fabricIndex", + }; + + public static transform(input: any): BindingEntryStruct { + if (!input || typeof input !== "object") { + throw new Error("Invalid input: expected an object"); + } + + const result: Partial = {}; + const keyMapping = BindingEntryDataTransformer.KEY_MAPPING; + + for (const key in input) { + if (key in keyMapping) { + const mappedKey = keyMapping[key]; + if (mappedKey) { + const value = input[key]; + if (value === undefined) { + continue; + } + if (mappedKey === "fabricIndex") { + result[mappedKey] = value === undefined ? undefined : Number(value); + } else if (mappedKey === "node" || mappedKey === "endpoint") { + result[mappedKey] = Number(value); + } else { + result[mappedKey] = value as BindingEntryStruct[typeof mappedKey]; + } + } + } + } + + // Validate required fields + if ( + result.node === undefined || + result.endpoint === undefined || + result.fabricIndex === undefined + ) { + throw new Error("Missing required fields in BindingEntryStruct"); + } + + return result as BindingEntryStruct; + } +} diff --git a/dashboard/src/components/dialogs/binding/node-binding-dialog.ts b/dashboard/src/components/dialogs/binding/node-binding-dialog.ts new file mode 100644 index 00000000..2d7dc6db --- /dev/null +++ b/dashboard/src/components/dialogs/binding/node-binding-dialog.ts @@ -0,0 +1,356 @@ +import "@material/web/button/text-button"; +import "@material/web/dialog/dialog"; +import "@material/web/list/list"; +import "@material/web/list/list-item"; +import "../../../components/ha-svg-icon"; +import "@material/web/textfield/outlined-text-field"; +import type { MdOutlinedTextField } from "@material/web/textfield/outlined-text-field"; + +import { html, LitElement, css, nothing } from "lit"; +import { customElement, property, query } from "lit/decorators.js"; +import { MatterNode } from "../../../client/models/node"; +import { preventDefault } from "../../../util/prevent_default"; +import { MatterClient } from "../../../client/client"; +import { + InputType, + BindingEntryStruct, + BindingEntryDataTransformer, +} from "./model"; + +import { + AccessControlEntryDataTransformer, + AccessControlEntryStruct, + AccessControlTargetStruct, +} from "../acl/model"; + +import { consume } from "@lit/context"; +import { clientContext } from "../../../client/client-context"; + +@customElement("node-binding-dialog") +export class NodeBindingDialog extends LitElement { + @consume({ context: clientContext, subscribe: true }) + @property({ attribute: false }) + public client!: MatterClient; + + @property() + public node?: MatterNode; + + @property({ attribute: false }) + endpoint!: number; + + @query("md-outlined-text-field[label='node id']") + private _targetNodeId!: MdOutlinedTextField; + + @query("md-outlined-text-field[label='endpoint']") + private _targetEndpoint!: MdOutlinedTextField; + + @query("md-outlined-text-field[label='cluster']") + private _targetCluster!: MdOutlinedTextField; + + private fetchBindingEntry(): BindingEntryStruct[] { + const bindings_raw: [] = this.node!.attributes[this.endpoint + "/30/0"]; + return Object.values(bindings_raw).map((value) => + BindingEntryDataTransformer.transform(value), + ); + } + + private fetchACLEntry(targetNodeId: number): AccessControlEntryStruct[] { + const acl_cluster_raw: [InputType] = + this.client.nodes[targetNodeId].attributes["0/31/0"]; + + return Object.values(acl_cluster_raw).map((value: InputType) => + AccessControlEntryDataTransformer.transform(value), + ); + } + + private async deleteBindingHandler(index: number): Promise { + const rawBindings = this.fetchBindingEntry(); + try { + const targetNodeId = rawBindings[index].node; + await this.removeNodeAtACLEntry( + this.node!.node_id, + this.endpoint, + targetNodeId, + ); + const updatedBindings = this.removeBindingAtIndex(rawBindings, index); + await this.syncBindingUpdates(updatedBindings, index); + } catch (error) { + this.handleBindingDeletionError(error); + } + } + + private async removeNodeAtACLEntry( + sourceNodeId: number, + sourceEndpoint: number, + targetNodeId: number, + ): Promise { + const aclEntries = this.fetchACLEntry(targetNodeId); + + const updatedACLEntries = aclEntries + .map((entry) => + this.removeEntryAtACL(sourceNodeId, sourceEndpoint, entry), + ) + .filter((entry): entry is Exclude => entry !== null); + + console.log(updatedACLEntries); + await this.client.setACLEntry(targetNodeId, updatedACLEntries); + } + + private removeEntryAtACL( + nodeId: number, + sourceEndpoint: number, + entry: AccessControlEntryStruct, + ): AccessControlEntryStruct | null { + const hasSubject = entry.subjects!.includes(nodeId); + + if (!hasSubject) return entry; + + const hasTarget = entry.targets!.filter( + (item) => item.endpoint === sourceEndpoint, + ); + return hasTarget.length > 0 ? null : entry; + } + + private removeBindingAtIndex( + bindings: BindingEntryStruct[], + index: number, + ): BindingEntryStruct[] { + return [...bindings.slice(0, index), ...bindings.slice(index + 1)]; + } + + private async syncBindingUpdates( + updatedBindings: BindingEntryStruct[], + index: number, + ): Promise { + await this.client.setNodeBinding( + this.node!.node_id, + this.endpoint, + updatedBindings, + ); + + const attributePath = `${this.endpoint}/30/0`; + const updatedAttributes = { + ...this.node!.attributes, + [attributePath]: this.removeBindingAtIndex( + this.node!.attributes[attributePath], + index, + ), + }; + + this.node!.attributes = updatedAttributes; + this.requestUpdate(); + } + + private handleBindingDeletionError(error: unknown): void { + const errorMessage = error instanceof Error ? error.message : String(error); + console.error(`Binding deletion failed: ${errorMessage}`); + } + + private async _updateEntry( + targetId: number, + path: string, + entry: T, + transformFn: (value: InputType) => T, + updateFn: (targetId: number, entries: T[]) => Promise, + ) { + try { + const rawEntries: [InputType] = + this.client.nodes[targetId].attributes[path]; + const entries = Object.values(rawEntries).map(transformFn); + entries.push(entry); + return await updateFn(targetId, entries); + } catch (err) { + console.log(err); + } + } + + private async add_target_acl( + targetNodeId: number, + entry: AccessControlEntryStruct, + ) { + try { + const result = (await this._updateEntry( + targetNodeId, + "0/31/0", + entry, + AccessControlEntryDataTransformer.transform, + this.client.setACLEntry.bind(this.client), + )) as { [key: string]: { Status: number } }; + return result["0"].Status === 0; + } catch (err) { + console.error("add acl error:", err); + return false; + } + } + + private async add_bindings( + endpoint: number, + bindingEntry: BindingEntryStruct, + ) { + const bindings = this.fetchBindingEntry(); + bindings.push(bindingEntry); + try { + const result = (await this.client.setNodeBinding( + this.node!.node_id, + endpoint, + bindings, + )) as { [key: string]: { Status: number } }; + return result["0"].Status === 0; + } catch (err) { + console.log("add bindings error:", err); + return false; + } + } + + async addBindingHandler() { + const targetNodeId = parseInt(this._targetNodeId.value, 10); + const targetEndpoint = parseInt(this._targetEndpoint.value, 10); + const targetCluster = parseInt(this._targetCluster.value, 10); + + if (isNaN(targetNodeId) || targetNodeId <= 0) { + alert("Please enter a valid target node ID"); + return; + } + if (isNaN(targetEndpoint) || targetEndpoint < 0) { + alert("Please enter a valid target endpoint"); + return; + } + if (isNaN(targetCluster) || targetCluster < 0) { + alert("Please enter a valid target endpoint"); + return; + } + + const targets: AccessControlTargetStruct = { + endpoint: targetEndpoint, + cluster: targetCluster, + deviceType: undefined, + }; + + const acl_entry: AccessControlEntryStruct = { + privilege: 5, + authMode: 2, + subjects: [this.node!.node_id], + targets: [targets], + fabricIndex: this.client.connection.serverInfo!.fabric_id, + }; + const result_acl = await this.add_target_acl(targetNodeId, acl_entry); + if (!result_acl) return; + + const endpoint = this.endpoint; + const bindingEntry: BindingEntryStruct = { + node: targetNodeId, + endpoint: targetEndpoint, + group: undefined, + cluster: targetCluster, + fabricIndex: this.client.connection.serverInfo!.fabric_id, + }; + + const result_binding = await this.add_bindings(endpoint, bindingEntry); + + if (result_binding) { + this._targetNodeId.value = ""; + this._targetEndpoint.value = ""; + this._targetCluster.value = ""; + this.requestUpdate(); + } + } + + private _close() { + this.shadowRoot!.querySelector("md-dialog")!.close(); + } + + private _handleClosed() { + this.parentNode!.removeChild(this); + } + + protected render() { + const bindings = Object.values( + this.node!.attributes[this.endpoint + "/30/0"], + ).map((entry) => BindingEntryDataTransformer.transform(entry)); + + return html` + +
+
Binding
+
+
+
+ + ${Object.values(bindings).map( + (entry, index) => html` + +
+
node:${entry["node"]}
+
endpoint:${entry["endpoint"]}
+ ${entry["cluster"] ? html`
cluster:${entry["cluster"]}
` : nothing} +
+
+ this.deleteBindingHandler(index)} + >delete + + `, + )} + +
+
target
+ + + +
+
+
+
+ Add + Cancel +
+ + `; + } + + static styles = css` + .inline-group { + display: flex; + border: 2px solid #673ab7; + padding: 1px; + border-radius: 8px; + position: relative; + margin: 8px; + } + + .target-item { + display: inline-block; + padding: 20px 10px 10px 10px; + border-radius: 4px; + vertical-align: middle; + min-width: 80px; + text-align: center; + } + + .group-label { + position: absolute; + left: 15px; + top: -12px; + background: #673ab7; + color: white; + padding: 3px 15px; + border-radius: 4px; + } + `; +} + +declare global { + interface HTMLElementTagNameMap { + "node-binding-dialog": NodeBindingDialog; + } +} diff --git a/dashboard/src/components/dialogs/binding/show-node-binding-dialog.ts b/dashboard/src/components/dialogs/binding/show-node-binding-dialog.ts new file mode 100644 index 00000000..22351d8b --- /dev/null +++ b/dashboard/src/components/dialogs/binding/show-node-binding-dialog.ts @@ -0,0 +1,17 @@ +import { MatterClient } from "../../../client/client"; +import { MatterNode } from "../../../client/models/node"; + +export const showNodeBindingDialog = async ( + client: MatterClient, + node: MatterNode, + endpoint: number, +) => { + await import("./node-binding-dialog"); + const dialog = document.createElement("node-binding-dialog"); + dialog.client = client; + dialog.node = node; + dialog.endpoint = endpoint; + document + .querySelector("matter-dashboard-app") + ?.renderRoot.appendChild(dialog); +}; diff --git a/dashboard/src/pages/components/context.ts b/dashboard/src/pages/components/context.ts new file mode 100644 index 00000000..f0a0c7d6 --- /dev/null +++ b/dashboard/src/pages/components/context.ts @@ -0,0 +1,5 @@ + +import { createContext } from "@lit/context"; + +// export const bindingContext = createContext(""); +export const bindingContext = createContext("binding"); diff --git a/dashboard/src/pages/components/node-details.ts b/dashboard/src/pages/components/node-details.ts index 437c9aeb..8cea5ce0 100644 --- a/dashboard/src/pages/components/node-details.ts +++ b/dashboard/src/pages/components/node-details.ts @@ -5,7 +5,15 @@ import "@material/web/divider/divider"; import "@material/web/iconbutton/icon-button"; import "@material/web/list/list"; import "@material/web/list/list-item"; -import { mdiChatProcessing, mdiShareVariant, mdiTrashCan, mdiUpdate } from "@mdi/js"; +import { + mdiChatProcessing, + mdiShareVariant, + mdiTrashCan, + mdiUpdate, + mdiLink, +} from "@mdi/js"; + +import { consume } from "@lit/context"; import { LitElement, css, html, nothing } from "lit"; import { customElement, property, state } from "lit/decorators.js"; import { MatterClient } from "../../client/client"; @@ -17,6 +25,8 @@ import { } from "../../components/dialog-box/show-dialog-box"; import "../../components/ha-svg-icon"; import { getEndpointDeviceTypes } from "../matter-endpoint-view"; +import { bindingContext } from "./context"; +import { showNodeBindingDialog } from "../../components/dialogs/binding/show-node-binding-dialog"; function getNodeDeviceTypes(node: MatterNode): DeviceType[] { const uniqueEndpoints = new Set( @@ -40,8 +50,15 @@ export class NodeDetails extends LitElement { @state() private _updateInitiated: boolean = false; + @consume({ context: bindingContext }) + @property({ attribute: false }) + endpoint!: number; + protected render() { if (!this.node) return html``; + + const bindings = this.node.attributes[this.endpoint + "/30/0"]; + return html` @@ -90,6 +107,15 @@ export class NodeDetails extends LitElement { Update in progress (${this.node.updateStateProgress || 0}%)` : html`Update`} + ${bindings + ? html` + + Binding + + + ` + : nothing} + Share Remove @@ -144,6 +170,14 @@ export class NodeDetails extends LitElement { } } + private async _binding() { + try { + showNodeBindingDialog(this.client!, this.node!, this.endpoint!); + } catch (err: any) { + console.log(err); + } + } + private async _searchUpdate() { const nodeUpdate = await this.client.checkNodeUpdate(this.node!.node_id); if (!nodeUpdate) { diff --git a/dashboard/src/pages/matter-cluster-view.ts b/dashboard/src/pages/matter-cluster-view.ts index f604531a..3ca3ea4a 100644 --- a/dashboard/src/pages/matter-cluster-view.ts +++ b/dashboard/src/pages/matter-cluster-view.ts @@ -9,6 +9,9 @@ import { clusters } from "../client/models/descriptions"; import { MatterNode } from "../client/models/node"; import { showAlertDialog } from "../components/dialog-box/show-dialog-box"; import "../components/ha-svg-icon"; +import "../pages/components/node-details"; +import { provide } from "@lit/context"; +import { bindingContext } from "./components/context"; declare global { interface HTMLElementTagNameMap { @@ -37,8 +40,9 @@ class MatterClusterView extends LitElement { @property() public node?: MatterNode; + @provide({ context: bindingContext }) @property() - public endpoint?: number; + public endpoint!: number; @property() public cluster?: number; diff --git a/matter_server/common/models.py b/matter_server/common/models.py index 56d3fb1d..fb897502 100644 --- a/matter_server/common/models.py +++ b/matter_server/common/models.py @@ -51,6 +51,8 @@ class APICommand(str, Enum): CHECK_NODE_UPDATE = "check_node_update" UPDATE_NODE = "update_node" SET_DEFAULT_FABRIC_LABEL = "set_default_fabric_label" + SET_ACL_ENTRY = "set_acl_entry" + SET_NODE_BINDING = "set_node_binding" EventCallBackType = Callable[[EventType, Any], None] diff --git a/matter_server/server/device_controller.py b/matter_server/server/device_controller.py index 0e344c84..492c36b6 100644 --- a/matter_server/server/device_controller.py +++ b/matter_server/server/device_controller.py @@ -20,7 +20,7 @@ from chip.ChipDeviceCtrl import ChipDeviceController from chip.clusters import Attribute, Objects as Clusters -from chip.clusters.Attribute import ValueDecodeFailure +from chip.clusters.Attribute import AttributeWriteResult, ValueDecodeFailure from chip.clusters.ClusterObjects import ALL_ATTRIBUTES, ALL_CLUSTERS, Cluster from chip.discovery import DiscoveryType from chip.exceptions import ChipStackError @@ -862,6 +862,29 @@ async def remove_node(self, node_id: int) -> None: except ChipStackError as err: LOGGER.warning("Removing current fabric from device failed: %s", err) + @api_command(APICommand.SET_ACL_ENTRY) + async def set_acl_entry( + self, + node_id: int, + entry: list[Clusters.AccessControl.Structs.AccessControlEntryStruct], + ) -> list[AttributeWriteResult] | None: + """Set acl entry""" + return await self._chip_device_controller.write_attribute( + node_id, [(0, Clusters.AccessControl.Attributes.Acl(entry))] + ) + + @api_command(APICommand.SET_NODE_BINDING) + async def set_node_binding( + self, + node_id: int, + endpoint: int, + bindings: list[Clusters.Binding.Structs.TargetStruct], + ) -> list[AttributeWriteResult] | None: + """Set node binding""" + return await self._chip_device_controller.write_attribute( + node_id, [(endpoint, Clusters.Binding.Attributes.Binding(bindings))] + ) + @api_command(APICommand.PING_NODE) async def ping_node(self, node_id: int, attempts: int = 1) -> NodePingResult: """Ping node on the currently known IP-address(es).""" From 239efba2a67cd096b49bb59f6ffaf87815a637f9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 9 Jun 2025 11:37:06 +0200 Subject: [PATCH 195/400] Bump aiohttp from 3.12.6 to 3.12.11 (#1164) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index a91d5e59..5adec922 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,7 +32,7 @@ version = "0.0.0" [project.optional-dependencies] server = [ - "aiohttp==3.12.6", + "aiohttp==3.12.11", "aiorun==2025.1.1", "async-timeout==5.0.1", "atomicwrites==1.4.1", From 4f19c43eb990e02dad7e63a19cc1b4764ff455dc Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 9 Jun 2025 11:37:23 +0200 Subject: [PATCH 196/400] Bump pytest from 8.3.5 to 8.4.0 (#1165) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 5adec922..be4a5fa3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -50,7 +50,7 @@ test = [ "pre-commit==4.2.0", "pre-commit-hooks==5.0.0", "pylint==3.3.7", - "pytest==8.3.5", + "pytest==8.4.0", "pytest-asyncio==0.26.0", "pytest-aiohttp==1.1.0", "pytest-cov==6.1.1", From 908c07cb8b0f831085c581498a41433720c034ec Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 9 Jun 2025 11:37:38 +0200 Subject: [PATCH 197/400] Bump ruff from 0.11.12 to 0.11.13 (#1166) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index be4a5fa3..7a82ea07 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,7 +54,7 @@ test = [ "pytest-asyncio==0.26.0", "pytest-aiohttp==1.1.0", "pytest-cov==6.1.1", - "ruff==0.11.12", + "ruff==0.11.13", "tomli==2.2.1", ] From 879d12454c2d0e2c378d801a7dc1aba6b8a4d81a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 16 Jun 2025 11:45:15 +0200 Subject: [PATCH 198/400] Bump aiohttp from 3.12.11 to 3.12.13 (#1173) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 7a82ea07..65808636 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,7 +32,7 @@ version = "0.0.0" [project.optional-dependencies] server = [ - "aiohttp==3.12.11", + "aiohttp==3.12.13", "aiorun==2025.1.1", "async-timeout==5.0.1", "atomicwrites==1.4.1", From 10d06fc4abd9733f2070b9ebae92f4b21741d007 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 16 Jun 2025 11:45:47 +0200 Subject: [PATCH 199/400] Bump pytest-asyncio from 0.26.0 to 1.0.0 (#1172) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 65808636..1a8aa19b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -51,7 +51,7 @@ test = [ "pre-commit-hooks==5.0.0", "pylint==3.3.7", "pytest==8.4.0", - "pytest-asyncio==0.26.0", + "pytest-asyncio==1.0.0", "pytest-aiohttp==1.1.0", "pytest-cov==6.1.1", "ruff==0.11.13", From 22246591bc01c955c697f8d507fd802324fd9c21 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 16 Jun 2025 11:45:58 +0200 Subject: [PATCH 200/400] Bump cryptography from 45.0.3 to 45.0.4 (#1171) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 1a8aa19b..778b8d91 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,7 +37,7 @@ server = [ "async-timeout==5.0.1", "atomicwrites==1.4.1", "coloredlogs==15.0.1", - "cryptography==45.0.3", + "cryptography==45.0.4", "orjson==3.10.18", "zeroconf==0.147.0", "home-assistant-chip-core==2025.4.0", From 44c0a99e34cc44f07502ccab0be08f039889edde Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 16 Jun 2025 11:46:10 +0200 Subject: [PATCH 201/400] Bump pytest-cov from 6.1.1 to 6.2.1 (#1170) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 778b8d91..8c50639c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -53,7 +53,7 @@ test = [ "pytest==8.4.0", "pytest-asyncio==1.0.0", "pytest-aiohttp==1.1.0", - "pytest-cov==6.1.1", + "pytest-cov==6.2.1", "ruff==0.11.13", "tomli==2.2.1", ] From fdc97a881531fd291735c5f53124e63f05d6fa1a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 17 Jun 2025 10:33:51 +0200 Subject: [PATCH 202/400] Bump docker/setup-buildx-action from 3.10.0 to 3.11.0 (#1174) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bea44150..d00d3239 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -85,7 +85,7 @@ jobs: username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3.10.0 + uses: docker/setup-buildx-action@v3.11.0 - name: Version number for tags id: tags shell: bash From fa634493a86e8cba227aa5b1c2a24c9708a553f5 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 18 Jun 2025 11:34:11 +0200 Subject: [PATCH 203/400] Bump docker/setup-buildx-action from 3.11.0 to 3.11.1 (#1175) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d00d3239..5e2f679e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -85,7 +85,7 @@ jobs: username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3.11.0 + uses: docker/setup-buildx-action@v3.11.1 - name: Version number for tags id: tags shell: bash From e0f74fcda741386dacafa00251310001fa06bcb7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 23 Jun 2025 11:45:10 +0200 Subject: [PATCH 204/400] Bump mypy from 1.16.0 to 1.16.1 (#1178) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 8c50639c..fd19514b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -46,7 +46,7 @@ test = [ "aioresponses==0.7.8", "codespell==2.4.1", "isort==6.0.1", - "mypy==1.16.0", + "mypy==1.16.1", "pre-commit==4.2.0", "pre-commit-hooks==5.0.0", "pylint==3.3.7", From f87c888b5fe59c8692f3c1d4dbe2c6ac7fd9c384 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 23 Jun 2025 12:53:57 +0200 Subject: [PATCH 205/400] Bump pytest from 8.4.0 to 8.4.1 (#1179) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index fd19514b..17a58768 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -50,7 +50,7 @@ test = [ "pre-commit==4.2.0", "pre-commit-hooks==5.0.0", "pylint==3.3.7", - "pytest==8.4.0", + "pytest==8.4.1", "pytest-asyncio==1.0.0", "pytest-aiohttp==1.1.0", "pytest-cov==6.2.1", From 5e7835d4619eb8c02edb142c06912aa0948cd059 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 30 Jun 2025 14:51:09 +0200 Subject: [PATCH 206/400] Bump ruff from 0.11.13 to 0.12.0 (#1177) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Stefan Agner --- matter_server/client/client.py | 14 +++++++------- matter_server/common/helpers/util.py | 2 +- matter_server/server/__main__.py | 2 +- pyproject.toml | 2 +- tests/common/test_parser.py | 6 +++--- tests/server/test_server.py | 5 ----- 6 files changed, 13 insertions(+), 18 deletions(-) diff --git a/matter_server/client/client.py b/matter_server/client/client.py index c3273300..5757d92b 100644 --- a/matter_server/client/client.py +++ b/matter_server/client/client.py @@ -4,7 +4,7 @@ import asyncio import logging -from typing import TYPE_CHECKING, Any, Final, Optional, cast +from typing import TYPE_CHECKING, Any, Final, cast import uuid from chip.clusters import Objects as Clusters @@ -80,9 +80,9 @@ def server_info(self) -> ServerInfoMessage | None: def subscribe_events( self, callback: Callable[[EventType, Any], None], - event_filter: Optional[EventType] = None, - node_filter: Optional[int] = None, - attr_path_filter: Optional[str] = None, + event_filter: EventType | None = None, + node_filter: int | None = None, + attr_path_filter: str | None = None, ) -> Callable[[], None]: """ Subscribe to node and server events. @@ -191,7 +191,7 @@ async def open_commissioning_window( timeout: int = 300, # noqa: ASYNC109 timeout parameter required for native timeout iteration: int = 1000, option: int = 1, - discriminator: Optional[int] = None, + discriminator: int | None = None, ) -> CommissioningParameters: """ Open a commissioning window to commission a device present on this controller to another. @@ -771,8 +771,8 @@ def _signal_event( self, event: EventType, data: Any = None, - node_id: Optional[int] = None, - attribute_path: Optional[str] = None, + node_id: int | None = None, + attribute_path: str | None = None, ) -> None: """Signal event to all subscribers.""" # instead of iterating all subscribers we iterate over subscription keys diff --git a/matter_server/common/helpers/util.py b/matter_server/common/helpers/util.py index 0f70de7f..ade69a54 100644 --- a/matter_server/common/helpers/util.py +++ b/matter_server/common/helpers/util.py @@ -91,7 +91,7 @@ def dataclass_to_dict(obj_in: DataclassInstance) -> dict: def parse_utc_timestamp(datetime_string: str) -> datetime: """Parse datetime from string.""" - return datetime.fromisoformat(datetime_string.replace("Z", "+00:00")) + return datetime.fromisoformat(datetime_string) def _get_descriptor_key(descriptor: ClusterObjectDescriptor, key: str | int) -> str: diff --git a/matter_server/server/__main__.py b/matter_server/server/__main__.py index 171f1047..d67e286b 100644 --- a/matter_server/server/__main__.py +++ b/matter_server/server/__main__.py @@ -199,7 +199,7 @@ def _setup_logging() -> None: ) threading.excepthook = lambda args: logger.exception( "Uncaught thread exception", - exc_info=( # type: ignore[arg-type] + exc_info=( # type: ignore[arg-type] # noqa: LOG014 args.exc_type, args.exc_value, args.exc_traceback, diff --git a/pyproject.toml b/pyproject.toml index 17a58768..68d3f85a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,7 +54,7 @@ test = [ "pytest-asyncio==1.0.0", "pytest-aiohttp==1.1.0", "pytest-cov==6.2.1", - "ruff==0.11.13", + "ruff==0.12.0", "tomli==2.2.1", ] diff --git a/tests/common/test_parser.py b/tests/common/test_parser.py index 3867ec0f..bdce1289 100644 --- a/tests/common/test_parser.py +++ b/tests/common/test_parser.py @@ -3,7 +3,7 @@ from dataclasses import dataclass import datetime from enum import Enum, IntEnum -from typing import Optional, Union +from typing import Union from chip.clusters.Types import Nullable, NullValue import pytest @@ -34,7 +34,7 @@ class BasicModelChild: a: int b: str c: str - d: Optional[int] + d: int | None @dataclass @@ -44,7 +44,7 @@ class BasicModel: a: int b: float c: str - d: Optional[int] + d: int | None e: BasicModelChild f: datetime.datetime g: MatterEnum diff --git a/tests/server/test_server.py b/tests/server/test_server.py index 1afedd86..a8b9fbb6 100644 --- a/tests/server/test_server.py +++ b/tests/server/test_server.py @@ -77,11 +77,6 @@ def chip_stack_fixture() -> Generator[MagicMock, None, None]: @pytest.fixture(name="certificate_authority_manager") def certificate_authority_manager_fixture() -> Generator[MagicMock, None, None]: """Return a mocked certificate authority manager.""" - - # Necessary for patching within tests - # pylint: disable=unused-import,import-outside-toplevel - import chip.CertificateAuthority # noqa: F401 - with patch( "matter_server.server.stack.chip.CertificateAuthority.CertificateAuthorityManager", autospec=True, From c132fdbad15761c3f7e4a1ff7ca2467554b9d253 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20BOU=C3=89?= Date: Mon, 30 Jun 2025 15:07:51 +0200 Subject: [PATCH 207/400] Add custom Eve weatherTrend attribute for Eve Weather device (#1181) --- dashboard/src/client/models/descriptions.ts | 6 +++++ matter_server/common/custom_clusters.py | 25 +++++++++++++++++++++ 2 files changed, 31 insertions(+) diff --git a/dashboard/src/client/models/descriptions.ts b/dashboard/src/client/models/descriptions.ts index 89d7af06..04dcd291 100644 --- a/dashboard/src/client/models/descriptions.ts +++ b/dashboard/src/client/models/descriptions.ts @@ -12228,6 +12228,12 @@ export const clusters: Record = { "label": "Pressure", "type": "float32" }, + "319422485": { + "id": 319422485, + "cluster_id": 319486977, + "label": "WeatherTrend", + "type": "int" + }, "319422488": { "id": 319422488, "cluster_id": 319486977, diff --git a/matter_server/common/custom_clusters.py b/matter_server/common/custom_clusters.py index 024689fa..2702f7ab 100644 --- a/matter_server/common/custom_clusters.py +++ b/matter_server/common/custom_clusters.py @@ -120,6 +120,9 @@ def descriptor(cls) -> ClusterObjectDescriptor: ClusterObjectFieldDescriptor( Label="pressure", Tag=0x130A0014, Type=float32 ), + ClusterObjectFieldDescriptor( + Label="weatherTrend", Tag=0x130A0015, Type=int + ), ClusterObjectFieldDescriptor( Label="valvePosition", Tag=0x130A0018, Type=int ), @@ -137,6 +140,7 @@ def descriptor(cls) -> ClusterObjectDescriptor: current: float32 | None = None altitude: float32 | None = None pressure: float32 | None = None + weatherTrend: int | None = None valvePosition: int | None = None motionSensitivity: int | None = None @@ -323,6 +327,27 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: float32 = 0 + @dataclass + class WeatherTrend(ClusterAttributeDescriptor, CustomClusterAttributeMixin): + """WeatherTrend Attribute within the Eve Cluster.""" + + @ChipUtility.classproperty + def cluster_id(cls) -> int: + """Return cluster id.""" + return 0x130AFC01 + + @ChipUtility.classproperty + def attribute_id(cls) -> int: + """Return attribute id.""" + return 0x130A0015 + + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + """Return attribute type.""" + return ClusterObjectFieldDescriptor(Type=int) + + value: int = 0 + @dataclass class ValvePosition(ClusterAttributeDescriptor, CustomClusterAttributeMixin): """ValvePosition Attribute within the Eve Cluster.""" From 653f28fd9c5c03f7f2560fab2b0fc6d6495669ee Mon Sep 17 00:00:00 2001 From: 3reality-wangzhijie Date: Tue, 1 Jul 2025 17:28:52 +0800 Subject: [PATCH 208/400] Add multiplier and divisor attributes to ThirdRealityMeteringCluster (#1180) --- matter_server/common/custom_clusters.py | 46 +++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/matter_server/common/custom_clusters.py b/matter_server/common/custom_clusters.py index 2702f7ab..80ec53bb 100644 --- a/matter_server/common/custom_clusters.py +++ b/matter_server/common/custom_clusters.py @@ -631,11 +631,15 @@ def descriptor(cls) -> ClusterObjectDescriptor: ClusterObjectFieldDescriptor( Label="instantaneousDemand", Tag=0x0400, Type=uint ), + ClusterObjectFieldDescriptor(Label="multiplier", Tag=0x0301, Type=uint), + ClusterObjectFieldDescriptor(Label="divisor", Tag=0x0302, Type=uint), ] ) currentSummationDelivered: uint | None = None instantaneousDemand: uint | None = None + multiplier: uint = 1 + divisor: uint = 1 class Attributes: """Attributes for the custom Cluster.""" @@ -669,6 +673,48 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: uint = 0 + @dataclass + class Divisor(ClusterAttributeDescriptor, CustomClusterAttributeMixin): + """Divisor Attribute within the ThirdRealityMeteringCluster Cluster.""" + + @ChipUtility.classproperty + def cluster_id(cls) -> int: + """Return cluster id.""" + return 0x130DFC02 + + @ChipUtility.classproperty + def attribute_id(cls) -> int: + """Return attribute id.""" + return 0x0302 + + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + """Return attribute type.""" + return ClusterObjectFieldDescriptor(Type=uint) + + value: uint = 1 + + @dataclass + class Multiplier(ClusterAttributeDescriptor, CustomClusterAttributeMixin): + """Multiplier Attribute within the ThirdRealityMeteringCluster Cluster.""" + + @ChipUtility.classproperty + def cluster_id(cls) -> int: + """Return cluster id.""" + return 0x130DFC02 + + @ChipUtility.classproperty + def attribute_id(cls) -> int: + """Return attribute id.""" + return 0x0301 + + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + """Return attribute type.""" + return ClusterObjectFieldDescriptor(Type=uint) + + value: uint = 1 + @dataclass class InstantaneousDemand( ClusterAttributeDescriptor, CustomClusterAttributeMixin From 8aac9b085bbe245832bb837b6b2f22493adc7462 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Wed, 2 Jul 2025 11:00:39 +0200 Subject: [PATCH 209/400] Update to Matter SDK wheels 2025.7.0 (#1184) --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 68d3f85a..5cf20f72 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -20,7 +20,7 @@ dependencies = [ "async-timeout", "coloredlogs", "orjson", - "home-assistant-chip-clusters==2025.4.0", + "home-assistant-chip-clusters==2025.7.0", ] description = "Open Home Foundation Matter Server" license = {text = "Apache-2.0"} @@ -40,7 +40,7 @@ server = [ "cryptography==45.0.4", "orjson==3.10.18", "zeroconf==0.147.0", - "home-assistant-chip-core==2025.4.0", + "home-assistant-chip-core==2025.7.0", ] test = [ "aioresponses==0.7.8", From 17d0f8e418d541cc945db27506d666853f56dc8d Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Tue, 8 Jul 2025 10:05:25 +0200 Subject: [PATCH 210/400] Add ignore[arg-type] to fix mypy false positive (#1190) --- matter_server/server/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matter_server/server/server.py b/matter_server/server/server.py index 7e04ff84..72a50c37 100644 --- a/matter_server/server/server.py +++ b/matter_server/server/server.py @@ -89,7 +89,7 @@ async def _handle_shutdown(app: web.Application) -> None: for client in set(clients): await client.disconnect() - server.app.on_shutdown.append(_handle_shutdown) + server.app.on_shutdown.append(_handle_shutdown) # type: ignore[arg-type] server.app.router.add_route("GET", path, _handle_ws) From 79bb91fa89f9385ea0c04a6e7256a21289aad2c6 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 8 Jul 2025 11:22:56 +0200 Subject: [PATCH 211/400] Bump cryptography from 45.0.4 to 45.0.5 (#1187) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 5cf20f72..20617a20 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,7 +37,7 @@ server = [ "async-timeout==5.0.1", "atomicwrites==1.4.1", "coloredlogs==15.0.1", - "cryptography==45.0.4", + "cryptography==45.0.5", "orjson==3.10.18", "zeroconf==0.147.0", "home-assistant-chip-core==2025.7.0", From 4f9100fafc92de35fed74235fa1911522bf47b16 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 8 Jul 2025 11:44:43 +0200 Subject: [PATCH 212/400] Bump ruff from 0.12.0 to 0.12.2 (#1188) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Stefan Agner --- matter_server/server/__main__.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/matter_server/server/__main__.py b/matter_server/server/__main__.py index d67e286b..171f1047 100644 --- a/matter_server/server/__main__.py +++ b/matter_server/server/__main__.py @@ -199,7 +199,7 @@ def _setup_logging() -> None: ) threading.excepthook = lambda args: logger.exception( "Uncaught thread exception", - exc_info=( # type: ignore[arg-type] # noqa: LOG014 + exc_info=( # type: ignore[arg-type] args.exc_type, args.exc_value, args.exc_traceback, diff --git a/pyproject.toml b/pyproject.toml index 20617a20..85226197 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,7 +54,7 @@ test = [ "pytest-asyncio==1.0.0", "pytest-aiohttp==1.1.0", "pytest-cov==6.2.1", - "ruff==0.12.0", + "ruff==0.12.2", "tomli==2.2.1", ] From 052e0497c847d4553c79d8f127b20d7c429abaca Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 14 Jul 2025 11:56:36 +0200 Subject: [PATCH 213/400] Bump ruff from 0.12.2 to 0.12.3 (#1192) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 85226197..d72e8365 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,7 +54,7 @@ test = [ "pytest-asyncio==1.0.0", "pytest-aiohttp==1.1.0", "pytest-cov==6.2.1", - "ruff==0.12.2", + "ruff==0.12.3", "tomli==2.2.1", ] From 9e0ebf9b3ddc9d830e86c64c3a1b0b6b3dcd2c11 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 14 Jul 2025 18:23:17 +0200 Subject: [PATCH 214/400] Bump aiohttp from 3.12.13 to 3.12.14 (#1193) --- matter_server/server/server.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/matter_server/server/server.py b/matter_server/server/server.py index 72a50c37..7e04ff84 100644 --- a/matter_server/server/server.py +++ b/matter_server/server/server.py @@ -89,7 +89,7 @@ async def _handle_shutdown(app: web.Application) -> None: for client in set(clients): await client.disconnect() - server.app.on_shutdown.append(_handle_shutdown) # type: ignore[arg-type] + server.app.on_shutdown.append(_handle_shutdown) server.app.router.add_route("GET", path, _handle_ws) diff --git a/pyproject.toml b/pyproject.toml index d72e8365..11814376 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,7 +32,7 @@ version = "0.0.0" [project.optional-dependencies] server = [ - "aiohttp==3.12.13", + "aiohttp==3.12.14", "aiorun==2025.1.1", "async-timeout==5.0.1", "atomicwrites==1.4.1", From e796a0a85163fdb307262e1bedd2aa240a4840eb Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 21 Jul 2025 12:40:05 +0200 Subject: [PATCH 215/400] Bump pytest-asyncio from 1.0.0 to 1.1.0 (#1201) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 11814376..191c1b52 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -51,7 +51,7 @@ test = [ "pre-commit-hooks==5.0.0", "pylint==3.3.7", "pytest==8.4.1", - "pytest-asyncio==1.0.0", + "pytest-asyncio==1.1.0", "pytest-aiohttp==1.1.0", "pytest-cov==6.2.1", "ruff==0.12.3", From e9f2d18ef468e1d7a4f5d32417f984edb0be75ce Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 21 Jul 2025 12:51:23 +0200 Subject: [PATCH 216/400] Bump ruff from 0.12.3 to 0.12.4 (#1200) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 191c1b52..f2111746 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,7 +54,7 @@ test = [ "pytest-asyncio==1.1.0", "pytest-aiohttp==1.1.0", "pytest-cov==6.2.1", - "ruff==0.12.3", + "ruff==0.12.4", "tomli==2.2.1", ] From 2e61c25a1deda378659487ae8f2205c18e3995b1 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 21 Jul 2025 12:52:46 +0200 Subject: [PATCH 217/400] Bump orjson from 3.10.18 to 3.11.0 (#1199) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index f2111746..549e6e74 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,7 +38,7 @@ server = [ "atomicwrites==1.4.1", "coloredlogs==15.0.1", "cryptography==45.0.5", - "orjson==3.10.18", + "orjson==3.11.0", "zeroconf==0.147.0", "home-assistant-chip-core==2025.7.0", ] From 1c7fd88958b9c384b212204e51d0c6cef7c7707b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 28 Jul 2025 13:15:59 +0200 Subject: [PATCH 218/400] Bump orjson from 3.11.0 to 3.11.1 (#1204) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 549e6e74..3a531ae1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,7 +38,7 @@ server = [ "atomicwrites==1.4.1", "coloredlogs==15.0.1", "cryptography==45.0.5", - "orjson==3.11.0", + "orjson==3.11.1", "zeroconf==0.147.0", "home-assistant-chip-core==2025.7.0", ] From 27ba4df00c31cdca40d1e05938945c00e580245c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 28 Jul 2025 14:19:22 +0200 Subject: [PATCH 219/400] Bump ruff from 0.12.4 to 0.12.5 (#1205) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 3a531ae1..76236690 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,7 +54,7 @@ test = [ "pytest-asyncio==1.1.0", "pytest-aiohttp==1.1.0", "pytest-cov==6.2.1", - "ruff==0.12.4", + "ruff==0.12.5", "tomli==2.2.1", ] From 89d4222f53f2881c7946e74291ff72b6b05c5244 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 28 Jul 2025 14:27:09 +0200 Subject: [PATCH 220/400] Bump mypy from 1.16.1 to 1.17.0 (#1202) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Stefan Agner --- matter_server/client/models/node.py | 4 ++-- pyproject.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/matter_server/client/models/node.py b/matter_server/client/models/node.py index 66b2c6ef..f8bf274c 100644 --- a/matter_server/client/models/node.py +++ b/matter_server/client/models/node.py @@ -223,7 +223,7 @@ def update(self, attributes_data: dict[str, Any]) -> None: self.set_attribute_value(attribute_path, attribute_value) # extract device types from Descriptor Cluster if cluster := self.get_cluster(Clusters.Descriptor): - for dev_info in cluster.deviceTypeList: # type: ignore[unreachable] + for dev_info in cluster.deviceTypeList: device_type = DEVICE_TYPES.get(dev_info.deviceType) if device_type is None: LOGGER.debug("Found unknown device type %s", dev_info) @@ -352,7 +352,7 @@ def update(self, node_data: MatterNodeData) -> None: endpoint.endpoint_id, ) continue - if descriptor.partsList: # type: ignore[unreachable] + if descriptor.partsList: for endpoint_id in descriptor.partsList: self._composed_endpoints[endpoint_id] = endpoint.endpoint_id diff --git a/pyproject.toml b/pyproject.toml index 76236690..9331b8a1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -46,7 +46,7 @@ test = [ "aioresponses==0.7.8", "codespell==2.4.1", "isort==6.0.1", - "mypy==1.16.1", + "mypy==1.17.0", "pre-commit==4.2.0", "pre-commit-hooks==5.0.0", "pylint==3.3.7", From 8e46420f8e83472755bf643596e5eac55d0b8d93 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 4 Aug 2025 18:08:54 +0200 Subject: [PATCH 221/400] Bump ruff from 0.12.5 to 0.12.7 (#1208) --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 9331b8a1..50843bb8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,7 +54,7 @@ test = [ "pytest-asyncio==1.1.0", "pytest-aiohttp==1.1.0", "pytest-cov==6.2.1", - "ruff==0.12.5", + "ruff==0.12.7", "tomli==2.2.1", ] From 51cc1d6c90d092666d5d6b125b1cd8faa6a43ddb Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 4 Aug 2025 18:14:12 +0200 Subject: [PATCH 222/400] Bump mypy from 1.17.0 to 1.17.1 (#1209) --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 50843bb8..9f1acd81 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -46,7 +46,7 @@ test = [ "aioresponses==0.7.8", "codespell==2.4.1", "isort==6.0.1", - "mypy==1.17.0", + "mypy==1.17.1", "pre-commit==4.2.0", "pre-commit-hooks==5.0.0", "pylint==3.3.7", From c221e31713cfaf4e9d2870c6a473ba0ae0f530fd Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 4 Aug 2025 18:52:38 +0200 Subject: [PATCH 223/400] Bump aiohttp from 3.12.14 to 3.12.15 (#1210) --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 9f1acd81..fa915ca0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,7 +32,7 @@ version = "0.0.0" [project.optional-dependencies] server = [ - "aiohttp==3.12.14", + "aiohttp==3.12.15", "aiorun==2025.1.1", "async-timeout==5.0.1", "atomicwrites==1.4.1", From 7d9a74fe26e8d8a0b6c05a589c7f30322ef9883a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 5 Aug 2025 13:39:19 +0200 Subject: [PATCH 224/400] Bump docker/login-action from 3.4.0 to 3.5.0 (#1211) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5e2f679e..970ec171 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -79,7 +79,7 @@ jobs: steps: - uses: actions/checkout@v4.2.2 - name: Log in to the GitHub container registry - uses: docker/login-action@v3.4.0 + uses: docker/login-action@v3.5.0 with: registry: ghcr.io username: ${{ github.repository_owner }} From 0f6733ec4c8c164811473047967317e2455ec7dd Mon Sep 17 00:00:00 2001 From: LeoXie <2442926161@qq.com> Date: Thu, 7 Aug 2025 21:45:09 +0800 Subject: [PATCH 225/400] Add Heiman cluster (#1197) --- matter_server/common/custom_clusters.py | 121 ++++++++++++++++++++++++ 1 file changed, 121 insertions(+) diff --git a/matter_server/common/custom_clusters.py b/matter_server/common/custom_clusters.py index 80ec53bb..9fb5953a 100644 --- a/matter_server/common/custom_clusters.py +++ b/matter_server/common/custom_clusters.py @@ -614,6 +614,127 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: float32 = 0 +@dataclass +class HeimanCluster(Cluster, CustomClusterMixin): + """Custom (vendor-specific) cluster for Heiman - Vendor ID 4619 (0x120BFC01).""" + + id: ClassVar[int] = 0x120BFC01 + + @ChipUtility.classproperty + def descriptor(cls) -> ClusterObjectDescriptor: + """Return descriptor for this cluster.""" + return ClusterObjectDescriptor( + Fields=[ + ClusterObjectFieldDescriptor( + Label="tamperAlarm", Tag=0x00120B0010, Type=uint + ), + ClusterObjectFieldDescriptor( + Label="preheatingState", Tag=0x00120B0011, Type=uint + ), + ClusterObjectFieldDescriptor( + Label="noDisturbingState", Tag=0x00120B0012, Type=uint + ), + ClusterObjectFieldDescriptor( + Label="sensorType", Tag=0x00120B0013, Type=uint + ), + ] + ) + + tamperAlarm: uint | None = None + preheatingState: uint | None = None + noDisturbingState: uint | None = None + sensorType: uint | None = None + + class Attributes: + """Attributes for the Heiman Cluster.""" + + @dataclass + class TamperAlarm(ClusterAttributeDescriptor, CustomClusterAttributeMixin): + """TamperAlarm Attribute within the Heiman Cluster.""" + + @ChipUtility.classproperty + def cluster_id(cls) -> int: + """Return cluster id.""" + return 0x120BFC01 + + @ChipUtility.classproperty + def attribute_id(cls) -> int: + """Return attribute id.""" + return 0x00120B0010 + + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + """Return attribute type.""" + return ClusterObjectFieldDescriptor(Type=uint) + + value: uint = 0 + + @dataclass + class PreheatingState(ClusterAttributeDescriptor, CustomClusterAttributeMixin): + """PreheatingState Attribute within the Heiman Cluster.""" + + @ChipUtility.classproperty + def cluster_id(cls) -> int: + """Return cluster id.""" + return 0x120BFC01 + + @ChipUtility.classproperty + def attribute_id(cls) -> int: + """Return attribute id.""" + return 0x00120B0011 + + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + """Return attribute type.""" + return ClusterObjectFieldDescriptor(Type=uint) + + value: uint = 0 + + @dataclass + class NoDisturbingState( + ClusterAttributeDescriptor, CustomClusterAttributeMixin + ): + """NoDisturbingState Attribute within the Heiman Cluster.""" + + @ChipUtility.classproperty + def cluster_id(cls) -> int: + """Return cluster id.""" + return 0x120BFC01 + + @ChipUtility.classproperty + def attribute_id(cls) -> int: + """Return attribute id.""" + return 0x00120B0012 + + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + """Return attribute type.""" + return ClusterObjectFieldDescriptor(Type=uint) + + value: uint = 0 + + @dataclass + class SensorType(ClusterAttributeDescriptor, CustomClusterAttributeMixin): + """SensorType Attribute within the Heiman Cluster.""" + + @ChipUtility.classproperty + def cluster_id(cls) -> int: + """Return cluster id.""" + return 0x120BFC01 + + @ChipUtility.classproperty + def attribute_id(cls) -> int: + """Return attribute id.""" + return 0x00120B0013 + + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + """Return attribute type.""" + return ClusterObjectFieldDescriptor(Type=uint) + + value: uint = 0 + + @dataclass class ThirdRealityMeteringCluster(Cluster, CustomClusterMixin): """Custom (vendor-specific) PowerMetering cluster for ThirdReality.""" From 9de03abd6c4ffc9c1a8d26520d5fc6d4f5a45011 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 11 Aug 2025 14:55:53 +0200 Subject: [PATCH 226/400] Bump pre-commit from 4.2.0 to 4.3.0 (#1214) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index fa915ca0..c2ad0780 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -47,7 +47,7 @@ test = [ "codespell==2.4.1", "isort==6.0.1", "mypy==1.17.1", - "pre-commit==4.2.0", + "pre-commit==4.3.0", "pre-commit-hooks==5.0.0", "pylint==3.3.7", "pytest==8.4.1", From ee54f6817a05febd3ed3395f6cb9300e60a36ce2 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 11 Aug 2025 14:56:09 +0200 Subject: [PATCH 227/400] Bump ruff from 0.12.7 to 0.12.8 (#1216) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index c2ad0780..535bdbf5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,7 +54,7 @@ test = [ "pytest-asyncio==1.1.0", "pytest-aiohttp==1.1.0", "pytest-cov==6.2.1", - "ruff==0.12.7", + "ruff==0.12.8", "tomli==2.2.1", ] From f3e63565e730ed86b9048226bbf457c0272c9a3c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 11 Aug 2025 14:56:16 +0200 Subject: [PATCH 228/400] Bump cryptography from 45.0.5 to 45.0.6 (#1217) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 535bdbf5..3d4da826 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,7 +37,7 @@ server = [ "async-timeout==5.0.1", "atomicwrites==1.4.1", "coloredlogs==15.0.1", - "cryptography==45.0.5", + "cryptography==45.0.6", "orjson==3.11.1", "zeroconf==0.147.0", "home-assistant-chip-core==2025.7.0", From 15b5cb8a9dad8b59d5b51687711c40ed8891f051 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 11 Aug 2025 14:56:23 +0200 Subject: [PATCH 229/400] Bump pylint from 3.3.7 to 3.3.8 (#1218) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 3d4da826..5251e1d5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -49,7 +49,7 @@ test = [ "mypy==1.17.1", "pre-commit==4.3.0", "pre-commit-hooks==5.0.0", - "pylint==3.3.7", + "pylint==3.3.8", "pytest==8.4.1", "pytest-asyncio==1.1.0", "pytest-aiohttp==1.1.0", From 50ae9c6a3531c8056a9008b8d4e9a8ec34821818 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 11 Aug 2025 15:08:10 +0200 Subject: [PATCH 230/400] Bump pre-commit-hooks from 5.0.0 to 6.0.0 (#1215) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 5251e1d5..bb8237aa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -48,7 +48,7 @@ test = [ "isort==6.0.1", "mypy==1.17.1", "pre-commit==4.3.0", - "pre-commit-hooks==5.0.0", + "pre-commit-hooks==6.0.0", "pylint==3.3.8", "pytest==8.4.1", "pytest-asyncio==1.1.0", From 1314ad3c5fc7cbb4af83ff2c73260e0541303ce2 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Tue, 12 Aug 2025 07:33:31 +0200 Subject: [PATCH 231/400] Log primary interface used by Python Matter server on startup (#1212) --- matter_server/server/server.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/matter_server/server/server.py b/matter_server/server/server.py index 7e04ff84..c381e68b 100644 --- a/matter_server/server/server.py +++ b/matter_server/server/server.py @@ -147,6 +147,11 @@ def __init__( # noqa: PLR0913, pylint: disable=too-many-positional-arguments, t raise RuntimeError( "Minimum supported schema version can't be higher than current schema version." ) + self.logger.info("Matter Server initialized") + self.logger.info( + "Using '%s' as primary interface (for link-local addresses)", + self.primary_interface, + ) @cached_property def device_controller(self) -> MatterDeviceController: From 8b1cf26dbc9d06e29efec35ab1fd17f2afc9406f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 12 Aug 2025 19:26:20 +0200 Subject: [PATCH 232/400] Bump actions/checkout from 4.2.2 to 5.0.0 (#1220) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 4 ++-- .github/workflows/test.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 970ec171..7ca77552 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,7 +14,7 @@ jobs: outputs: version: ${{ steps.vars.outputs.tag }} steps: - - uses: actions/checkout@v4.2.2 + - uses: actions/checkout@v5.0.0 - name: Get tag id: vars run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT @@ -77,7 +77,7 @@ jobs: packages: write needs: build-and-publish-pypi steps: - - uses: actions/checkout@v4.2.2 + - uses: actions/checkout@v5.0.0 - name: Log in to the GitHub container registry uses: docker/login-action@v3.5.0 with: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4c680bf8..f54e7168 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,7 +16,7 @@ jobs: steps: - name: Check out code from GitHub - uses: actions/checkout@v4.2.2 + uses: actions/checkout@v5.0.0 - name: Set up Python uses: actions/setup-python@v5.6.0 with: @@ -42,7 +42,7 @@ jobs: steps: - name: Check out code from GitHub - uses: actions/checkout@v4.2.2 + uses: actions/checkout@v5.0.0 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v5.6.0 with: From 606cfee7cabdcceb3a91ec1bce058fb4cb2eb2f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20BOU=C3=89?= Date: Thu, 14 Aug 2025 09:49:23 +0200 Subject: [PATCH 233/400] ObstructionDetected Attribute within the Eve Cluster (#1196) --- matter_server/common/custom_clusters.py | 27 +++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/matter_server/common/custom_clusters.py b/matter_server/common/custom_clusters.py index 9fb5953a..95144d6d 100644 --- a/matter_server/common/custom_clusters.py +++ b/matter_server/common/custom_clusters.py @@ -114,6 +114,9 @@ def descriptor(cls) -> ClusterObjectDescriptor: ClusterObjectFieldDescriptor( Label="current", Tag=0x130A0009, Type=float32 ), + ClusterObjectFieldDescriptor( + Label="obstructionDetected", Tag=0x130A0010, Type=bool + ), ClusterObjectFieldDescriptor( Label="altitude", Tag=0x130A0013, Type=float32 ), @@ -143,6 +146,7 @@ def descriptor(cls) -> ClusterObjectDescriptor: weatherTrend: int | None = None valvePosition: int | None = None motionSensitivity: int | None = None + obstructionDetected: bool | None = None class Attributes: """Attributes for the Eve Cluster.""" @@ -285,6 +289,29 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: float32 = 0 + @dataclass + class ObstructionDetected( + ClusterAttributeDescriptor, CustomClusterAttributeMixin + ): + """ObstructionDetected Attribute within the Eve Cluster.""" + + @ChipUtility.classproperty + def cluster_id(cls) -> int: + """Return cluster id.""" + return 0x130AFC01 + + @ChipUtility.classproperty + def attribute_id(cls) -> int: + """Return attribute id.""" + return 0x130A0010 + + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + """Return attribute type.""" + return ClusterObjectFieldDescriptor(Type=bool) + + value: bool = False + @dataclass class Altitude(ClusterAttributeDescriptor, CustomClusterAttributeMixin): """Altitude Attribute within the Eve Cluster.""" From b5e35e1570168b45d5c56bec4892d75ed113f007 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 25 Aug 2025 19:44:05 +0200 Subject: [PATCH 234/400] Bump orjson from 3.11.1 to 3.11.2 (#1225) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index bb8237aa..78a02698 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,7 +38,7 @@ server = [ "atomicwrites==1.4.1", "coloredlogs==15.0.1", "cryptography==45.0.6", - "orjson==3.11.1", + "orjson==3.11.2", "zeroconf==0.147.0", "home-assistant-chip-core==2025.7.0", ] From ddacd5ed8baf66c8b535b11e6beff3abae19c902 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 25 Aug 2025 19:44:21 +0200 Subject: [PATCH 235/400] Bump ruff from 0.12.8 to 0.12.10 (#1224) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 78a02698..7a51ed0a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,7 +54,7 @@ test = [ "pytest-asyncio==1.1.0", "pytest-aiohttp==1.1.0", "pytest-cov==6.2.1", - "ruff==0.12.8", + "ruff==0.12.10", "tomli==2.2.1", ] From 8e3ed85416bbd50861c5da18b2fdbfedc04875f0 Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Wed, 27 Aug 2025 15:30:33 +0200 Subject: [PATCH 236/400] Disable blank issues in issue template --- .github/ISSUE_TEMPLATE/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index fea0cb84..97551892 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -1,4 +1,4 @@ -blank_issues_enabled: true +blank_issues_enabled: false contact_links: - name: I have an issue or bug regarding using Matter with Home Assistant url: https://github.com/home-assistant/core/issues?q=is:issue+is:open+label:%22integration:+matter%22 From 00071afb45f9af3c415d6c95d9d01bee208ee53a Mon Sep 17 00:00:00 2001 From: Ingo Fischer Date: Thu, 28 Aug 2025 12:18:31 +0200 Subject: [PATCH 237/400] Expose Tcp support as False for now (#1227) --- matter_server/server/device_controller.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/matter_server/server/device_controller.py b/matter_server/server/device_controller.py index 492c36b6..1420d37a 100644 --- a/matter_server/server/device_controller.py +++ b/matter_server/server/device_controller.py @@ -569,7 +569,8 @@ async def discover_commissionable_nodes( pairing_hint=x.pairingHint, mrp_retry_interval_idle=x.mrpRetryIntervalIdle, mrp_retry_interval_active=x.mrpRetryIntervalActive, - supports_tcp=x.supportsTcp, + # TCP is provisional, so no devices out there anyway + supports_tcp=False, addresses=x.addresses, rotating_id=x.rotatingId, ) From 0873350417ae06698cb46316fbb3550353db4a1b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 28 Aug 2025 12:19:04 +0200 Subject: [PATCH 238/400] Bump orjson from 3.11.2 to 3.11.3 (#1226) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 7a51ed0a..c68cea62 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,7 +38,7 @@ server = [ "atomicwrites==1.4.1", "coloredlogs==15.0.1", "cryptography==45.0.6", - "orjson==3.11.2", + "orjson==3.11.3", "zeroconf==0.147.0", "home-assistant-chip-core==2025.7.0", ] From b7c00be39b187301b05aa30ad0cdb47c2ce2161b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 3 Sep 2025 14:37:16 +0200 Subject: [PATCH 239/400] Bump cryptography from 45.0.6 to 45.0.7 (#1234) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index c68cea62..018ea222 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,7 +37,7 @@ server = [ "async-timeout==5.0.1", "atomicwrites==1.4.1", "coloredlogs==15.0.1", - "cryptography==45.0.6", + "cryptography==45.0.7", "orjson==3.11.3", "zeroconf==0.147.0", "home-assistant-chip-core==2025.7.0", From 6565bffb9759938612432099306cf3aa4cf864cd Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 3 Sep 2025 14:37:35 +0200 Subject: [PATCH 240/400] Bump ruff from 0.12.10 to 0.12.11 (#1233) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 018ea222..5ea6b02f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,7 +54,7 @@ test = [ "pytest-asyncio==1.1.0", "pytest-aiohttp==1.1.0", "pytest-cov==6.2.1", - "ruff==0.12.10", + "ruff==0.12.11", "tomli==2.2.1", ] From cb500a3024c2f849a4bd74873b6fe4b7beeb1b2e Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Wed, 3 Sep 2025 20:33:54 +0200 Subject: [PATCH 241/400] Limit fabric label to 32 characters with truncation and logging (#1229) --- matter_server/server/device_controller.py | 7 ++ tests/test_fabric_label_validation.py | 120 ++++++++++++++++++++++ 2 files changed, 127 insertions(+) create mode 100644 tests/test_fabric_label_validation.py diff --git a/matter_server/server/device_controller.py b/matter_server/server/device_controller.py index 1420d37a..9df276c1 100644 --- a/matter_server/server/device_controller.py +++ b/matter_server/server/device_controller.py @@ -296,6 +296,13 @@ def get_node(self, node_id: int) -> MatterNodeData: @api_command(APICommand.SET_DEFAULT_FABRIC_LABEL) async def set_default_fabric_label(self, label: str | None) -> None: """Set the default fabric label.""" + if label is not None and len(label) > 32: + LOGGER.info( + "Fabric label '%s' exceeds 32 characters, truncating to '%s'", + label, + label[:32], + ) + label = label[:32] self._default_fabric_label = label @api_command(APICommand.COMMISSION_WITH_CODE) diff --git a/tests/test_fabric_label_validation.py b/tests/test_fabric_label_validation.py new file mode 100644 index 00000000..bc609dcd --- /dev/null +++ b/tests/test_fabric_label_validation.py @@ -0,0 +1,120 @@ +"""Test fabric label validation functionality.""" +# pylint: disable=protected-access + +import logging + +import pytest + + +class MockDeviceController: + """Mock device controller with fabric label validation logic.""" + + def __init__(self): + """Initialize mock device controller.""" + self._default_fabric_label = None + self.logger = logging.getLogger(__name__) + + async def set_default_fabric_label(self, label: str | None) -> None: + """Set the default fabric label with validation.""" + if label is not None and len(label) > 32: + self.logger.info( + "Fabric label '%s' exceeds 32 characters, truncating to '%s'", + label, + label[:32], + ) + label = label[:32] + self._default_fabric_label = label + + +class TestFabricLabelValidation: + """Test fabric label length validation.""" + + @pytest.fixture + def mock_device_controller(self): + """Create a mock device controller for testing.""" + return MockDeviceController() + + @pytest.mark.asyncio + async def test_fabric_label_under_32_chars(self, mock_device_controller, caplog): + """Test that fabric labels under 32 characters are not modified.""" + label = "Short Label" + + with caplog.at_level(logging.INFO): + await mock_device_controller.set_default_fabric_label(label) + + assert mock_device_controller._default_fabric_label == label + assert not caplog.records # No log messages should be generated + + @pytest.mark.asyncio + async def test_fabric_label_exactly_32_chars(self, mock_device_controller, caplog): + """Test that fabric labels exactly 32 characters are not modified.""" + label = "A" * 32 # Exactly 32 characters + + with caplog.at_level(logging.INFO): + await mock_device_controller.set_default_fabric_label(label) + + assert mock_device_controller._default_fabric_label == label + assert len(mock_device_controller._default_fabric_label) == 32 + assert not caplog.records # No log messages should be generated + + @pytest.mark.asyncio + async def test_fabric_label_over_32_chars_truncated( + self, mock_device_controller, caplog + ): + """Test that fabric labels over 32 characters are truncated.""" + long_label = ( + "This is a very long fabric label that exceeds the 32 character limit" + ) + expected_truncated = long_label[:32] + + with caplog.at_level(logging.INFO): + await mock_device_controller.set_default_fabric_label(long_label) + + assert mock_device_controller._default_fabric_label == expected_truncated + assert len(mock_device_controller._default_fabric_label) == 32 + + # Check that a log message was generated + assert len(caplog.records) == 1 + assert caplog.records[0].levelname == "INFO" + assert "exceeds 32 characters, truncating" in caplog.records[0].message + assert long_label in caplog.records[0].message + assert expected_truncated in caplog.records[0].message + + @pytest.mark.asyncio + async def test_fabric_label_none_value(self, mock_device_controller, caplog): + """Test that None values are handled properly.""" + with caplog.at_level(logging.INFO): + await mock_device_controller.set_default_fabric_label(None) + + assert mock_device_controller._default_fabric_label is None + assert not caplog.records # No log messages should be generated + + @pytest.mark.asyncio + async def test_fabric_label_empty_string(self, mock_device_controller, caplog): + """Test that empty strings are handled properly.""" + label = "" + + with caplog.at_level(logging.INFO): + await mock_device_controller.set_default_fabric_label(label) + + assert mock_device_controller._default_fabric_label == label + assert not caplog.records # No log messages should be generated + + @pytest.mark.asyncio + async def test_fabric_label_unicode_characters( + self, mock_device_controller, caplog + ): + """Test that unicode characters are handled properly in truncation.""" + # Unicode string that's longer than 32 characters + unicode_label = "Cafรฉโ„ข โ˜… ๐Ÿ  This is a unicode string that exceeds 32 chars" + expected_truncated = unicode_label[:32] + + with caplog.at_level(logging.INFO): + await mock_device_controller.set_default_fabric_label(unicode_label) + + assert mock_device_controller._default_fabric_label == expected_truncated + assert len(mock_device_controller._default_fabric_label) == 32 + + # Check that a log message was generated + assert len(caplog.records) == 1 + assert "exceeds 32 characters, truncating" in caplog.records[0].message From 7624ea2c4090d19ba01035e11634f31a9570cf35 Mon Sep 17 00:00:00 2001 From: Luxni <307993459@qq.com> Date: Thu, 4 Sep 2025 02:34:52 +0800 Subject: [PATCH 242/400] fix matter binding detele error (#1232) --- dashboard/src/components/dialogs/acl/model.ts | 23 ++++++------------- .../src/components/dialogs/binding/model.ts | 9 -------- .../dialogs/binding/node-binding-dialog.ts | 17 +++++++------- 3 files changed, 16 insertions(+), 33 deletions(-) diff --git a/dashboard/src/components/dialogs/acl/model.ts b/dashboard/src/components/dialogs/acl/model.ts index 88fa9816..cf93df6d 100644 --- a/dashboard/src/components/dialogs/acl/model.ts +++ b/dashboard/src/components/dialogs/acl/model.ts @@ -1,18 +1,18 @@ +export type AccessControlTargetStruct = { + cluster: number | undefined; + endpoint: number | undefined; + deviceType: number | undefined; +}; + export type AccessControlEntryRawInput = { "1": number; "2": number; "3": number[]; - "4": null; + "4": AccessControlTargetStruct[] | undefined; "254": number; }; -export type AccessControlTargetStruct = { - cluster: number | undefined; - endpoint: number | undefined; - deviceType: number | undefined; -}; - export type AccessControlEntryStruct = { privilege: number; authMode: number; @@ -95,15 +95,6 @@ export class AccessControlEntryDataTransformer { } } - if ( - result.privilege === undefined || - result.authMode === undefined || - result.subjects === undefined || - result.fabricIndex === undefined - ) { - throw new Error("Missing required fields in AccessControlEntryStruct"); - } - return result as AccessControlEntryStruct; } } diff --git a/dashboard/src/components/dialogs/binding/model.ts b/dashboard/src/components/dialogs/binding/model.ts index e1b224d3..cc1ade35 100644 --- a/dashboard/src/components/dialogs/binding/model.ts +++ b/dashboard/src/components/dialogs/binding/model.ts @@ -47,15 +47,6 @@ export class BindingEntryDataTransformer { } } - // Validate required fields - if ( - result.node === undefined || - result.endpoint === undefined || - result.fabricIndex === undefined - ) { - throw new Error("Missing required fields in BindingEntryStruct"); - } - return result as BindingEntryStruct; } } diff --git a/dashboard/src/components/dialogs/binding/node-binding-dialog.ts b/dashboard/src/components/dialogs/binding/node-binding-dialog.ts index 2d7dc6db..3fe93111 100644 --- a/dashboard/src/components/dialogs/binding/node-binding-dialog.ts +++ b/dashboard/src/components/dialogs/binding/node-binding-dialog.ts @@ -57,7 +57,6 @@ export class NodeBindingDialog extends LitElement { private fetchACLEntry(targetNodeId: number): AccessControlEntryStruct[] { const acl_cluster_raw: [InputType] = this.client.nodes[targetNodeId].attributes["0/31/0"]; - return Object.values(acl_cluster_raw).map((value: InputType) => AccessControlEntryDataTransformer.transform(value), ); @@ -67,9 +66,10 @@ export class NodeBindingDialog extends LitElement { const rawBindings = this.fetchBindingEntry(); try { const targetNodeId = rawBindings[index].node; + const endpoint = rawBindings[index].endpoint; await this.removeNodeAtACLEntry( this.node!.node_id, - this.endpoint, + endpoint, targetNodeId, ); const updatedBindings = this.removeBindingAtIndex(rawBindings, index); @@ -92,7 +92,6 @@ export class NodeBindingDialog extends LitElement { ) .filter((entry): entry is Exclude => entry !== null); - console.log(updatedACLEntries); await this.client.setACLEntry(targetNodeId, updatedACLEntries); } @@ -100,15 +99,14 @@ export class NodeBindingDialog extends LitElement { nodeId: number, sourceEndpoint: number, entry: AccessControlEntryStruct, - ): AccessControlEntryStruct | null { + ): AccessControlEntryStruct | undefined { const hasSubject = entry.subjects!.includes(nodeId); - if (!hasSubject) return entry; const hasTarget = entry.targets!.filter( (item) => item.endpoint === sourceEndpoint, ); - return hasTarget.length > 0 ? null : entry; + return hasTarget.length > 0 ? undefined : entry; } private removeBindingAtIndex( @@ -216,7 +214,7 @@ export class NodeBindingDialog extends LitElement { return; } if (isNaN(targetCluster) || targetCluster < 0) { - alert("Please enter a valid target endpoint"); + alert("Please enter a valid target cluster"); return; } @@ -234,7 +232,10 @@ export class NodeBindingDialog extends LitElement { fabricIndex: this.client.connection.serverInfo!.fabric_id, }; const result_acl = await this.add_target_acl(targetNodeId, acl_entry); - if (!result_acl) return; + if (!result_acl) { + alert("add target acl error!"); + return; + } const endpoint = this.endpoint; const bindingEntry: BindingEntryStruct = { From a418ea4cfdf4c10e90720354dac0ab957cab21ed Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Wed, 3 Sep 2025 20:37:52 +0200 Subject: [PATCH 243/400] Add comprehensive GitHub Copilot instructions and linting requirements for python-matter-server development (#1231) --- .github/copilot-instructions.md | 252 ++++++++++++++++++++++++++++++++ 1 file changed, 252 insertions(+) create mode 100644 .github/copilot-instructions.md diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md new file mode 100644 index 00000000..cbe8b6cc --- /dev/null +++ b/.github/copilot-instructions.md @@ -0,0 +1,252 @@ +# Python Matter Server + +Python Matter Server is an officially certified Software Component that provides Matter controller support. It serves as the foundation for Matter support in Home Assistant and other projects. The server implements a Matter Controller over WebSockets using the official Matter SDK. + +**Always reference these instructions first and fallback to search or bash commands only when you encounter unexpected information that does not match the info here.** + +## Working Effectively + +### Bootstrap and Setup +- **CRITICAL**: Matter Server requires Linux or macOS with specific IPv6 networking configuration. Windows/WSL is NOT supported. +- Set up the complete development environment: + ```bash + scripts/setup.sh + ``` + - Creates Python virtual environment in `.venv/` + - Installs Python dependencies including Matter SDK components + - Installs pre-commit hooks for code quality + - **TIMING**: Typically takes 3-5 minutes. NEVER CANCEL - wait up to 10 minutes for completion. + - **NETWORK ISSUE**: If pip install fails with timeout errors (common with Matter SDK dependencies), this is due to network limitations, not code issues. + +### Python Server Development +- **Always run the bootstrapping steps first before any Python development** +- Start the Matter server: + ```bash + # Basic server (info log level) + python -m matter_server.server + + # Debug mode + python -m matter_server.server --log-level debug + + # SDK debug mode + python -m matter_server.server --log-level-sdk progress + ``` +- Create `/data` directory with proper permissions if it doesn't exist +- Server runs on port 5580 by default (WebSocket endpoint) +- Alternative entry point: `python main.py` + +### Dashboard Development +- **Dashboard setup** (requires Python dependencies to be available): + ```bash + cd dashboard + script/setup + ``` + - Runs `npm install` (~15 seconds) + - Generates descriptions file from Python source + - **TIMING**: ~30 seconds total. NEVER CANCEL - set timeout to 2+ minutes. + +- **Development server**: + ```bash + cd dashboard + script/develop + ``` + - Starts TypeScript compiler in watch mode + - Starts development server on http://localhost:5010 + - Live reload for development changes + - **TIMING**: Starts in ~5 seconds + +- **Production build**: + ```bash + cd dashboard + script/build + ``` + - Builds optimized TypeScript/JavaScript bundle + - Copies build to `matter_server/dashboard/` directory + - **TIMING**: ~10 seconds. NEVER CANCEL - set timeout to 2+ minutes. + +### Testing and Code Quality +- **Run complete test suite**: + ```bash + scripts/run-in-env.sh pytest --durations 10 --cov-report term-missing --cov=matter_server --cov-report=xml tests/ + ``` + - **TIMING**: Typically 2-3 minutes. NEVER CANCEL - set timeout to 10+ minutes. + +- **Pre-commit validation** (REQUIRED before commits): + ```bash + SKIP=no-commit-to-branch pre-commit run --all-files + ``` + - Runs ruff (linting + formatting), pylint, mypy, codespell, and other checks + - **TIMING**: 1-2 minutes for all files. NEVER CANCEL - set timeout to 5+ minutes. + +- **Individual linting tools**: + ```bash + scripts/run-in-env.sh ruff check --fix + scripts/run-in-env.sh ruff format + scripts/run-in-env.sh pylint matter_server/ tests/ + scripts/run-in-env.sh mypy + ``` + +## Validation Scenarios + +**ALWAYS manually validate changes using complete end-to-end scenarios:** + +### Python Server Validation +1. Start the server: `python -m matter_server.server --log-level debug` +2. Verify WebSocket endpoint responds (server starts without errors) +3. Check dashboard is accessible if built: verify `matter_server/dashboard/` contains files +4. Test example client: `python scripts/example.py` (requires dependencies) + +### Dashboard Validation +1. Build dashboard: `cd dashboard && script/build` +2. Verify build artifacts: check `matter_server/dashboard/js/` contains compiled JavaScript +3. Start development server: `cd dashboard && script/develop` +4. Access http://localhost:5010 and verify dashboard loads +5. Test WebSocket connection input (should prompt for server URL) + +### Pre-commit Validation +**CRITICAL**: Always run before pushing changes or CI will fail: +```bash +SKIP=no-commit-to-branch pre-commit run --all-files +``` + +## Repository Structure + +### Key Directories +``` +matter_server/ # Main Python package +โ”œโ”€โ”€ client/ # Matter client library +โ”œโ”€โ”€ server/ # Matter server implementation +โ”œโ”€โ”€ common/ # Shared utilities +โ””โ”€โ”€ dashboard/ # Built web dashboard (auto-generated) + +dashboard/ # Dashboard source code (TypeScript/Lit) +โ”œโ”€โ”€ src/ # TypeScript source files +โ”œโ”€โ”€ script/ # Build and development scripts +โ””โ”€โ”€ public/ # Static assets + +scripts/ # Development utilities +โ”œโ”€โ”€ setup.sh # Main environment setup +โ”œโ”€โ”€ example.py # Server/client example +โ””โ”€โ”€ generate_descriptions.py # Generates dashboard type definitions + +tests/ # Test suite (pytest-based) +docs/ # Documentation +โ”œโ”€โ”€ os_requirements.md # Operating system setup requirements +โ”œโ”€โ”€ docker.md # Docker deployment guide +โ””โ”€โ”€ websockets_api.md # WebSocket API documentation +``` + +### Important Files +- `pyproject.toml` - Python packaging and tool configuration +- `main.py` - Alternative server entry point +- `.pre-commit-config.yaml` - Code quality hooks configuration +- `DEVELOPMENT.md` - Detailed development setup guide + +## Common Issues and Solutions + +### Network Timeouts During Setup +**SYMPTOM**: `pip install` fails with `ReadTimeoutError` from PyPI +**CAUSE**: Matter SDK dependencies are large and can timeout on slow connections +**SOLUTION**: +- Retry setup: `scripts/setup.sh` +- Use `pip install --timeout 300` for extended timeout +- **Document as known issue** if persistent + +### IPv6/Networking Issues +**SYMPTOM**: Matter devices not discoverable or connection failures +**REFERENCE**: See `docs/os_requirements.md` for complete networking requirements +**KEY REQUIREMENTS**: +- IPv6 support enabled on host interface +- No multicast filtering on network equipment +- Proper ICMPv6 Router Advertisement processing +- For Thread devices: specific kernel options and sysctl settings + +### Pre-commit Hook Failures +**SYMPTOM**: Git commits rejected due to formatting/linting issues +**SOLUTION**: +```bash +SKIP=no-commit-to-branch pre-commit run --all-files +scripts/run-in-env.sh ruff format # Fix formatting +scripts/run-in-env.sh ruff check --fix # Fix linting issues +``` + +### Dashboard Build Issues +**SYMPTOM**: `script/setup` fails with "No module named 'chip'" +**CAUSE**: Python Matter SDK dependencies not installed +**SOLUTION**: Run `scripts/setup.sh` first to install Python dependencies + +## Development Tips + +- **Always** activate virtual environment: `source .venv/bin/activate` +- Use `scripts/run-in-env.sh` for consistent tool execution across environments +- Dashboard development can proceed independently once built once +- Server requires `/data` directory for persistent storage +- Matter protocol requires specific OS and network configuration (see `docs/os_requirements.md`) +- Example usage patterns available in `scripts/example.py` +- WebSocket API documentation in `docs/websockets_api.md` + +## CI/CD Integration + +The project uses GitHub Actions (`.github/workflows/test.yml`): +- Linting: pre-commit hooks on Python 3.12 +- Testing: pytest on Python 3.12 and 3.13 +- **Always ensure pre-commit passes locally** before pushing to avoid CI failures + +## Project Context + +This project implements both server and client components: +- **Server**: Runs Matter Controller with WebSocket API +- **Client**: Python library for consuming the WebSocket API (used by Home Assistant) +- **Dashboard**: Web-based debugging and testing interface +- **Architecture**: Allows multiple consumers to connect to same Matter fabric +- **Deployment**: Available as Home Assistant add-on, Docker container, or standalone + +The separation enables scenarios where the Matter fabric continues running while consumers (like Home Assistant) restart or disconnect. + +## Linting and Code Quality Requirements + +**CRITICAL**: All code changes MUST pass linting checks before submitting PRs. The CI will fail if linting issues are present. + +### Required Linting Steps Before PR Submission + +Always run these commands before committing and pushing changes: + +```bash +# Run all pre-commit checks (REQUIRED) +SKIP=no-commit-to-branch pre-commit run --all-files + +# Individual linting tools for troubleshooting +scripts/run-in-env.sh ruff check --fix # Fix linting issues +scripts/run-in-env.sh ruff format # Fix formatting +scripts/run-in-env.sh pylint matter_server/ tests/ # Check code quality +scripts/run-in-env.sh mypy # Check type annotations +``` + +### Linting Tools Used + +The project uses multiple linting tools enforced via pre-commit hooks: + +- **ruff**: Fast Python linter and formatter (replaces flake8, isort, etc.) +- **pylint**: Static code analysis for code quality +- **mypy**: Static type checking +- **codespell**: Spell checking for code and documentation +- **File format checks**: JSON, TOML validation, trailing whitespace, end-of-file fixers + +### Common Linting Failures + +**Trailing Whitespace**: Remove all trailing spaces from lines +**Missing Newline**: Ensure files end with a single newline character +**Import Order**: Use `ruff format` to fix import sorting +**Type Annotations**: Add type hints where mypy reports missing annotations +**Spelling**: Use `codespell` to check for typos in code and comments + +### Automated Fixing + +Most linting issues can be automatically fixed: + +```bash +scripts/run-in-env.sh ruff check --fix # Auto-fix many linting issues +scripts/run-in-env.sh ruff format # Auto-format code +``` + +**Always verify changes after auto-fixing and run the full pre-commit suite before submitting.** From e04641df2ce3a4c63fa57d238a2c1ea46a8cc73f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 4 Sep 2025 15:56:42 +0200 Subject: [PATCH 244/400] Bump actions/setup-python from 5.6.0 to 6.0.0 (#1236) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 2 +- .github/workflows/test.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7ca77552..12651cf7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,7 +32,7 @@ jobs: fi fi - name: Set up Python ${{ env.PYTHON_VERSION }} - uses: actions/setup-python@v5.6.0 + uses: actions/setup-python@v6.0.0 with: python-version: ${{ env.PYTHON_VERSION }} - name: Set up Node ${{ env.NODE_VERSION }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f54e7168..f5a48804 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,7 +18,7 @@ jobs: - name: Check out code from GitHub uses: actions/checkout@v5.0.0 - name: Set up Python - uses: actions/setup-python@v5.6.0 + uses: actions/setup-python@v6.0.0 with: python-version: "3.12" - name: Install dependencies @@ -44,7 +44,7 @@ jobs: - name: Check out code from GitHub uses: actions/checkout@v5.0.0 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5.6.0 + uses: actions/setup-python@v6.0.0 with: python-version: ${{ matrix.python-version }} - name: Install dependencies From c93d7c0d7f19ec532ac4f8545132ecf713e1d89b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 4 Sep 2025 15:56:59 +0200 Subject: [PATCH 245/400] Bump actions/setup-node from 4 to 5 (#1237) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 12651cf7..bd31d715 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -36,7 +36,7 @@ jobs: with: python-version: ${{ env.PYTHON_VERSION }} - name: Set up Node ${{ env.NODE_VERSION }} - uses: actions/setup-node@v4 + uses: actions/setup-node@v5 with: node-version: ${{ env.NODE_VERSION }} - name: Install build From b709b518004d40e079b0e0ab952a7f0b9ed6fb8e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 4 Sep 2025 15:57:14 +0200 Subject: [PATCH 246/400] Bump pypa/gh-action-pypi-publish from 1.12.4 to 1.13.0 (#1235) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bd31d715..9fc7bf6c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -64,7 +64,7 @@ jobs: run: >- python3 -m build - name: Publish release to PyPI - uses: pypa/gh-action-pypi-publish@v1.12.4 + uses: pypa/gh-action-pypi-publish@v1.13.0 with: user: __token__ password: ${{ secrets.PYPI_TOKEN }} From 992f517f7a6bc739b68841885e051f50b6414367 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 8 Sep 2025 10:55:56 +0200 Subject: [PATCH 247/400] Bump zeroconf from 0.147.0 to 0.147.2 (#1238) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 5ea6b02f..c99834cf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -39,7 +39,7 @@ server = [ "coloredlogs==15.0.1", "cryptography==45.0.7", "orjson==3.11.3", - "zeroconf==0.147.0", + "zeroconf==0.147.2", "home-assistant-chip-core==2025.7.0", ] test = [ From 63a00d083a98b119c39d078f34f23fce6f8835d3 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 8 Sep 2025 10:56:15 +0200 Subject: [PATCH 248/400] Bump pytest from 8.4.1 to 8.4.2 (#1239) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index c99834cf..bb18a145 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -50,7 +50,7 @@ test = [ "pre-commit==4.3.0", "pre-commit-hooks==6.0.0", "pylint==3.3.8", - "pytest==8.4.1", + "pytest==8.4.2", "pytest-asyncio==1.1.0", "pytest-aiohttp==1.1.0", "pytest-cov==6.2.1", From 24c663819435eb68a95dfaf134f4535fc5dfdc77 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 8 Sep 2025 10:56:28 +0200 Subject: [PATCH 249/400] Bump pytest-cov from 6.2.1 to 6.3.0 (#1240) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index bb18a145..a3669af0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -53,7 +53,7 @@ test = [ "pytest==8.4.2", "pytest-asyncio==1.1.0", "pytest-aiohttp==1.1.0", - "pytest-cov==6.2.1", + "pytest-cov==6.3.0", "ruff==0.12.11", "tomli==2.2.1", ] From 7ec8653a1811110aefe82b1c4c65b91e3bcce71a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 8 Sep 2025 11:47:27 +0200 Subject: [PATCH 250/400] Bump ruff from 0.12.11 to 0.12.12 (#1241) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index a3669af0..d45d2b8b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,7 +54,7 @@ test = [ "pytest-asyncio==1.1.0", "pytest-aiohttp==1.1.0", "pytest-cov==6.3.0", - "ruff==0.12.11", + "ruff==0.12.12", "tomli==2.2.1", ] From d4168bd1290e074b18baa2acf4f8ff2619421493 Mon Sep 17 00:00:00 2001 From: dotlambda Date: Mon, 15 Sep 2025 00:24:42 -0700 Subject: [PATCH 251/400] replace async-timeout with asyncio.timeout (#1243) --- matter_server/server/client_handler.py | 3 +-- matter_server/server/helpers/utils.py | 4 +--- pyproject.toml | 2 -- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/matter_server/server/client_handler.py b/matter_server/server/client_handler.py index 2cdb8a84..60b317fd 100644 --- a/matter_server/server/client_handler.py +++ b/matter_server/server/client_handler.py @@ -9,7 +9,6 @@ from typing import TYPE_CHECKING, Any, Final from aiohttp import WSMsgType, web -import async_timeout from chip.exceptions import ChipStackError from matter_server.common.const import VERBOSE_LOG_LEVEL @@ -76,7 +75,7 @@ async def handle_client(self) -> web.WebSocketResponse: request = self.request wsock = self.wsock try: - async with async_timeout.timeout(10): + async with asyncio.timeout(10): await wsock.prepare(request) except asyncio.TimeoutError: self._logger.warning("Timeout preparing request from %s", request.remote) diff --git a/matter_server/server/helpers/utils.py b/matter_server/server/helpers/utils.py index a37425a5..a0a2ab49 100644 --- a/matter_server/server/helpers/utils.py +++ b/matter_server/server/helpers/utils.py @@ -4,8 +4,6 @@ from contextlib import suppress import platform -import async_timeout - PLATFORM_MAC = platform.system() == "Darwin" @@ -24,7 +22,7 @@ async def ping_ip(ip_address: str, timeout: int = 2, attempts: int = 1) -> bool: try: # we add an additional timeout here as safeguard and to account for the fact # that macos does not seem to have timeout on ping6 - async with async_timeout.timeout(timeout + 2): + async with asyncio.timeout(timeout + 2): success = (await check_output(cmd))[0] == 0 if success or not attempts: return success diff --git a/pyproject.toml b/pyproject.toml index d45d2b8b..9278b59e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,7 +17,6 @@ classifiers = [ dependencies = [ "aiohttp", "aiorun", - "async-timeout", "coloredlogs", "orjson", "home-assistant-chip-clusters==2025.7.0", @@ -34,7 +33,6 @@ version = "0.0.0" server = [ "aiohttp==3.12.15", "aiorun==2025.1.1", - "async-timeout==5.0.1", "atomicwrites==1.4.1", "coloredlogs==15.0.1", "cryptography==45.0.7", From 51f57207872254f270a6de08d1957e6793ecc11c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 15 Sep 2025 11:00:15 +0200 Subject: [PATCH 252/400] Bump pytest-cov from 6.3.0 to 7.0.0 (#1247) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 9278b59e..80ddc063 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -51,7 +51,7 @@ test = [ "pytest==8.4.2", "pytest-asyncio==1.1.0", "pytest-aiohttp==1.1.0", - "pytest-cov==6.3.0", + "pytest-cov==7.0.0", "ruff==0.12.12", "tomli==2.2.1", ] From 66ff2150800a688b48654eddbb5e5cdabdf1572e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 15 Sep 2025 11:00:32 +0200 Subject: [PATCH 253/400] Bump pytest-asyncio from 1.1.0 to 1.2.0 (#1245) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 80ddc063..77122f86 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -49,7 +49,7 @@ test = [ "pre-commit-hooks==6.0.0", "pylint==3.3.8", "pytest==8.4.2", - "pytest-asyncio==1.1.0", + "pytest-asyncio==1.2.0", "pytest-aiohttp==1.1.0", "pytest-cov==7.0.0", "ruff==0.12.12", From 2f64c9eec53b57fd625ad8f73c5856007ebd0362 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 15 Sep 2025 11:01:02 +0200 Subject: [PATCH 254/400] Bump mypy from 1.17.1 to 1.18.1 (#1244) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 77122f86..136bdeed 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -44,7 +44,7 @@ test = [ "aioresponses==0.7.8", "codespell==2.4.1", "isort==6.0.1", - "mypy==1.17.1", + "mypy==1.18.1", "pre-commit==4.3.0", "pre-commit-hooks==6.0.0", "pylint==3.3.8", From 394ee1299c88763d5b7eafa65c84a0b5f4687c74 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 15 Sep 2025 11:50:32 +0200 Subject: [PATCH 255/400] Bump ruff from 0.12.12 to 0.13.0 (#1246) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 136bdeed..6ecb81a0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,7 +52,7 @@ test = [ "pytest-asyncio==1.2.0", "pytest-aiohttp==1.1.0", "pytest-cov==7.0.0", - "ruff==0.12.12", + "ruff==0.13.0", "tomli==2.2.1", ] From eb90e6609f61bf7dfb620badeaa3bf0e7fa66a6a Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Mon, 15 Sep 2025 12:13:20 +0200 Subject: [PATCH 256/400] Update release drafter workflow permission (#1249) --- .github/workflows/release-drafter.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index 1c3e89de..8c92d224 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -7,6 +7,9 @@ on: jobs: update_release_draft: + permissions: + contents: write # for release-drafter/release-drafter to create a github release + pull-requests: read # for release-drafter/release-drafter to read PR content and labels runs-on: ubuntu-latest steps: # Drafts your next Release notes as Pull Requests are merged into "master" From 057990e3af7fb83059e23d74945130d3ca587f02 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Mon, 15 Sep 2025 12:25:30 +0200 Subject: [PATCH 257/400] Bump OTA Provider to 2025.9.0 (#1248) --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index fed4062c..133fb300 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,7 +26,7 @@ RUN \ ARG PYTHON_MATTER_SERVER -ENV chip_example_url "https://github.com/home-assistant-libs/matter-linux-ota-provider/releases/download/2025.5.0" +ENV chip_example_url "https://github.com/home-assistant-libs/matter-linux-ota-provider/releases/download/2025.9.0" ARG TARGETPLATFORM RUN \ From 0d1ceb29b4ccb0ce5c6848eb32fbb359e8da9e00 Mon Sep 17 00:00:00 2001 From: Luxni <307993459@qq.com> Date: Wed, 17 Sep 2025 15:14:56 +0800 Subject: [PATCH 258/400] Set the cluster item in Binding as an option (#1242) Co-authored-by: Ingo Fischer --- .../dialogs/binding/node-binding-dialog.ts | 125 ++++++++++++++---- 1 file changed, 101 insertions(+), 24 deletions(-) diff --git a/dashboard/src/components/dialogs/binding/node-binding-dialog.ts b/dashboard/src/components/dialogs/binding/node-binding-dialog.ts index 3fe93111..ba187201 100644 --- a/dashboard/src/components/dialogs/binding/node-binding-dialog.ts +++ b/dashboard/src/components/dialogs/binding/node-binding-dialog.ts @@ -38,13 +38,13 @@ export class NodeBindingDialog extends LitElement { @property({ attribute: false }) endpoint!: number; - @query("md-outlined-text-field[label='node id']") + @query("md-outlined-text-field[name='NodeId']") private _targetNodeId!: MdOutlinedTextField; - @query("md-outlined-text-field[label='endpoint']") + @query("md-outlined-text-field[name='Endpoint']") private _targetEndpoint!: MdOutlinedTextField; - @query("md-outlined-text-field[label='cluster']") + @query("md-outlined-text-field[name='Cluster']") private _targetCluster!: MdOutlinedTextField; private fetchBindingEntry(): BindingEntryStruct[] { @@ -201,21 +201,42 @@ export class NodeBindingDialog extends LitElement { } async addBindingHandler() { - const targetNodeId = parseInt(this._targetNodeId.value, 10); - const targetEndpoint = parseInt(this._targetEndpoint.value, 10); - const targetCluster = parseInt(this._targetCluster.value, 10); - - if (isNaN(targetNodeId) || targetNodeId <= 0) { + const targetNodeId = this._targetNodeId.value + ? parseInt(this._targetNodeId.value, 10) + : undefined; + const targetEndpoint = this._targetEndpoint.value + ? parseInt(this._targetEndpoint.value, 10) + : undefined; + const targetCluster = this._targetCluster.value + ? parseInt(this._targetCluster.value, 10) + : undefined; + + // Matter Server does not use random NodeIds, so this is ok for now, but needs to be adjusted later + if ( + targetNodeId === undefined || + targetNodeId <= 0 || + targetNodeId > 65535 + ) { alert("Please enter a valid target node ID"); return; } - if (isNaN(targetEndpoint) || targetEndpoint < 0) { + + if ( + targetEndpoint === undefined || + targetEndpoint <= 0 || + targetEndpoint > 0xfffe + ) { alert("Please enter a valid target endpoint"); return; } - if (isNaN(targetCluster) || targetCluster < 0) { - alert("Please enter a valid target cluster"); - return; + + // cluster optional + if (targetCluster !== undefined) { + // We ignore vendor specific clusters for now + if (targetCluster < 0 || targetCluster > 0x7fff) { + alert("Please enter a valid target cluster"); + return; + } } const targets: AccessControlTargetStruct = { @@ -231,6 +252,7 @@ export class NodeBindingDialog extends LitElement { targets: [targets], fabricIndex: this.client.connection.serverInfo!.fabric_id, }; + const result_acl = await this.add_target_acl(targetNodeId, acl_entry); if (!result_acl) { alert("add target acl error!"); @@ -264,6 +286,23 @@ export class NodeBindingDialog extends LitElement { this.parentNode!.removeChild(this); } + private onChange(e: Event) { + const textfield = e.target as MdOutlinedTextField; + const value = parseInt(textfield.value, 10); + + if ( + parseInt(textfield.max, 10) < value || + value < parseInt(textfield.min, 10) + ) { + textfield.error = true; + textfield.errorText = "value error"; + } else { + textfield.error = false; + } + + // console.log(`value: ${value} error: ${textfield.error}`); + } + protected render() { const bindings = Object.values( this.node!.attributes[this.endpoint + "/30/0"], @@ -296,18 +335,50 @@ export class NodeBindingDialog extends LitElement {
target
- - - +
+ + + +
+
+
+ + Note: The Cluster ID field is optional according to the Matter + specification. If you leave it blank, the binding applies to all + eligible clusters on the target endpoint. However, some devices + may require a specific cluster to be set in order for the + binding to function correctly. If you experience unexpected + behavior, try specifying the cluster explicitly. +
@@ -329,6 +400,11 @@ export class NodeBindingDialog extends LitElement { margin: 8px; } + .group-input { + display: flex; + width: -webkit-fill-available; + } + .target-item { display: inline-block; padding: 20px 10px 10px 10px; @@ -336,6 +412,7 @@ export class NodeBindingDialog extends LitElement { vertical-align: middle; min-width: 80px; text-align: center; + width: -webkit-fill-available; } .group-label { From 2a4b957357ed7ffcf846ca7b289c0e8b776e4363 Mon Sep 17 00:00:00 2001 From: Ingo Fischer Date: Sat, 20 Sep 2025 20:32:35 +0200 Subject: [PATCH 259/400] Announce Matter Server rewrite and maintenance mode (#1250) --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 52602f4f..5a167147 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,11 @@ This project implements a Matter Controller Server over WebSockets using the [official Matter (formerly CHIP) SDK](https://github.com/project-chip/connectedhomeip) as a base and provides both a server and client implementation. +> [!IMPORTANT] +> Weโ€™re excited to share that the Matter Server is being rewritten on top of [matter.js](https://github.com/matter-js/matter.js)! ๐ŸŽ‰ +> This means that the current project has moved into **maintenance mode** โ€” weโ€™ll still fix important bugs if they come up, but all new features will land in the new project instead. +> Weโ€™ll post a link as soon as the first **alpha version** is ready for you to try out. ๐Ÿš€ + The Open Home Foundation Matter Server software component is funded by [Nabu Casa](https://www.nabucasa.com/) (a member of the CSA) and donated to [The Open Home Foundation](https://www.openhomefoundation.org/). ## Support From 1a9e9d6986f5b72c60ea58409d277183ac528831 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 22 Sep 2025 10:33:52 +0200 Subject: [PATCH 260/400] Bump ruff from 0.13.0 to 0.13.1 (#1253) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 6ecb81a0..cb6e761c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,7 +52,7 @@ test = [ "pytest-asyncio==1.2.0", "pytest-aiohttp==1.1.0", "pytest-cov==7.0.0", - "ruff==0.13.0", + "ruff==0.13.1", "tomli==2.2.1", ] From 93af24b88f7b77ec7edf15ebde98952003d87b2f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 23 Sep 2025 15:43:53 +0200 Subject: [PATCH 261/400] Bump cryptography from 45.0.7 to 46.0.1 (#1252) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index cb6e761c..6c306adb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,7 +35,7 @@ server = [ "aiorun==2025.1.1", "atomicwrites==1.4.1", "coloredlogs==15.0.1", - "cryptography==45.0.7", + "cryptography==46.0.1", "orjson==3.11.3", "zeroconf==0.147.2", "home-assistant-chip-core==2025.7.0", From 84ea3d6b9f99420a1cfa1a01db50e9f25a42ef02 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 23 Sep 2025 15:44:10 +0200 Subject: [PATCH 262/400] Bump mypy from 1.18.1 to 1.18.2 (#1251) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 6c306adb..ef509105 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -44,7 +44,7 @@ test = [ "aioresponses==0.7.8", "codespell==2.4.1", "isort==6.0.1", - "mypy==1.18.1", + "mypy==1.18.2", "pre-commit==4.3.0", "pre-commit-hooks==6.0.0", "pylint==3.3.8", From 3f97ae2f10c9cc3228d57cbe0fb4cf4b261e0c63 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 29 Sep 2025 12:07:12 +0200 Subject: [PATCH 263/400] Bump ruff from 0.13.1 to 0.13.2 (#1254) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index ef509105..edd4990a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,7 +52,7 @@ test = [ "pytest-asyncio==1.2.0", "pytest-aiohttp==1.1.0", "pytest-cov==7.0.0", - "ruff==0.13.1", + "ruff==0.13.2", "tomli==2.2.1", ] From 716a9a5ca60c234ae5240b2d8682e5e97eb7e985 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 1 Oct 2025 12:05:23 +0200 Subject: [PATCH 264/400] Bump docker/login-action from 3.5.0 to 3.6.0 (#1255) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9fc7bf6c..d81c2585 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -79,7 +79,7 @@ jobs: steps: - uses: actions/checkout@v5.0.0 - name: Log in to the GitHub container registry - uses: docker/login-action@v3.5.0 + uses: docker/login-action@v3.6.0 with: registry: ghcr.io username: ${{ github.repository_owner }} From 1dc6ae3cd35bf395f4f9a97d6e106596b6f88c40 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 6 Oct 2025 13:59:51 +0200 Subject: [PATCH 265/400] Bump ruff from 0.13.2 to 0.13.3 (#1261) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index edd4990a..aa96ca67 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,7 +52,7 @@ test = [ "pytest-asyncio==1.2.0", "pytest-aiohttp==1.1.0", "pytest-cov==7.0.0", - "ruff==0.13.2", + "ruff==0.13.3", "tomli==2.2.1", ] From 3a57bdb81dbc0fc38d7cbfa20d5c3e1dfe3bb2c4 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 6 Oct 2025 14:00:03 +0200 Subject: [PATCH 266/400] Bump isort from 6.0.1 to 6.1.0 (#1260) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index aa96ca67..29a211c5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -43,7 +43,7 @@ server = [ test = [ "aioresponses==0.7.8", "codespell==2.4.1", - "isort==6.0.1", + "isort==6.1.0", "mypy==1.18.2", "pre-commit==4.3.0", "pre-commit-hooks==6.0.0", From f7c8068f453d0bc7cb77e05286797c54532cb418 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 6 Oct 2025 14:00:15 +0200 Subject: [PATCH 267/400] Bump cryptography from 46.0.1 to 46.0.2 (#1259) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 29a211c5..8e95e94c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,7 +35,7 @@ server = [ "aiorun==2025.1.1", "atomicwrites==1.4.1", "coloredlogs==15.0.1", - "cryptography==46.0.1", + "cryptography==46.0.2", "orjson==3.11.3", "zeroconf==0.147.2", "home-assistant-chip-core==2025.7.0", From 6f8cae2508b56e55b1f88546ce0840504b1a20fb Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 6 Oct 2025 14:00:28 +0200 Subject: [PATCH 268/400] Bump zeroconf from 0.147.2 to 0.148.0 (#1258) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 8e95e94c..854c55b8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,7 +37,7 @@ server = [ "coloredlogs==15.0.1", "cryptography==46.0.2", "orjson==3.11.3", - "zeroconf==0.147.2", + "zeroconf==0.148.0", "home-assistant-chip-core==2025.7.0", ] test = [ From 3bff5fddb7310dc1dbb0a34ed32a172fe781b0e9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 6 Oct 2025 14:00:40 +0200 Subject: [PATCH 269/400] Bump pylint from 3.3.8 to 3.3.9 (#1257) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 854c55b8..0364ee36 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -47,7 +47,7 @@ test = [ "mypy==1.18.2", "pre-commit==4.3.0", "pre-commit-hooks==6.0.0", - "pylint==3.3.8", + "pylint==3.3.9", "pytest==8.4.2", "pytest-asyncio==1.2.0", "pytest-aiohttp==1.1.0", From d68a70d8706b0964749ea38a5325f5c3aabedb5e Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Mon, 6 Oct 2025 16:28:05 +0200 Subject: [PATCH 270/400] Update Docker image reference for Matter server container image (#1262) --- docs/docker.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/docker.md b/docs/docker.md index 73bc51f9..77b3d573 100644 --- a/docs/docker.md +++ b/docs/docker.md @@ -33,7 +33,7 @@ docker run -d \ --security-opt apparmor=unconfined \ -v $(pwd)/data:/data \ --network=host \ - ghcr.io/home-assistant-libs/python-matter-server:stable + ghcr.io/matter-js/python-matter-server:stable ``` > [!NOTE] @@ -49,7 +49,7 @@ docker run -d \ -v $(pwd)/data:/data \ -v /run/dbus:/run/dbus:ro \ --network=host \ - ghcr.io/home-assistant-libs/python-matter-server:stable --storage-path /data --paa-root-cert-dir /data/credentials --bluetooth-adapter 0 + ghcr.io/matter-js/python-matter-server:stable --storage-path /data --paa-root-cert-dir /data/credentials --bluetooth-adapter 0 ``` ## Running using Docker compose @@ -58,7 +58,7 @@ docker run -d \ services: # python-matter-server matter-server: - image: ghcr.io/home-assistant-libs/python-matter-server:stable + image: ghcr.io/matter-js/python-matter-server:stable container_name: matter-server restart: unless-stopped # Required for mDNS to work correctly From 2941e0eb248eae6089976ce4c8804f6a77e3514d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 13 Oct 2025 12:23:15 +0200 Subject: [PATCH 271/400] Bump ruff from 0.13.3 to 0.14.0 (#1263) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 0364ee36..f740ecfe 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,7 +52,7 @@ test = [ "pytest-asyncio==1.2.0", "pytest-aiohttp==1.1.0", "pytest-cov==7.0.0", - "ruff==0.13.3", + "ruff==0.14.0", "tomli==2.2.1", ] From e1c84181a2fd5fef9a90551216707504b3cb43b8 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 13 Oct 2025 12:29:48 +0200 Subject: [PATCH 272/400] Bump pylint from 3.3.9 to 4.0.0 (#1266) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index f740ecfe..eb62ca73 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -47,7 +47,7 @@ test = [ "mypy==1.18.2", "pre-commit==4.3.0", "pre-commit-hooks==6.0.0", - "pylint==3.3.9", + "pylint==4.0.0", "pytest==8.4.2", "pytest-asyncio==1.2.0", "pytest-aiohttp==1.1.0", From bfdb028323aabc2cdc3be74bd44bda587f48ad56 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 13 Oct 2025 16:15:54 +0200 Subject: [PATCH 273/400] Bump tomli from 2.2.1 to 2.3.0 (#1264) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index eb62ca73..f95dfa44 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -53,7 +53,7 @@ test = [ "pytest-aiohttp==1.1.0", "pytest-cov==7.0.0", "ruff==0.14.0", - "tomli==2.2.1", + "tomli==2.3.0", ] [project.scripts] From d47a76c5722659ef30bd46b014a00a0dd13346f0 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 13 Oct 2025 17:23:09 +0200 Subject: [PATCH 274/400] Bump isort from 6.1.0 to 7.0.0 (#1267) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index f95dfa44..e0f33ee1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -43,7 +43,7 @@ server = [ test = [ "aioresponses==0.7.8", "codespell==2.4.1", - "isort==6.1.0", + "isort==7.0.0", "mypy==1.18.2", "pre-commit==4.3.0", "pre-commit-hooks==6.0.0", From c478facfbf11c8e2cf84850ceeeca5a5e315b6d7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 14 Oct 2025 12:00:16 +0200 Subject: [PATCH 275/400] Bump actions/setup-node from 5 to 6 (#1268) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d81c2585..60d63321 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -36,7 +36,7 @@ jobs: with: python-version: ${{ env.PYTHON_VERSION }} - name: Set up Node ${{ env.NODE_VERSION }} - uses: actions/setup-node@v5 + uses: actions/setup-node@v6 with: node-version: ${{ env.NODE_VERSION }} - name: Install build From 4ffe3051a29c935939e70e42511fa929d5de5f24 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 15 Oct 2025 14:30:04 +0200 Subject: [PATCH 276/400] Bump aiohttp from 3.12.15 to 3.13.0 (#1265) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index e0f33ee1..474671e0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -31,7 +31,7 @@ version = "0.0.0" [project.optional-dependencies] server = [ - "aiohttp==3.12.15", + "aiohttp==3.13.0", "aiorun==2025.1.1", "atomicwrites==1.4.1", "coloredlogs==15.0.1", From dc2dfabbee5d6aca39e2ac2dd5b12408f8217751 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 20 Oct 2025 15:21:08 +0200 Subject: [PATCH 277/400] Bump aiohttp from 3.13.0 to 3.13.1 (#1270) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 474671e0..3a0c8800 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -31,7 +31,7 @@ version = "0.0.0" [project.optional-dependencies] server = [ - "aiohttp==3.13.0", + "aiohttp==3.13.1", "aiorun==2025.1.1", "atomicwrites==1.4.1", "coloredlogs==15.0.1", From 9d56fa3ed3c24ce391ec00bbfbd16fa90d363728 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 20 Oct 2025 15:21:40 +0200 Subject: [PATCH 278/400] Bump ruff from 0.14.0 to 0.14.1 (#1271) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 3a0c8800..d23336e0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,7 +52,7 @@ test = [ "pytest-asyncio==1.2.0", "pytest-aiohttp==1.1.0", "pytest-cov==7.0.0", - "ruff==0.14.0", + "ruff==0.14.1", "tomli==2.3.0", ] From 5e9c2e158c3720506a4c0e4e89d93ea5b6cd7f27 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 20 Oct 2025 18:10:32 +0200 Subject: [PATCH 279/400] Bump cryptography from 46.0.2 to 46.0.3 (#1269) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index d23336e0..da29637d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,7 +35,7 @@ server = [ "aiorun==2025.1.1", "atomicwrites==1.4.1", "coloredlogs==15.0.1", - "cryptography==46.0.2", + "cryptography==46.0.3", "orjson==3.11.3", "zeroconf==0.148.0", "home-assistant-chip-core==2025.7.0", From 92f5cbf5c9dc46d803b1e0b6bd6f5a906ffb6d2e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 23 Oct 2025 09:20:53 +0200 Subject: [PATCH 280/400] Bump pylint from 4.0.0 to 4.0.1 (#1272) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index da29637d..533f23f1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -47,7 +47,7 @@ test = [ "mypy==1.18.2", "pre-commit==4.3.0", "pre-commit-hooks==6.0.0", - "pylint==4.0.0", + "pylint==4.0.1", "pytest==8.4.2", "pytest-asyncio==1.2.0", "pytest-aiohttp==1.1.0", From ea50e73e0a15cbd57961a6c0d9302df32c28a4fe Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 3 Nov 2025 14:02:45 +0100 Subject: [PATCH 281/400] Bump pylint from 4.0.1 to 4.0.2 (#1274) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 533f23f1..78682ff9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -47,7 +47,7 @@ test = [ "mypy==1.18.2", "pre-commit==4.3.0", "pre-commit-hooks==6.0.0", - "pylint==4.0.1", + "pylint==4.0.2", "pytest==8.4.2", "pytest-asyncio==1.2.0", "pytest-aiohttp==1.1.0", From 6eed642d006acfa30fdeea152fbc780793334080 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 3 Nov 2025 14:03:06 +0100 Subject: [PATCH 282/400] Bump orjson from 3.11.3 to 3.11.4 (#1275) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 78682ff9..74a60735 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -36,7 +36,7 @@ server = [ "atomicwrites==1.4.1", "coloredlogs==15.0.1", "cryptography==46.0.3", - "orjson==3.11.3", + "orjson==3.11.4", "zeroconf==0.148.0", "home-assistant-chip-core==2025.7.0", ] From b7eed4b1221502be14b7e16df6e98ee989f0532b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 3 Nov 2025 14:03:39 +0100 Subject: [PATCH 283/400] Bump ruff from 0.14.1 to 0.14.3 (#1277) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 74a60735..40c89f70 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,7 +52,7 @@ test = [ "pytest-asyncio==1.2.0", "pytest-aiohttp==1.1.0", "pytest-cov==7.0.0", - "ruff==0.14.1", + "ruff==0.14.3", "tomli==2.3.0", ] From 8fa6270767d6824119cb4ea2fd4c6df139aedf46 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 3 Nov 2025 15:22:02 +0100 Subject: [PATCH 284/400] Bump aiohttp from 3.13.1 to 3.13.2 (#1276) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 40c89f70..bf81d4ee 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -31,7 +31,7 @@ version = "0.0.0" [project.optional-dependencies] server = [ - "aiohttp==3.13.1", + "aiohttp==3.13.2", "aiorun==2025.1.1", "atomicwrites==1.4.1", "coloredlogs==15.0.1", From 8dce4600d9f3bebc2b40013bba4ef18ba1d6c09a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 10 Nov 2025 12:57:44 +0100 Subject: [PATCH 285/400] Bump pre-commit from 4.3.0 to 4.4.0 (#1278) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index bf81d4ee..7964814b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -45,7 +45,7 @@ test = [ "codespell==2.4.1", "isort==7.0.0", "mypy==1.18.2", - "pre-commit==4.3.0", + "pre-commit==4.4.0", "pre-commit-hooks==6.0.0", "pylint==4.0.2", "pytest==8.4.2", From 7b5d3ac58efc4d113da9cd2d490a8f4a35497837 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 10 Nov 2025 12:57:56 +0100 Subject: [PATCH 286/400] Bump ruff from 0.14.3 to 0.14.4 (#1280) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 7964814b..3d83bd98 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,7 +52,7 @@ test = [ "pytest-asyncio==1.2.0", "pytest-aiohttp==1.1.0", "pytest-cov==7.0.0", - "ruff==0.14.3", + "ruff==0.14.4", "tomli==2.3.0", ] From 65b4a6290b2878c14be672a7a70fa2529f11a112 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 17 Nov 2025 09:38:47 +0100 Subject: [PATCH 287/400] Bump pytest-asyncio from 1.2.0 to 1.3.0 (#1284) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 3d83bd98..b9c98ea7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -49,7 +49,7 @@ test = [ "pre-commit-hooks==6.0.0", "pylint==4.0.2", "pytest==8.4.2", - "pytest-asyncio==1.2.0", + "pytest-asyncio==1.3.0", "pytest-aiohttp==1.1.0", "pytest-cov==7.0.0", "ruff==0.14.4", From ce6be43d7953d763941804ca406f4d77dbe18393 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 17 Nov 2025 09:58:30 +0100 Subject: [PATCH 288/400] Bump pylint from 4.0.2 to 4.0.3 (#1282) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index b9c98ea7..70fe8601 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -47,7 +47,7 @@ test = [ "mypy==1.18.2", "pre-commit==4.4.0", "pre-commit-hooks==6.0.0", - "pylint==4.0.2", + "pylint==4.0.3", "pytest==8.4.2", "pytest-asyncio==1.3.0", "pytest-aiohttp==1.1.0", From a744e1a3bfc3d66975e032f5287ac8a5eeac36b8 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 17 Nov 2025 09:59:26 +0100 Subject: [PATCH 289/400] Bump ruff from 0.14.4 to 0.14.5 (#1283) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 70fe8601..bc570e34 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,7 +52,7 @@ test = [ "pytest-asyncio==1.3.0", "pytest-aiohttp==1.1.0", "pytest-cov==7.0.0", - "ruff==0.14.4", + "ruff==0.14.5", "tomli==2.3.0", ] From 6083e27a7b5f030536b691d156167f381bf21521 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 17 Nov 2025 10:04:29 +0100 Subject: [PATCH 290/400] Bump pytest from 8.4.2 to 9.0.1 (#1285) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index bc570e34..78da4615 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -48,7 +48,7 @@ test = [ "pre-commit==4.4.0", "pre-commit-hooks==6.0.0", "pylint==4.0.3", - "pytest==8.4.2", + "pytest==9.0.1", "pytest-asyncio==1.3.0", "pytest-aiohttp==1.1.0", "pytest-cov==7.0.0", From 83b1f96c4449e24c6cf34d95db43abb362285eff Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 18 Nov 2025 13:12:01 +0100 Subject: [PATCH 291/400] Bump actions/checkout from 5.0.0 to 5.0.1 (#1286) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 4 ++-- .github/workflows/test.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 60d63321..ff362da7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,7 +14,7 @@ jobs: outputs: version: ${{ steps.vars.outputs.tag }} steps: - - uses: actions/checkout@v5.0.0 + - uses: actions/checkout@v5.0.1 - name: Get tag id: vars run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT @@ -77,7 +77,7 @@ jobs: packages: write needs: build-and-publish-pypi steps: - - uses: actions/checkout@v5.0.0 + - uses: actions/checkout@v5.0.1 - name: Log in to the GitHub container registry uses: docker/login-action@v3.6.0 with: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f5a48804..e7a7798b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,7 +16,7 @@ jobs: steps: - name: Check out code from GitHub - uses: actions/checkout@v5.0.0 + uses: actions/checkout@v5.0.1 - name: Set up Python uses: actions/setup-python@v6.0.0 with: @@ -42,7 +42,7 @@ jobs: steps: - name: Check out code from GitHub - uses: actions/checkout@v5.0.0 + uses: actions/checkout@v5.0.1 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v6.0.0 with: From 462e4f4ed89a01aa53b75833a556f41d640d3c48 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 21 Nov 2025 12:37:59 +0100 Subject: [PATCH 292/400] Bump actions/checkout from 5.0.1 to 6.0.0 (#1287) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 4 ++-- .github/workflows/test.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ff362da7..8bd78e50 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,7 +14,7 @@ jobs: outputs: version: ${{ steps.vars.outputs.tag }} steps: - - uses: actions/checkout@v5.0.1 + - uses: actions/checkout@v6.0.0 - name: Get tag id: vars run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT @@ -77,7 +77,7 @@ jobs: packages: write needs: build-and-publish-pypi steps: - - uses: actions/checkout@v5.0.1 + - uses: actions/checkout@v6.0.0 - name: Log in to the GitHub container registry uses: docker/login-action@v3.6.0 with: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e7a7798b..a0038aec 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,7 +16,7 @@ jobs: steps: - name: Check out code from GitHub - uses: actions/checkout@v5.0.1 + uses: actions/checkout@v6.0.0 - name: Set up Python uses: actions/setup-python@v6.0.0 with: @@ -42,7 +42,7 @@ jobs: steps: - name: Check out code from GitHub - uses: actions/checkout@v5.0.1 + uses: actions/checkout@v6.0.0 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v6.0.0 with: From 09768bb695729b76eebfd3fb63c6b1fe2d42ab83 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 24 Nov 2025 09:20:09 +0100 Subject: [PATCH 293/400] Bump ruff from 0.14.5 to 0.14.6 (#1290) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 78da4615..b1859e0c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,7 +52,7 @@ test = [ "pytest-asyncio==1.3.0", "pytest-aiohttp==1.1.0", "pytest-cov==7.0.0", - "ruff==0.14.5", + "ruff==0.14.6", "tomli==2.3.0", ] From 321e6b6e68157dbb41dce29f89b401e5e69ca0c9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 24 Nov 2025 09:20:23 +0100 Subject: [PATCH 294/400] Bump pre-commit from 4.4.0 to 4.5.0 (#1289) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index b1859e0c..947ca150 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -45,7 +45,7 @@ test = [ "codespell==2.4.1", "isort==7.0.0", "mypy==1.18.2", - "pre-commit==4.4.0", + "pre-commit==4.5.0", "pre-commit-hooks==6.0.0", "pylint==4.0.3", "pytest==9.0.1", From 29493ad8b2d5d2fbb75e0ee95c571a2f696c6da1 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 25 Nov 2025 09:45:24 +0100 Subject: [PATCH 295/400] Bump actions/setup-python from 6.0.0 to 6.1.0 (#1291) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 2 +- .github/workflows/test.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8bd78e50..9b222880 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,7 +32,7 @@ jobs: fi fi - name: Set up Python ${{ env.PYTHON_VERSION }} - uses: actions/setup-python@v6.0.0 + uses: actions/setup-python@v6.1.0 with: python-version: ${{ env.PYTHON_VERSION }} - name: Set up Node ${{ env.NODE_VERSION }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a0038aec..c74c1164 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,7 +18,7 @@ jobs: - name: Check out code from GitHub uses: actions/checkout@v6.0.0 - name: Set up Python - uses: actions/setup-python@v6.0.0 + uses: actions/setup-python@v6.1.0 with: python-version: "3.12" - name: Install dependencies @@ -44,7 +44,7 @@ jobs: - name: Check out code from GitHub uses: actions/checkout@v6.0.0 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v6.0.0 + uses: actions/setup-python@v6.1.0 with: python-version: ${{ matrix.python-version }} - name: Install dependencies From d8b014f5fb25e027320d270f93a5b516a3a29b0d Mon Sep 17 00:00:00 2001 From: Florian Behrens Date: Tue, 25 Nov 2025 09:47:40 +0100 Subject: [PATCH 296/400] Fix typo in Linux OS requirements section (#1288) --- docs/os_requirements.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/os_requirements.md b/docs/os_requirements.md index 842afb2a..f63139db 100644 --- a/docs/os_requirements.md +++ b/docs/os_requirements.md @@ -23,7 +23,7 @@ The only supported operating systems for developing or running the Matter Server For a MacOS (development) environment, things will work fine out of the box from MacOS 14 or higher (arm-based CPU). In combination with a python venv, it makes up for the recommended development environment for working on the Matter codebase. -For a Linux operating system, keep the following recomemndations in mind: +For a Linux operating system, keep the following recommendations in mind: > your host must process ICMPv6 Router Advertisements. See the [openthread.io > Bidirectional IPv6 Connectivity code labs](https://openthread.io/codelabs/openthread-border-router#6) From 5c0c02e608de132ee5dc80f9fae6355dc0aa4df2 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 1 Dec 2025 10:45:37 +0100 Subject: [PATCH 297/400] Bump ruff from 0.14.6 to 0.14.7 (#1292) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 947ca150..edf453e3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,7 +52,7 @@ test = [ "pytest-asyncio==1.3.0", "pytest-aiohttp==1.1.0", "pytest-cov==7.0.0", - "ruff==0.14.6", + "ruff==0.14.7", "tomli==2.3.0", ] From 98f06353f38d5ebd7d5d5d83bb62550fcdbc68ba Mon Sep 17 00:00:00 2001 From: Matthijs Mullender Date: Tue, 2 Dec 2025 11:51:32 -0800 Subject: [PATCH 298/400] Update node.ts to handle non-string label data (#1281) Co-authored-by: Matthijs Mullender --- dashboard/src/client/models/node.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dashboard/src/client/models/node.ts b/dashboard/src/client/models/node.ts index 89e6af13..f09865a9 100644 --- a/dashboard/src/client/models/node.ts +++ b/dashboard/src/client/models/node.ts @@ -21,7 +21,7 @@ export class MatterNode { get nodeLabel(): string { const label = this.attributes["0/40/5"]; - if (!label) return ''; + if (typeof label !== "string") return ''; if (label.includes("\u0000\u0000")) return ''; return label.trim(); } From 9e3476220bab83c0ee9dd78682251e87ca64791d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 3 Dec 2025 15:07:33 +0100 Subject: [PATCH 299/400] Bump actions/checkout from 6.0.0 to 6.0.1 (#1295) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 4 ++-- .github/workflows/test.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9b222880..7af0b5c3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,7 +14,7 @@ jobs: outputs: version: ${{ steps.vars.outputs.tag }} steps: - - uses: actions/checkout@v6.0.0 + - uses: actions/checkout@v6.0.1 - name: Get tag id: vars run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT @@ -77,7 +77,7 @@ jobs: packages: write needs: build-and-publish-pypi steps: - - uses: actions/checkout@v6.0.0 + - uses: actions/checkout@v6.0.1 - name: Log in to the GitHub container registry uses: docker/login-action@v3.6.0 with: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c74c1164..e85db536 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,7 +16,7 @@ jobs: steps: - name: Check out code from GitHub - uses: actions/checkout@v6.0.0 + uses: actions/checkout@v6.0.1 - name: Set up Python uses: actions/setup-python@v6.1.0 with: @@ -42,7 +42,7 @@ jobs: steps: - name: Check out code from GitHub - uses: actions/checkout@v6.0.0 + uses: actions/checkout@v6.0.1 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v6.1.0 with: From fd25f53799ba7d3f00e7812bb0a49cbb885d8c83 Mon Sep 17 00:00:00 2001 From: LeoXie <2442926161@qq.com> Date: Thu, 4 Dec 2025 15:39:16 +0800 Subject: [PATCH 300/400] add siren and mute for heiman smoke alarm (#1296) --- matter_server/common/custom_clusters.py | 50 +++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/matter_server/common/custom_clusters.py b/matter_server/common/custom_clusters.py index 95144d6d..1fcdb722 100644 --- a/matter_server/common/custom_clusters.py +++ b/matter_server/common/custom_clusters.py @@ -664,6 +664,12 @@ def descriptor(cls) -> ClusterObjectDescriptor: ClusterObjectFieldDescriptor( Label="sensorType", Tag=0x00120B0013, Type=uint ), + ClusterObjectFieldDescriptor( + Label="sirenActive", Tag=0x00120B0014, Type=uint + ), + ClusterObjectFieldDescriptor( + Label="alarmMute", Tag=0x00120B0015, Type=uint + ), ] ) @@ -671,6 +677,8 @@ def descriptor(cls) -> ClusterObjectDescriptor: preheatingState: uint | None = None noDisturbingState: uint | None = None sensorType: uint | None = None + sirenActive: uint | None = None + alarmMute: uint | None = None class Attributes: """Attributes for the Heiman Cluster.""" @@ -761,6 +769,48 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: uint = 0 + @dataclass + class SirenActive(ClusterAttributeDescriptor, CustomClusterAttributeMixin): + """SirenActive Attribute within the Heiman Cluster.""" + + @ChipUtility.classproperty + def cluster_id(cls) -> int: + """Return cluster id.""" + return 0x120BFC01 + + @ChipUtility.classproperty + def attribute_id(cls) -> int: + """Return attribute id.""" + return 0x00120B0014 + + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + """Return attribute type.""" + return ClusterObjectFieldDescriptor(Type=uint) + + value: uint = 0 + + @dataclass + class AlarmMute(ClusterAttributeDescriptor, CustomClusterAttributeMixin): + """AlarmMute Attribute within the Heiman Cluster.""" + + @ChipUtility.classproperty + def cluster_id(cls) -> int: + """Return cluster id.""" + return 0x120BFC01 + + @ChipUtility.classproperty + def attribute_id(cls) -> int: + """Return attribute id.""" + return 0x00120B0015 + + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + """Return attribute type.""" + return ClusterObjectFieldDescriptor(Type=uint) + + value: uint = 0 + @dataclass class ThirdRealityMeteringCluster(Cluster, CustomClusterMixin): From c4037a4320fe79eac53739320ba864bef568c754 Mon Sep 17 00:00:00 2001 From: LeoXie <2442926161@qq.com> Date: Mon, 8 Dec 2025 15:52:24 +0800 Subject: [PATCH 301/400] add low power mode in Heiman's cluster (#1297) Co-authored-by: Ingo Fischer --- matter_server/common/custom_clusters.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/matter_server/common/custom_clusters.py b/matter_server/common/custom_clusters.py index 1fcdb722..9902f011 100644 --- a/matter_server/common/custom_clusters.py +++ b/matter_server/common/custom_clusters.py @@ -670,6 +670,9 @@ def descriptor(cls) -> ClusterObjectDescriptor: ClusterObjectFieldDescriptor( Label="alarmMute", Tag=0x00120B0015, Type=uint ), + ClusterObjectFieldDescriptor( + Label="lowPowerMode", Tag=0x00120B0016, Type=uint + ), ] ) @@ -679,6 +682,7 @@ def descriptor(cls) -> ClusterObjectDescriptor: sensorType: uint | None = None sirenActive: uint | None = None alarmMute: uint | None = None + lowPowerMode: uint | None = None class Attributes: """Attributes for the Heiman Cluster.""" @@ -811,6 +815,27 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: uint = 0 + @dataclass + class LowPowerMode(ClusterAttributeDescriptor, CustomClusterAttributeMixin): + """LowPowerMode Attribute within the Heiman Cluster.""" + + @ChipUtility.classproperty + def cluster_id(cls) -> int: + """Return cluster id.""" + return 0x120BFC01 + + @ChipUtility.classproperty + def attribute_id(cls) -> int: + """Return attribute id.""" + return 0x00120B0016 + + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + """Return attribute type.""" + return ClusterObjectFieldDescriptor(Type=uint) + + value: uint = 0 + @dataclass class ThirdRealityMeteringCluster(Cluster, CustomClusterMixin): From 022be7ad653f49eeb6dfec1fba2437b8dd68430e Mon Sep 17 00:00:00 2001 From: beeguy1234 Date: Mon, 8 Dec 2025 08:58:35 +0100 Subject: [PATCH 302/400] Change motionSensitivity and attribute_type to uint (#1298) --- matter_server/common/custom_clusters.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/matter_server/common/custom_clusters.py b/matter_server/common/custom_clusters.py index 9902f011..aa3b89c6 100644 --- a/matter_server/common/custom_clusters.py +++ b/matter_server/common/custom_clusters.py @@ -130,7 +130,7 @@ def descriptor(cls) -> ClusterObjectDescriptor: Label="valvePosition", Tag=0x130A0018, Type=int ), ClusterObjectFieldDescriptor( - Label="motionSensitivity", Tag=0x130A000D, Type=int + Label="motionSensitivity", Tag=0x130A000D, Type=uint ), ] ) @@ -415,7 +415,7 @@ def attribute_id(cls) -> int: @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: """Return attribute type.""" - return ClusterObjectFieldDescriptor(Type=int) + return ClusterObjectFieldDescriptor(Type=uint) value: int = 0 From 51c2f301328246f9ec602c5085b193be0b2d14bc Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 8 Dec 2025 10:38:29 +0100 Subject: [PATCH 303/400] Bump pytest from 9.0.1 to 9.0.2 (#1302) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index edf453e3..f6063159 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -48,7 +48,7 @@ test = [ "pre-commit==4.5.0", "pre-commit-hooks==6.0.0", "pylint==4.0.3", - "pytest==9.0.1", + "pytest==9.0.2", "pytest-asyncio==1.3.0", "pytest-aiohttp==1.1.0", "pytest-cov==7.0.0", From 7c3cf2d7c878a69402fadb498a2687edf9bedabb Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 8 Dec 2025 10:39:00 +0100 Subject: [PATCH 304/400] Bump ruff from 0.14.7 to 0.14.8 (#1300) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index f6063159..3672184e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,7 +52,7 @@ test = [ "pytest-asyncio==1.3.0", "pytest-aiohttp==1.1.0", "pytest-cov==7.0.0", - "ruff==0.14.7", + "ruff==0.14.8", "tomli==2.3.0", ] From e4fe7b6a61a31e53177392cfbf5ffdb2ea1bbfa2 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 8 Dec 2025 10:39:28 +0100 Subject: [PATCH 305/400] Bump orjson from 3.11.4 to 3.11.5 (#1301) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 3672184e..0f32a9e9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -36,7 +36,7 @@ server = [ "atomicwrites==1.4.1", "coloredlogs==15.0.1", "cryptography==46.0.3", - "orjson==3.11.4", + "orjson==3.11.5", "zeroconf==0.148.0", "home-assistant-chip-core==2025.7.0", ] From 5a58c5e38dde8ba560579f640d9cc30ac85f00e4 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 8 Dec 2025 10:55:54 +0100 Subject: [PATCH 306/400] Bump pylint from 4.0.3 to 4.0.4 (#1294) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Martin Hjelmare --- matter_server/server/stack.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/matter_server/server/stack.py b/matter_server/server/stack.py index 2393bead..f62f6c9b 100644 --- a/matter_server/server/stack.py +++ b/matter_server/server/stack.py @@ -30,7 +30,7 @@ CHIP_DETAIL = logging.DEBUG - 1 CHIP_AUTOMATION = logging.DEBUG - 2 -_category_num: int = 4 +_category_num: int = 4 # pylint: disable=invalid-name @LogRedirectCallback_t # type: ignore[misc] diff --git a/pyproject.toml b/pyproject.toml index 0f32a9e9..3c9023a8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -47,7 +47,7 @@ test = [ "mypy==1.18.2", "pre-commit==4.5.0", "pre-commit-hooks==6.0.0", - "pylint==4.0.3", + "pylint==4.0.4", "pytest==9.0.2", "pytest-asyncio==1.3.0", "pytest-aiohttp==1.1.0", From 16cca61c559f19ce9dc96cc999f51e34ddedeb4c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 8 Dec 2025 11:03:28 +0100 Subject: [PATCH 307/400] Bump mypy from 1.18.2 to 1.19.0 (#1293) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Martin Hjelmare --- matter_server/server/stack.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/matter_server/server/stack.py b/matter_server/server/stack.py index f62f6c9b..fd60f280 100644 --- a/matter_server/server/stack.py +++ b/matter_server/server/stack.py @@ -33,7 +33,7 @@ _category_num: int = 4 # pylint: disable=invalid-name -@LogRedirectCallback_t # type: ignore[misc] +@LogRedirectCallback_t # type: ignore[untyped-decorator] def _redirect_to_python_logging( category: int, raw_module: bytes, raw_message: bytes ) -> None: diff --git a/pyproject.toml b/pyproject.toml index 3c9023a8..54bef0bb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -44,7 +44,7 @@ test = [ "aioresponses==0.7.8", "codespell==2.4.1", "isort==7.0.0", - "mypy==1.18.2", + "mypy==1.19.0", "pre-commit==4.5.0", "pre-commit-hooks==6.0.0", "pylint==4.0.4", From 285ab506b0e1d6b801be90faf0818755ac7a97bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20BOU=C3=89?= Date: Fri, 12 Dec 2025 09:29:32 +0100 Subject: [PATCH 308/400] Dashboard: Fallback for unknown endpoint device types (#1303) --- dashboard/src/pages/matter-endpoint-view.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dashboard/src/pages/matter-endpoint-view.ts b/dashboard/src/pages/matter-endpoint-view.ts index 09953e2b..f96b6436 100644 --- a/dashboard/src/pages/matter-endpoint-view.ts +++ b/dashboard/src/pages/matter-endpoint-view.ts @@ -27,7 +27,10 @@ function getUniqueClusters(node: MatterNode, endpoint: Number) { export function getEndpointDeviceTypes(node: MatterNode, endpoint: Number): DeviceType[] { const rawValues: Record[] | undefined = node.attributes[`${endpoint}/29/0`]; if (!rawValues) return []; - return rawValues.map((rawValue) => { return device_types[rawValue["0"] || rawValue["deviceType"]] }) + return rawValues.map((rawValue) => { + const id = rawValue["0"] ?? rawValue["deviceType"]; + return device_types[id] || { id: id ?? -1, label: `Unknown Device Type (${id})`, clusters: [] }; + }); } @customElement("matter-endpoint-view") From ad9625003f32f3c176a2a6013674c8dc1f6a8668 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 15 Dec 2025 09:20:15 +0100 Subject: [PATCH 309/400] Bump ruff from 0.14.8 to 0.14.9 (#1304) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 54bef0bb..7400d73a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,7 +52,7 @@ test = [ "pytest-asyncio==1.3.0", "pytest-aiohttp==1.1.0", "pytest-cov==7.0.0", - "ruff==0.14.8", + "ruff==0.14.9", "tomli==2.3.0", ] From 8dd49d5e5b0767203602a5dd8eae6a00ad2dc730 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 15 Dec 2025 09:20:41 +0100 Subject: [PATCH 310/400] Bump mypy from 1.19.0 to 1.19.1 (#1305) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 7400d73a..c98f4b7f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -44,7 +44,7 @@ test = [ "aioresponses==0.7.8", "codespell==2.4.1", "isort==7.0.0", - "mypy==1.19.0", + "mypy==1.19.1", "pre-commit==4.5.0", "pre-commit-hooks==6.0.0", "pylint==4.0.4", From d9f6ad2c399dd38c5cfe4b7542dcf4a49d6da6d8 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 22 Dec 2025 09:05:00 +0100 Subject: [PATCH 311/400] Bump ruff from 0.14.9 to 0.14.10 (#1306) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index c98f4b7f..21eb6065 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,7 +52,7 @@ test = [ "pytest-asyncio==1.3.0", "pytest-aiohttp==1.1.0", "pytest-cov==7.0.0", - "ruff==0.14.9", + "ruff==0.14.10", "tomli==2.3.0", ] From c90856f5ff7ecf186484c2fe13da65043187217d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 22 Dec 2025 09:07:24 +0100 Subject: [PATCH 312/400] Bump docker/setup-buildx-action from 3.11.1 to 3.12.0 (#1308) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7af0b5c3..17d81193 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -85,7 +85,7 @@ jobs: username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3.11.1 + uses: docker/setup-buildx-action@v3.12.0 - name: Version number for tags id: tags shell: bash From 58d294e79c09329aaf3b715885ba1e4e6c425eef Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 22 Dec 2025 09:07:53 +0100 Subject: [PATCH 313/400] Bump pre-commit from 4.5.0 to 4.5.1 (#1307) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 21eb6065..f54a63e0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -45,7 +45,7 @@ test = [ "codespell==2.4.1", "isort==7.0.0", "mypy==1.19.1", - "pre-commit==4.5.0", + "pre-commit==4.5.1", "pre-commit-hooks==6.0.0", "pylint==4.0.4", "pytest==9.0.2", From 2fefe0f1935a737aee3ee6bab91f046843d5970b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 5 Jan 2026 11:06:43 +0100 Subject: [PATCH 314/400] Bump aiohttp from 3.13.2 to 3.13.3 (#1310) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index f54a63e0..5ac59dc7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -31,7 +31,7 @@ version = "0.0.0" [project.optional-dependencies] server = [ - "aiohttp==3.13.2", + "aiohttp==3.13.3", "aiorun==2025.1.1", "atomicwrites==1.4.1", "coloredlogs==15.0.1", From ad5eb4bdec1b12146f6037584705b0b53bf4f65c Mon Sep 17 00:00:00 2001 From: Roman Zipp Date: Sat, 10 Jan 2026 09:33:13 +0100 Subject: [PATCH 315/400] Dashboard: Add suggested url via url param when missing stored url (#1309) --- dashboard/src/entrypoint/main.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/dashboard/src/entrypoint/main.ts b/dashboard/src/entrypoint/main.ts index faaa7982..df6c6593 100644 --- a/dashboard/src/entrypoint/main.ts +++ b/dashboard/src/entrypoint/main.ts @@ -6,20 +6,26 @@ async function main() { let url = ""; // Detect if we're running in the (production) webserver included in the matter server or not. - const isProductionServer = location.href.includes(":5580") || location.href.includes("hassio_ingress") || location.href.includes("/api/ingress/"); + const isProductionServer = location.origin.includes(":5580") || location.href.includes("hassio_ingress") || location.href.includes("/api/ingress/"); if (!isProductionServer) { // development server, ask for url to matter server let storageUrl = localStorage.getItem("matterURL"); if (!storageUrl) { + const urlParams = new URLSearchParams(window.location.search); + const suggestedUrl = urlParams.get('url'); storageUrl = prompt( "Enter Websocket URL to a running Matter Server", - "ws://localhost:5580/ws" + suggestedUrl || "ws://localhost:5580/ws" ); if (!storageUrl) { alert("Unable to connect without URL"); return; } + if (suggestedUrl) { + // Remove suggested url from address without redirecting + history.pushState({}, "", window.location.pathname); + } localStorage.setItem("matterURL", storageUrl); } url = storageUrl; From 184f9ccc52ddae74a86e5230c8124440df4ba323 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 12 Jan 2026 12:49:01 +0100 Subject: [PATCH 316/400] Bump ruff from 0.14.10 to 0.14.11 (#1311) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 5ac59dc7..66740f9f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,7 +52,7 @@ test = [ "pytest-asyncio==1.3.0", "pytest-aiohttp==1.1.0", "pytest-cov==7.0.0", - "ruff==0.14.10", + "ruff==0.14.11", "tomli==2.3.0", ] From c4e9f60d42dd705aa5c34ca51dfbe53c68ad85b7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 12 Jan 2026 12:52:09 +0100 Subject: [PATCH 317/400] Bump tomli from 2.3.0 to 2.4.0 (#1312) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 66740f9f..aada1073 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -53,7 +53,7 @@ test = [ "pytest-aiohttp==1.1.0", "pytest-cov==7.0.0", "ruff==0.14.11", - "tomli==2.3.0", + "tomli==2.4.0", ] [project.scripts] From 6319446e44c9918ab856329cae74a15d5c275c3e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 19 Jan 2026 10:45:04 +0100 Subject: [PATCH 318/400] Bump ruff from 0.14.11 to 0.14.13 (#1313) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index aada1073..b43c48b6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,7 +52,7 @@ test = [ "pytest-asyncio==1.3.0", "pytest-aiohttp==1.1.0", "pytest-cov==7.0.0", - "ruff==0.14.11", + "ruff==0.14.13", "tomli==2.4.0", ] From b1fd82f4708857b2ff335f60a2d2e5b850d0ea14 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 22 Jan 2026 10:30:37 +0100 Subject: [PATCH 319/400] Bump release-drafter/release-drafter from 6.1.0 to 6.1.1 (#1314) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release-drafter.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index 8c92d224..288b91be 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -13,6 +13,6 @@ jobs: runs-on: ubuntu-latest steps: # Drafts your next Release notes as Pull Requests are merged into "master" - - uses: release-drafter/release-drafter@v6.1.0 + - uses: release-drafter/release-drafter@v6.1.1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From c268f8864869a996b7e05065c437307790636f84 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 22 Jan 2026 10:30:51 +0100 Subject: [PATCH 320/400] Bump actions/setup-python from 6.1.0 to 6.2.0 (#1315) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 2 +- .github/workflows/test.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 17d81193..bdc064b2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,7 +32,7 @@ jobs: fi fi - name: Set up Python ${{ env.PYTHON_VERSION }} - uses: actions/setup-python@v6.1.0 + uses: actions/setup-python@v6.2.0 with: python-version: ${{ env.PYTHON_VERSION }} - name: Set up Node ${{ env.NODE_VERSION }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e85db536..a6cf1eec 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,7 +18,7 @@ jobs: - name: Check out code from GitHub uses: actions/checkout@v6.0.1 - name: Set up Python - uses: actions/setup-python@v6.1.0 + uses: actions/setup-python@v6.2.0 with: python-version: "3.12" - name: Install dependencies @@ -44,7 +44,7 @@ jobs: - name: Check out code from GitHub uses: actions/checkout@v6.0.1 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v6.1.0 + uses: actions/setup-python@v6.2.0 with: python-version: ${{ matrix.python-version }} - name: Install dependencies From 0218e5ed0939c1edad6e0e60e14b36e4bd924bfe Mon Sep 17 00:00:00 2001 From: Oliver Byford Date: Mon, 26 Jan 2026 10:51:11 +0000 Subject: [PATCH 321/400] Fix broken link to Docker container image (#1319) --- docs/docker.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docker.md b/docs/docker.md index 77b3d573..42eb60a7 100644 --- a/docs/docker.md +++ b/docs/docker.md @@ -1,6 +1,6 @@ # Running Matter Server in Docker -For testing/evaluation purposes or as a guideline towards other application developers that want to run the Matter Server, we do provide an [official Docker container image](https://github.com/home-assistant-libs/python-matter-server/pkgs/container/python-matter-server). Just make sure that the underlying operating system on which you intend to run the docker container matches the [requirements needed for Matter and Thread](os_requirements.md) so better not attempt to run it on a specific purpose operating system such as a NAS. +For testing/evaluation purposes or as a guideline towards other application developers that want to run the Matter Server, we do provide an [official Docker container image](https://github.com/matter-js/python-matter-server/pkgs/container/python-matter-server). Just make sure that the underlying operating system on which you intend to run the docker container matches the [requirements needed for Matter and Thread](os_requirements.md) so better not attempt to run it on a specific purpose operating system such as a NAS. > [!NOTE] **Attention Home Assistant users:** The docker image is provided as-is and without official support (due to all the complex requirements to the underlying host/OS). Use it at your own risk if you know what you're doing. From 0f3859eb05ce15c423e6f94bcfeb549852d3903a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 26 Jan 2026 11:51:20 +0100 Subject: [PATCH 322/400] Bump actions/checkout from 6.0.1 to 6.0.2 (#1317) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 4 ++-- .github/workflows/test.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bdc064b2..f44e9e8b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,7 +14,7 @@ jobs: outputs: version: ${{ steps.vars.outputs.tag }} steps: - - uses: actions/checkout@v6.0.1 + - uses: actions/checkout@v6.0.2 - name: Get tag id: vars run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT @@ -77,7 +77,7 @@ jobs: packages: write needs: build-and-publish-pypi steps: - - uses: actions/checkout@v6.0.1 + - uses: actions/checkout@v6.0.2 - name: Log in to the GitHub container registry uses: docker/login-action@v3.6.0 with: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a6cf1eec..c7f4e195 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,7 +16,7 @@ jobs: steps: - name: Check out code from GitHub - uses: actions/checkout@v6.0.1 + uses: actions/checkout@v6.0.2 - name: Set up Python uses: actions/setup-python@v6.2.0 with: @@ -42,7 +42,7 @@ jobs: steps: - name: Check out code from GitHub - uses: actions/checkout@v6.0.1 + uses: actions/checkout@v6.0.2 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v6.2.0 with: From cf19d06cdf808690d1a1c86a85fb896f44622f16 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 26 Jan 2026 11:51:41 +0100 Subject: [PATCH 323/400] Bump release-drafter/release-drafter from 6.1.1 to 6.2.0 (#1316) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release-drafter.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index 288b91be..a23369e9 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -13,6 +13,6 @@ jobs: runs-on: ubuntu-latest steps: # Drafts your next Release notes as Pull Requests are merged into "master" - - uses: release-drafter/release-drafter@v6.1.1 + - uses: release-drafter/release-drafter@v6.2.0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 32e124d3286bb2c2c8f850bd5a760c1f9178b46e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 26 Jan 2026 12:59:58 +0100 Subject: [PATCH 324/400] Bump ruff from 0.14.13 to 0.14.14 (#1318) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Martin Hjelmare --- matter_server/client/client.py | 4 ++-- pyproject.toml | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/matter_server/client/client.py b/matter_server/client/client.py index 5757d92b..dd7796cc 100644 --- a/matter_server/client/client.py +++ b/matter_server/client/client.py @@ -4,7 +4,7 @@ import asyncio import logging -from typing import TYPE_CHECKING, Any, Final, cast +from typing import TYPE_CHECKING, Any, Final, Self, cast import uuid from chip.clusters import Objects as Clusters @@ -788,7 +788,7 @@ def _signal_event( for callback in self._subscribers.get(key, []): callback(event, data) - async def __aenter__(self) -> "MatterClient": + async def __aenter__(self) -> Self: """Initialize and connect the Matter Websocket client.""" await self.connect() return self diff --git a/pyproject.toml b/pyproject.toml index b43c48b6..9f70528c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,7 +52,7 @@ test = [ "pytest-asyncio==1.3.0", "pytest-aiohttp==1.1.0", "pytest-cov==7.0.0", - "ruff==0.14.13", + "ruff==0.14.14", "tomli==2.4.0", ] @@ -222,7 +222,6 @@ ignore = [ "SLF001", # TEMPORARY DISABLED "RUF010", # TEMPORARY DISABLED "TRY300", # TEMPORARY DISABLED - "UP038", # TEMPORARY DISABLED "PTH118", # TEMPORARY DISABLED "PTH112", # TEMPORARY DISABLED "PTH102", # TEMPORARY DISABLED From 5a11cfdaec3fd54e350a7f8f2ec60142729eee96 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 29 Jan 2026 10:56:22 +0100 Subject: [PATCH 325/400] Bump docker/login-action from 3.6.0 to 3.7.0 (#1320) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f44e9e8b..6bc6c4b5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -79,7 +79,7 @@ jobs: steps: - uses: actions/checkout@v6.0.2 - name: Log in to the GitHub container registry - uses: docker/login-action@v3.6.0 + uses: docker/login-action@v3.7.0 with: registry: ghcr.io username: ${{ github.repository_owner }} From 4834436a0d6b3a4b8fc636857ae32c83d9f7a7c6 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 2 Feb 2026 10:27:00 +0100 Subject: [PATCH 326/400] Bump cryptography from 46.0.3 to 46.0.4 (#1323) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 9f70528c..09e17e5c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,7 +35,7 @@ server = [ "aiorun==2025.1.1", "atomicwrites==1.4.1", "coloredlogs==15.0.1", - "cryptography==46.0.3", + "cryptography==46.0.4", "orjson==3.11.5", "zeroconf==0.148.0", "home-assistant-chip-core==2025.7.0", From 7f879f7aa3b27790663a73444fc6de9275bf0a7a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 2 Feb 2026 10:57:43 +0100 Subject: [PATCH 327/400] Bump orjson from 3.11.5 to 3.11.6 (#1322) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 09e17e5c..081ffa41 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -36,7 +36,7 @@ server = [ "atomicwrites==1.4.1", "coloredlogs==15.0.1", "cryptography==46.0.4", - "orjson==3.11.5", + "orjson==3.11.6", "zeroconf==0.148.0", "home-assistant-chip-core==2025.7.0", ] From 7ba5a7d9a1b68d77cede3e6dbd89c5f7eea2ec61 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 9 Feb 2026 10:52:20 +0100 Subject: [PATCH 328/400] Bump orjson from 3.11.6 to 3.11.7 (#1324) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 081ffa41..8b0800da 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -36,7 +36,7 @@ server = [ "atomicwrites==1.4.1", "coloredlogs==15.0.1", "cryptography==46.0.4", - "orjson==3.11.6", + "orjson==3.11.7", "zeroconf==0.148.0", "home-assistant-chip-core==2025.7.0", ] From bb2ff9137a0e81097c0263a909a5435f8728f333 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 12 Feb 2026 09:54:34 +0100 Subject: [PATCH 329/400] Bump docker/build-push-action from 6.18.0 to 6.19.1 (#1326) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6bc6c4b5..8c3b379b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -95,7 +95,7 @@ jobs: echo "minor=${patch%.*}" >> $GITHUB_OUTPUT echo "major=${patch%.*.*}" >> $GITHUB_OUTPUT - name: Build and Push release - uses: docker/build-push-action@v6.18.0 + uses: docker/build-push-action@v6.19.1 if: github.event.release.prerelease == false with: context: . @@ -109,7 +109,7 @@ jobs: push: true build-args: "PYTHON_MATTER_SERVER=${{ needs.build-and-publish-pypi.outputs.version }}" - name: Build and Push pre-release - uses: docker/build-push-action@v6.18.0 + uses: docker/build-push-action@v6.19.1 if: github.event.release.prerelease == true with: context: . From 13230b717f5975811c7788676b4a8598d0e84fef Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 13 Feb 2026 11:00:09 +0100 Subject: [PATCH 330/400] Bump docker/build-push-action from 6.19.1 to 6.19.2 (#1327) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8c3b379b..62f0bfd9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -95,7 +95,7 @@ jobs: echo "minor=${patch%.*}" >> $GITHUB_OUTPUT echo "major=${patch%.*.*}" >> $GITHUB_OUTPUT - name: Build and Push release - uses: docker/build-push-action@v6.19.1 + uses: docker/build-push-action@v6.19.2 if: github.event.release.prerelease == false with: context: . @@ -109,7 +109,7 @@ jobs: push: true build-args: "PYTHON_MATTER_SERVER=${{ needs.build-and-publish-pypi.outputs.version }}" - name: Build and Push pre-release - uses: docker/build-push-action@v6.19.1 + uses: docker/build-push-action@v6.19.2 if: github.event.release.prerelease == true with: context: . From 38434fff3228b9ed9f356e57c56c371b7f57d95d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 16 Feb 2026 09:57:49 +0100 Subject: [PATCH 331/400] Bump cryptography from 46.0.4 to 46.0.5 (#1329) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 8b0800da..ffbb0a9f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,7 +35,7 @@ server = [ "aiorun==2025.1.1", "atomicwrites==1.4.1", "coloredlogs==15.0.1", - "cryptography==46.0.4", + "cryptography==46.0.5", "orjson==3.11.7", "zeroconf==0.148.0", "home-assistant-chip-core==2025.7.0", From 3c71fe1d4914d8e51744ea314f581cac36d52adb Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 16 Feb 2026 12:10:36 +0100 Subject: [PATCH 332/400] Bump ruff from 0.14.14 to 0.15.1 (#1328) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Stefan Agner --- matter_server/client/client.py | 2 +- matter_server/client/models/node.py | 2 +- matter_server/common/models.py | 4 ++-- matter_server/server/ota/provider.py | 2 +- matter_server/server/server.py | 2 +- pyproject.toml | 2 +- scripts/generate_devices.py | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/matter_server/client/client.py b/matter_server/client/client.py index dd7796cc..abba334f 100644 --- a/matter_server/client/client.py +++ b/matter_server/client/client.py @@ -254,7 +254,7 @@ async def get_matter_fabrics(self, node_id: int) -> list[MatterFabricData]: fabric_id=f.fabricID, vendor_id=f.vendorID, fabric_index=f.fabricIndex, - fabric_label=f.label if f.label else None, + fabric_label=f.label or None, vendor_name=vendors_map.get(str(f.vendorID)), ) for f in fabrics diff --git a/matter_server/client/models/node.py b/matter_server/client/models/node.py index f8bf274c..6d2c7a4a 100644 --- a/matter_server/client/models/node.py +++ b/matter_server/client/models/node.py @@ -358,7 +358,7 @@ def update(self, node_data: MatterNodeData) -> None: def update_attribute(self, attribute_path: str, new_value: Any) -> None: """Handle Attribute value update.""" - endpoint_id = int(attribute_path.split("/")[0]) + endpoint_id = int(attribute_path.split("/", maxsplit=1)[0]) if endpoint_id not in self.endpoints: # race condition when a bridge is in the process of adding a new endpoint return diff --git a/matter_server/common/models.py b/matter_server/common/models.py index fb897502..d8376558 100644 --- a/matter_server/common/models.py +++ b/matter_server/common/models.py @@ -5,7 +5,7 @@ from collections.abc import Callable from dataclasses import dataclass, field from datetime import datetime # noqa: TC003 -from enum import Enum +from enum import Enum, StrEnum from typing import Any # Enums and constants @@ -25,7 +25,7 @@ class EventType(Enum): ENDPOINT_REMOVED = "endpoint_removed" -class APICommand(str, Enum): +class APICommand(StrEnum): """Enum with all known API commands.""" START_LISTENING = "start_listening" diff --git a/matter_server/server/ota/provider.py b/matter_server/server/ota/provider.py index 606ffda8..7702440e 100644 --- a/matter_server/server/ota/provider.py +++ b/matter_server/server/ota/provider.py @@ -320,7 +320,7 @@ async def fetch_update(self, update_desc: dict) -> None: if parsed_url.scheme in ["http", "https"]: file_path = await self._download_update(url, checksum_alg) - elif parsed_url.scheme in ["file"]: + elif parsed_url.scheme == "file": file_path = self._ota_provider_base_dir / Path(parsed_url.path[1:]) if not await asyncio.to_thread(file_path.exists): LOGGER.warning("Local update file not found: %s", file_path) diff --git a/matter_server/server/server.py b/matter_server/server/server.py index c381e68b..0e5315f2 100644 --- a/matter_server/server/server.py +++ b/matter_server/server/server.py @@ -297,7 +297,7 @@ def scope_ipv6_lla(self, ip_addr: str) -> str: if ip_addr_parsed.scope_id is not None: # This type of IPv6 manipulation is not supported by the ipaddress lib - ip_addr = ip_addr.split("%")[0] + ip_addr = ip_addr.split("%", maxsplit=1)[0] # Rely on host OS routing table if self.primary_interface is None: diff --git a/pyproject.toml b/pyproject.toml index ffbb0a9f..62ea9da8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,7 +52,7 @@ test = [ "pytest-asyncio==1.3.0", "pytest-aiohttp==1.1.0", "pytest-cov==7.0.0", - "ruff==0.14.14", + "ruff==0.15.1", "tomli==2.4.0", ] diff --git a/scripts/generate_devices.py b/scripts/generate_devices.py index 8fb4d321..5d0ab1d9 100644 --- a/scripts/generate_devices.py +++ b/scripts/generate_devices.py @@ -32,7 +32,7 @@ def gen_cls_name(name: str): if char in ("-", "/"): next_upper = True continue - elif char in ("."): + elif char == ".": continue elif next_upper: char = char.upper() From 49dbea49062ce4a0921e50531a939e35ed8492f9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 23 Feb 2026 10:47:30 +0100 Subject: [PATCH 333/400] Bump ruff from 0.15.1 to 0.15.2 (#1331) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 62ea9da8..18f4f56f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,7 +52,7 @@ test = [ "pytest-asyncio==1.3.0", "pytest-aiohttp==1.1.0", "pytest-cov==7.0.0", - "ruff==0.15.1", + "ruff==0.15.2", "tomli==2.4.0", ] From b02cd85a81ba096bb193d4b9436377264a9b9661 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 23 Feb 2026 10:48:07 +0100 Subject: [PATCH 334/400] Bump pylint from 4.0.4 to 4.0.5 (#1332) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 18f4f56f..3e4a5e2f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -47,7 +47,7 @@ test = [ "mypy==1.19.1", "pre-commit==4.5.1", "pre-commit-hooks==6.0.0", - "pylint==4.0.4", + "pylint==4.0.5", "pytest==9.0.2", "pytest-asyncio==1.3.0", "pytest-aiohttp==1.1.0", From 9637a985ed5946efc698abb5901f22d6436f91cf Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 23 Feb 2026 10:59:08 +0100 Subject: [PATCH 335/400] Bump isort from 7.0.0 to 8.0.0 (#1333) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 3e4a5e2f..9107662f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -43,7 +43,7 @@ server = [ test = [ "aioresponses==0.7.8", "codespell==2.4.1", - "isort==7.0.0", + "isort==8.0.0", "mypy==1.19.1", "pre-commit==4.5.1", "pre-commit-hooks==6.0.0", From a2cef2c44290d032643d7887070c383cad568c1b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 2 Mar 2026 09:42:51 +0100 Subject: [PATCH 336/400] Bump isort from 8.0.0 to 8.0.1 (#1334) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 9107662f..6d45f3d0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -43,7 +43,7 @@ server = [ test = [ "aioresponses==0.7.8", "codespell==2.4.1", - "isort==8.0.0", + "isort==8.0.1", "mypy==1.19.1", "pre-commit==4.5.1", "pre-commit-hooks==6.0.0", From 55f59d1ee823b3e8f05151b09367aecbb34811e5 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 2 Mar 2026 09:43:07 +0100 Subject: [PATCH 337/400] Bump ruff from 0.15.2 to 0.15.4 (#1335) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 6d45f3d0..cc326802 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,7 +52,7 @@ test = [ "pytest-asyncio==1.3.0", "pytest-aiohttp==1.1.0", "pytest-cov==7.0.0", - "ruff==0.15.2", + "ruff==0.15.4", "tomli==2.4.0", ] From e89a77783e80c05d79daca935b9c3795413cdcb2 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 5 Mar 2026 09:50:43 +0100 Subject: [PATCH 338/400] Bump docker/login-action from 3.7.0 to 4.0.0 (#1337) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 62f0bfd9..79697c29 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -79,7 +79,7 @@ jobs: steps: - uses: actions/checkout@v6.0.2 - name: Log in to the GitHub container registry - uses: docker/login-action@v3.7.0 + uses: docker/login-action@v4.0.0 with: registry: ghcr.io username: ${{ github.repository_owner }} From f806101bd1e2f26194de5ab1970a81006d8f4752 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 5 Mar 2026 09:50:57 +0100 Subject: [PATCH 339/400] Bump docker/setup-buildx-action from 3.12.0 to 4.0.0 (#1336) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 79697c29..ebb4331d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -85,7 +85,7 @@ jobs: username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3.12.0 + uses: docker/setup-buildx-action@v4.0.0 - name: Version number for tags id: tags shell: bash From 746d55d9b9a37ed0fae955bff3c2b6bd5a4659de Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 6 Mar 2026 09:36:23 +0100 Subject: [PATCH 340/400] Bump docker/build-push-action from 6.19.2 to 7.0.0 (#1338) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ebb4331d..64a10e1e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -95,7 +95,7 @@ jobs: echo "minor=${patch%.*}" >> $GITHUB_OUTPUT echo "major=${patch%.*.*}" >> $GITHUB_OUTPUT - name: Build and Push release - uses: docker/build-push-action@v6.19.2 + uses: docker/build-push-action@v7.0.0 if: github.event.release.prerelease == false with: context: . @@ -109,7 +109,7 @@ jobs: push: true build-args: "PYTHON_MATTER_SERVER=${{ needs.build-and-publish-pypi.outputs.version }}" - name: Build and Push pre-release - uses: docker/build-push-action@v6.19.2 + uses: docker/build-push-action@v7.0.0 if: github.event.release.prerelease == true with: context: . From 9cd3a4ac07c79283a61221c61ba6135363c62cdc Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 9 Mar 2026 09:54:51 +0100 Subject: [PATCH 341/400] Bump release-drafter/release-drafter from 6.2.0 to 6.4.0 (#1339) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release-drafter.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index a23369e9..ab94e918 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -13,6 +13,6 @@ jobs: runs-on: ubuntu-latest steps: # Drafts your next Release notes as Pull Requests are merged into "master" - - uses: release-drafter/release-drafter@v6.2.0 + - uses: release-drafter/release-drafter@v6.4.0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From dda839e045e200c5175bd774ec3016f9299bbb4e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 9 Mar 2026 09:55:13 +0100 Subject: [PATCH 342/400] Bump codespell from 2.4.1 to 2.4.2 (#1340) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index cc326802..69e6e0e0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -42,7 +42,7 @@ server = [ ] test = [ "aioresponses==0.7.8", - "codespell==2.4.1", + "codespell==2.4.2", "isort==8.0.1", "mypy==1.19.1", "pre-commit==4.5.1", From 0f44085cdfba51b92a88c7eb59ecd147dcb8b755 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 9 Mar 2026 09:55:28 +0100 Subject: [PATCH 343/400] Bump ruff from 0.15.4 to 0.15.5 (#1341) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 69e6e0e0..282a8d92 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,7 +52,7 @@ test = [ "pytest-asyncio==1.3.0", "pytest-aiohttp==1.1.0", "pytest-cov==7.0.0", - "ruff==0.15.4", + "ruff==0.15.5", "tomli==2.4.0", ] From 6133b99a4e768cda69a77bfb002f7744514b948e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 16 Mar 2026 09:51:37 +0100 Subject: [PATCH 344/400] Bump release-drafter/release-drafter from 6.4.0 to 7.0.0 (#1342) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release-drafter.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index ab94e918..867b4aa4 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -13,6 +13,6 @@ jobs: runs-on: ubuntu-latest steps: # Drafts your next Release notes as Pull Requests are merged into "master" - - uses: release-drafter/release-drafter@v6.4.0 + - uses: release-drafter/release-drafter@v7.0.0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From f4000159db774ccfdfc2ffcfc7bbaaa335ec4c0a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 16 Mar 2026 09:51:52 +0100 Subject: [PATCH 345/400] Bump ruff from 0.15.5 to 0.15.6 (#1343) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 282a8d92..e762c00d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,7 +52,7 @@ test = [ "pytest-asyncio==1.3.0", "pytest-aiohttp==1.1.0", "pytest-cov==7.0.0", - "ruff==0.15.5", + "ruff==0.15.6", "tomli==2.4.0", ] From b5dae1fa897374acdff40d862eaff52eb6798ce5 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 18 Mar 2026 10:26:10 +0100 Subject: [PATCH 346/400] Bump release-drafter/release-drafter from 7.0.0 to 7.1.0 (#1345) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release-drafter.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index 867b4aa4..fa243229 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -13,6 +13,6 @@ jobs: runs-on: ubuntu-latest steps: # Drafts your next Release notes as Pull Requests are merged into "master" - - uses: release-drafter/release-drafter@v7.0.0 + - uses: release-drafter/release-drafter@v7.1.0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 935aa089442e621a8680a9658ce51544f1cb9810 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 19 Mar 2026 10:36:19 +0100 Subject: [PATCH 347/400] Bump release-drafter/release-drafter from 7.1.0 to 7.1.1 (#1346) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release-drafter.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index fa243229..fdd7ef76 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -13,6 +13,6 @@ jobs: runs-on: ubuntu-latest steps: # Drafts your next Release notes as Pull Requests are merged into "master" - - uses: release-drafter/release-drafter@v7.1.0 + - uses: release-drafter/release-drafter@v7.1.1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 993e4a2039d41310b2c78656b6bdc6f62ab9bc17 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 25 Mar 2026 11:54:02 +0100 Subject: [PATCH 348/400] Bump ruff from 0.15.6 to 0.15.7 (#1348) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index e762c00d..467fc91c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,7 +52,7 @@ test = [ "pytest-asyncio==1.3.0", "pytest-aiohttp==1.1.0", "pytest-cov==7.0.0", - "ruff==0.15.6", + "ruff==0.15.7", "tomli==2.4.0", ] From 10189859de05a29102deececdafef91ee918adb3 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 25 Mar 2026 12:16:46 +0100 Subject: [PATCH 349/400] Bump pytest-cov from 7.0.0 to 7.1.0 (#1347) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 467fc91c..5ae09ab1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -51,7 +51,7 @@ test = [ "pytest==9.0.2", "pytest-asyncio==1.3.0", "pytest-aiohttp==1.1.0", - "pytest-cov==7.0.0", + "pytest-cov==7.1.0", "ruff==0.15.7", "tomli==2.4.0", ] From dfc0f3329310b79acc1dab7861fc8932ff5010c5 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 30 Mar 2026 11:51:27 +0200 Subject: [PATCH 350/400] Bump aiohttp from 3.13.3 to 3.13.4 (#1352) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 5ae09ab1..a07e7a6c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -31,7 +31,7 @@ version = "0.0.0" [project.optional-dependencies] server = [ - "aiohttp==3.13.3", + "aiohttp==3.13.4", "aiorun==2025.1.1", "atomicwrites==1.4.1", "coloredlogs==15.0.1", From 329508284bc3427f52bfd111cd5fb4897849a585 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 30 Mar 2026 11:51:46 +0200 Subject: [PATCH 351/400] Bump ruff from 0.15.7 to 0.15.8 (#1351) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index a07e7a6c..725a4772 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,7 +52,7 @@ test = [ "pytest-asyncio==1.3.0", "pytest-aiohttp==1.1.0", "pytest-cov==7.1.0", - "ruff==0.15.7", + "ruff==0.15.8", "tomli==2.4.0", ] From bc2c9c7592159f56f7408938e237868e6b6ada08 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 30 Mar 2026 11:54:20 +0200 Subject: [PATCH 352/400] Bump tomli from 2.4.0 to 2.4.1 (#1350) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 725a4772..4f73956a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -53,7 +53,7 @@ test = [ "pytest-aiohttp==1.1.0", "pytest-cov==7.1.0", "ruff==0.15.8", - "tomli==2.4.0", + "tomli==2.4.1", ] [project.scripts] From c8a3243e6483a9282a21f7f4a9e0abd868568ca1 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 30 Mar 2026 11:55:20 +0200 Subject: [PATCH 353/400] Bump cryptography from 46.0.5 to 46.0.6 (#1349) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 4f73956a..e1743cf6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,7 +35,7 @@ server = [ "aiorun==2025.1.1", "atomicwrites==1.4.1", "coloredlogs==15.0.1", - "cryptography==46.0.5", + "cryptography==46.0.6", "orjson==3.11.7", "zeroconf==0.148.0", "home-assistant-chip-core==2025.7.0", From 76e9d98c6a65d83f0b8f12f51ca6a1c494b24d26 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 3 Apr 2026 15:49:08 +0200 Subject: [PATCH 354/400] Bump docker/login-action from 4.0.0 to 4.1.0 (#1353) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 64a10e1e..d87e652e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -79,7 +79,7 @@ jobs: steps: - uses: actions/checkout@v6.0.2 - name: Log in to the GitHub container registry - uses: docker/login-action@v4.0.0 + uses: docker/login-action@v4.1.0 with: registry: ghcr.io username: ${{ github.repository_owner }} From d41298f0afd3dd680f0dcb7f4cb274197f499628 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 6 Apr 2026 11:26:34 +0200 Subject: [PATCH 355/400] Bump mypy from 1.19.1 to 1.20.0 (#1357) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index e1743cf6..646f1603 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -44,7 +44,7 @@ test = [ "aioresponses==0.7.8", "codespell==2.4.2", "isort==8.0.1", - "mypy==1.19.1", + "mypy==1.20.0", "pre-commit==4.5.1", "pre-commit-hooks==6.0.0", "pylint==4.0.5", From 4526d7ae6bd63c43aec25c44d44cf844e62c587e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 6 Apr 2026 11:27:01 +0200 Subject: [PATCH 356/400] Bump aiohttp from 3.13.4 to 3.13.5 (#1356) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 646f1603..f709e381 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -31,7 +31,7 @@ version = "0.0.0" [project.optional-dependencies] server = [ - "aiohttp==3.13.4", + "aiohttp==3.13.5", "aiorun==2025.1.1", "atomicwrites==1.4.1", "coloredlogs==15.0.1", From 5f0d081e8087bd362f279cc84487781af7c0f257 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 6 Apr 2026 11:27:32 +0200 Subject: [PATCH 357/400] Bump ruff from 0.15.8 to 0.15.9 (#1355) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index f709e381..04f1b927 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,7 +52,7 @@ test = [ "pytest-asyncio==1.3.0", "pytest-aiohttp==1.1.0", "pytest-cov==7.1.0", - "ruff==0.15.8", + "ruff==0.15.9", "tomli==2.4.1", ] From ffe5cdc675eaf315842bcc6f28504ec431e9c650 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 8 Apr 2026 10:31:37 +0200 Subject: [PATCH 358/400] Bump pypa/gh-action-pypi-publish from 1.13.0 to 1.14.0 (#1358) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d87e652e..9641024d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -64,7 +64,7 @@ jobs: run: >- python3 -m build - name: Publish release to PyPI - uses: pypa/gh-action-pypi-publish@v1.13.0 + uses: pypa/gh-action-pypi-publish@v1.14.0 with: user: __token__ password: ${{ secrets.PYPI_TOKEN }} From 9fb251bd8890a655c6549590c0a87e958ef31783 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 8 Apr 2026 12:27:42 +0200 Subject: [PATCH 359/400] Bump orjson from 3.11.7 to 3.11.8 (#1354) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 04f1b927..a43b2f8d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -36,7 +36,7 @@ server = [ "atomicwrites==1.4.1", "coloredlogs==15.0.1", "cryptography==46.0.6", - "orjson==3.11.7", + "orjson==3.11.8", "zeroconf==0.148.0", "home-assistant-chip-core==2025.7.0", ] From 092d8b16df11d3bed353fbd3a9d6a114fc457416 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 10 Apr 2026 10:25:29 +0200 Subject: [PATCH 360/400] Bump release-drafter/release-drafter from 7.1.1 to 7.2.0 (#1359) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release-drafter.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index fdd7ef76..815a9b50 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -13,6 +13,6 @@ jobs: runs-on: ubuntu-latest steps: # Drafts your next Release notes as Pull Requests are merged into "master" - - uses: release-drafter/release-drafter@v7.1.1 + - uses: release-drafter/release-drafter@v7.2.0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From eefe778bbd01a9f16ae9b1a7c14f7d0dfb189b44 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 13 Apr 2026 10:56:10 +0200 Subject: [PATCH 361/400] Bump pytest from 9.0.2 to 9.0.3 (#1365) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index a43b2f8d..f24be154 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -48,7 +48,7 @@ test = [ "pre-commit==4.5.1", "pre-commit-hooks==6.0.0", "pylint==4.0.5", - "pytest==9.0.2", + "pytest==9.0.3", "pytest-asyncio==1.3.0", "pytest-aiohttp==1.1.0", "pytest-cov==7.1.0", From 2db91af5346b2ddd2f8157f44cf402b90ac4ad14 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 13 Apr 2026 10:56:33 +0200 Subject: [PATCH 362/400] Bump mypy from 1.20.0 to 1.20.1 (#1364) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index f24be154..8104dc2d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -44,7 +44,7 @@ test = [ "aioresponses==0.7.8", "codespell==2.4.2", "isort==8.0.1", - "mypy==1.20.0", + "mypy==1.20.1", "pre-commit==4.5.1", "pre-commit-hooks==6.0.0", "pylint==4.0.5", From 3d812385e36d3c625c1f4e64e7009d69d4be45b8 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 13 Apr 2026 10:57:01 +0200 Subject: [PATCH 363/400] Bump cryptography from 46.0.6 to 46.0.7 (#1363) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 8104dc2d..69569b25 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,7 +35,7 @@ server = [ "aiorun==2025.1.1", "atomicwrites==1.4.1", "coloredlogs==15.0.1", - "cryptography==46.0.6", + "cryptography==46.0.7", "orjson==3.11.8", "zeroconf==0.148.0", "home-assistant-chip-core==2025.7.0", From 66cd728f7549ece3928350e268e760f40d6c5e2a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 13 Apr 2026 10:57:26 +0200 Subject: [PATCH 364/400] Bump ruff from 0.15.9 to 0.15.10 (#1362) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 69569b25..937c9489 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,7 +52,7 @@ test = [ "pytest-asyncio==1.3.0", "pytest-aiohttp==1.1.0", "pytest-cov==7.1.0", - "ruff==0.15.9", + "ruff==0.15.10", "tomli==2.4.1", ] From e3a537ccf877ba42a3bef7c2bb2332d6d980c49d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 13 Apr 2026 10:58:52 +0200 Subject: [PATCH 365/400] Bump docker/build-push-action from 7.0.0 to 7.1.0 (#1361) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9641024d..905e3378 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -95,7 +95,7 @@ jobs: echo "minor=${patch%.*}" >> $GITHUB_OUTPUT echo "major=${patch%.*.*}" >> $GITHUB_OUTPUT - name: Build and Push release - uses: docker/build-push-action@v7.0.0 + uses: docker/build-push-action@v7.1.0 if: github.event.release.prerelease == false with: context: . @@ -109,7 +109,7 @@ jobs: push: true build-args: "PYTHON_MATTER_SERVER=${{ needs.build-and-publish-pypi.outputs.version }}" - name: Build and Push pre-release - uses: docker/build-push-action@v7.0.0 + uses: docker/build-push-action@v7.1.0 if: github.event.release.prerelease == true with: context: . From 6f3910e4f46876aab6544143155dd41f36971352 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 20 Apr 2026 11:18:04 +0200 Subject: [PATCH 366/400] Bump ruff from 0.15.10 to 0.15.11 (#1368) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 937c9489..18a993de 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,7 +52,7 @@ test = [ "pytest-asyncio==1.3.0", "pytest-aiohttp==1.1.0", "pytest-cov==7.1.0", - "ruff==0.15.10", + "ruff==0.15.11", "tomli==2.4.1", ] From 67ced46c80ad345b41518540368cd4a4e0fcf92b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 27 Apr 2026 11:18:34 +0200 Subject: [PATCH 367/400] Bump ruff from 0.15.11 to 0.15.12 (#1372) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 18a993de..7e208f9d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,7 +52,7 @@ test = [ "pytest-asyncio==1.3.0", "pytest-aiohttp==1.1.0", "pytest-cov==7.1.0", - "ruff==0.15.11", + "ruff==0.15.12", "tomli==2.4.1", ] From ab919d6d3bec5c869d133a54177a3f9d08c1a670 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 27 Apr 2026 11:20:20 +0200 Subject: [PATCH 368/400] Bump pre-commit from 4.5.1 to 4.6.0 (#1369) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 7e208f9d..3776da80 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -45,7 +45,7 @@ test = [ "codespell==2.4.2", "isort==8.0.1", "mypy==1.20.1", - "pre-commit==4.5.1", + "pre-commit==4.6.0", "pre-commit-hooks==6.0.0", "pylint==4.0.5", "pytest==9.0.3", From b2dbb187e839492b49b237348f243c506f08c3ca Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 27 Apr 2026 17:18:01 +0200 Subject: [PATCH 369/400] Bump mypy from 1.20.1 to 1.20.2 (#1370) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Stefan Agner --- matter_server/server/server.py | 4 +--- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/matter_server/server/server.py b/matter_server/server/server.py index 0e5315f2..e80c1aac 100644 --- a/matter_server/server/server.py +++ b/matter_server/server/server.py @@ -10,7 +10,7 @@ import os from pathlib import Path import traceback -from typing import TYPE_CHECKING, Any, cast +from typing import TYPE_CHECKING, Any import weakref from aiohttp import web @@ -293,8 +293,6 @@ def scope_ipv6_lla(self, ip_addr: str) -> str: if not ip_addr_parsed.is_link_local or ip_addr_parsed.version != 6: return ip_addr - ip_addr_parsed = cast(ipaddress.IPv6Address, ip_addr_parsed) - if ip_addr_parsed.scope_id is not None: # This type of IPv6 manipulation is not supported by the ipaddress lib ip_addr = ip_addr.split("%", maxsplit=1)[0] diff --git a/pyproject.toml b/pyproject.toml index 3776da80..c06f0722 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -44,7 +44,7 @@ test = [ "aioresponses==0.7.8", "codespell==2.4.2", "isort==8.0.1", - "mypy==1.20.1", + "mypy==1.20.2", "pre-commit==4.6.0", "pre-commit-hooks==6.0.0", "pylint==4.0.5", From f272907a8d6a386be49e54dd675555abdc0d99e2 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 27 Apr 2026 18:46:10 +0200 Subject: [PATCH 370/400] Bump cryptography from 46.0.7 to 47.0.0 (#1371) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index c06f0722..0042f501 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,7 +35,7 @@ server = [ "aiorun==2025.1.1", "atomicwrites==1.4.1", "coloredlogs==15.0.1", - "cryptography==46.0.7", + "cryptography==47.0.0", "orjson==3.11.8", "zeroconf==0.148.0", "home-assistant-chip-core==2025.7.0", From 6b627b4763650dde7370f5ef781d9cecc5dbf9fa Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 30 Apr 2026 12:35:50 +0200 Subject: [PATCH 371/400] Bump release-drafter/release-drafter from 7.2.0 to 7.2.1 (#1373) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release-drafter.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index 815a9b50..f73f690d 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -13,6 +13,6 @@ jobs: runs-on: ubuntu-latest steps: # Drafts your next Release notes as Pull Requests are merged into "master" - - uses: release-drafter/release-drafter@v7.2.0 + - uses: release-drafter/release-drafter@v7.2.1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From cd953789027c39312979204b48eba20154fd8777 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 8 May 2026 10:57:39 +0200 Subject: [PATCH 372/400] Bump release-drafter/release-drafter from 7.2.1 to 7.3.0 (#1376) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release-drafter.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index f73f690d..5a6eb4f9 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -13,6 +13,6 @@ jobs: runs-on: ubuntu-latest steps: # Drafts your next Release notes as Pull Requests are merged into "master" - - uses: release-drafter/release-drafter@v7.2.1 + - uses: release-drafter/release-drafter@v7.3.0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 865a4250c43972a37ed37c4c430766170c80fa0f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 11 May 2026 13:31:55 +0200 Subject: [PATCH 373/400] Bump cryptography from 47.0.0 to 48.0.0 (#1380) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 0042f501..692dc082 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,7 +35,7 @@ server = [ "aiorun==2025.1.1", "atomicwrites==1.4.1", "coloredlogs==15.0.1", - "cryptography==47.0.0", + "cryptography==48.0.0", "orjson==3.11.8", "zeroconf==0.148.0", "home-assistant-chip-core==2025.7.0", From 294b2d782b52e75302e82d7c21186fe5c9c2e116 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 11 May 2026 13:32:03 +0200 Subject: [PATCH 374/400] Bump mypy from 1.20.2 to 2.0.0 (#1379) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 692dc082..303e6375 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -44,7 +44,7 @@ test = [ "aioresponses==0.7.8", "codespell==2.4.2", "isort==8.0.1", - "mypy==1.20.2", + "mypy==2.0.0", "pre-commit==4.6.0", "pre-commit-hooks==6.0.0", "pylint==4.0.5", From 460d8597748a876ec03bee5a8d990cef664d9c30 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 12 May 2026 05:07:18 +0200 Subject: [PATCH 375/400] Bump orjson from 3.11.8 to 3.11.9 (#1378) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 303e6375..296b4744 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -36,7 +36,7 @@ server = [ "atomicwrites==1.4.1", "coloredlogs==15.0.1", "cryptography==48.0.0", - "orjson==3.11.8", + "orjson==3.11.9", "zeroconf==0.148.0", "home-assistant-chip-core==2025.7.0", ] From e624cb23487def899816cc4834934eae3dd4c9b7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 18 May 2026 17:19:10 +0200 Subject: [PATCH 376/400] Bump ruff from 0.15.12 to 0.15.13 (#1381) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 296b4744..5433833a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,7 +52,7 @@ test = [ "pytest-asyncio==1.3.0", "pytest-aiohttp==1.1.0", "pytest-cov==7.1.0", - "ruff==0.15.12", + "ruff==0.15.13", "tomli==2.4.1", ] From 9f444ccc8e719e18ed7ce5544470cf2bee302109 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 18 May 2026 17:19:12 +0200 Subject: [PATCH 377/400] Bump zeroconf from 0.148.0 to 0.149.7 (#1382) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 5433833a..0bdd954b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,7 +37,7 @@ server = [ "coloredlogs==15.0.1", "cryptography==48.0.0", "orjson==3.11.9", - "zeroconf==0.148.0", + "zeroconf==0.149.7", "home-assistant-chip-core==2025.7.0", ] test = [ From bcea522cb422489ffb9f6aa40eedb55080adb998 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 18 May 2026 17:19:13 +0200 Subject: [PATCH 378/400] Bump mypy from 2.0.0 to 2.1.0 (#1383) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 0bdd954b..59f49407 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -44,7 +44,7 @@ test = [ "aioresponses==0.7.8", "codespell==2.4.2", "isort==8.0.1", - "mypy==2.0.0", + "mypy==2.1.0", "pre-commit==4.6.0", "pre-commit-hooks==6.0.0", "pylint==4.0.5", From 1157afacd3a701958f78a376a708a1c1853e830f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 22 May 2026 15:25:25 +0200 Subject: [PATCH 379/400] Bump docker/build-push-action from 7.1.0 to 7.2.0 (#1384) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 905e3378..f0184637 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -95,7 +95,7 @@ jobs: echo "minor=${patch%.*}" >> $GITHUB_OUTPUT echo "major=${patch%.*.*}" >> $GITHUB_OUTPUT - name: Build and Push release - uses: docker/build-push-action@v7.1.0 + uses: docker/build-push-action@v7.2.0 if: github.event.release.prerelease == false with: context: . @@ -109,7 +109,7 @@ jobs: push: true build-args: "PYTHON_MATTER_SERVER=${{ needs.build-and-publish-pypi.outputs.version }}" - name: Build and Push pre-release - uses: docker/build-push-action@v7.1.0 + uses: docker/build-push-action@v7.2.0 if: github.event.release.prerelease == true with: context: . From 171f0f90a1c9d1830347e09676916b48b33ef930 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 25 May 2026 20:36:45 +0200 Subject: [PATCH 380/400] Bump ruff from 0.15.13 to 0.15.14 (#1388) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 59f49407..0f34ade9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,7 +52,7 @@ test = [ "pytest-asyncio==1.3.0", "pytest-aiohttp==1.1.0", "pytest-cov==7.1.0", - "ruff==0.15.13", + "ruff==0.15.14", "tomli==2.4.1", ] From 50dff26ecf75ffa8b727941d80ed7c1fe3d1271b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 25 May 2026 20:37:48 +0200 Subject: [PATCH 381/400] Bump release-drafter/release-drafter from 7.3.0 to 7.3.1 (#1386) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release-drafter.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index 5a6eb4f9..a74fe5cc 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -13,6 +13,6 @@ jobs: runs-on: ubuntu-latest steps: # Drafts your next Release notes as Pull Requests are merged into "master" - - uses: release-drafter/release-drafter@v7.3.0 + - uses: release-drafter/release-drafter@v7.3.1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 9d9612d79eb46df2b1694c36d62b268a660b7861 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 26 May 2026 21:34:16 +0200 Subject: [PATCH 382/400] Bump docker/setup-buildx-action from 4.0.0 to 4.1.0 (#1387) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f0184637..07d29d8f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -85,7 +85,7 @@ jobs: username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v4.0.0 + uses: docker/setup-buildx-action@v4.1.0 - name: Version number for tags id: tags shell: bash From f0b2572176241916f025f7d392a3221cbc867a4d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 29 May 2026 02:18:30 +0200 Subject: [PATCH 383/400] Bump docker/login-action from 4.1.0 to 4.2.0 (#1385) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 07d29d8f..4ce93371 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -79,7 +79,7 @@ jobs: steps: - uses: actions/checkout@v6.0.2 - name: Log in to the GitHub container registry - uses: docker/login-action@v4.1.0 + uses: docker/login-action@v4.2.0 with: registry: ghcr.io username: ${{ github.repository_owner }} From c31b140e3b3e986807667bb2319a2d18886cd3f9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 29 May 2026 02:19:13 +0200 Subject: [PATCH 384/400] Bump zeroconf from 0.149.7 to 0.149.16 (#1389) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 0f34ade9..b43e2563 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,7 +37,7 @@ server = [ "coloredlogs==15.0.1", "cryptography==48.0.0", "orjson==3.11.9", - "zeroconf==0.149.7", + "zeroconf==0.149.16", "home-assistant-chip-core==2025.7.0", ] test = [ From e943e308abc834045a93f4a93397dbd9ed52174a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 2 Jun 2026 17:48:36 +0200 Subject: [PATCH 385/400] Bump pytest-asyncio from 1.3.0 to 1.4.0 (#1391) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index b43e2563..bc334b15 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -49,7 +49,7 @@ test = [ "pre-commit-hooks==6.0.0", "pylint==4.0.5", "pytest==9.0.3", - "pytest-asyncio==1.3.0", + "pytest-asyncio==1.4.0", "pytest-aiohttp==1.1.0", "pytest-cov==7.1.0", "ruff==0.15.14", From 154ff189a7bb30a14a5648fc5ec6f3d918ca49fe Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 2 Jun 2026 17:48:55 +0200 Subject: [PATCH 386/400] Bump ruff from 0.15.14 to 0.15.15 (#1390) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index bc334b15..d2ffe55c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,7 +52,7 @@ test = [ "pytest-asyncio==1.4.0", "pytest-aiohttp==1.1.0", "pytest-cov==7.1.0", - "ruff==0.15.14", + "ruff==0.15.15", "tomli==2.4.1", ] From 151d01af389b83343685624b51f33b5aeec82e86 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 4 Jun 2026 09:14:17 +0200 Subject: [PATCH 387/400] Bump actions/checkout from 6.0.2 to 6.0.3 (#1393) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 4 ++-- .github/workflows/test.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4ce93371..950ca6f2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,7 +14,7 @@ jobs: outputs: version: ${{ steps.vars.outputs.tag }} steps: - - uses: actions/checkout@v6.0.2 + - uses: actions/checkout@v6.0.3 - name: Get tag id: vars run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT @@ -77,7 +77,7 @@ jobs: packages: write needs: build-and-publish-pypi steps: - - uses: actions/checkout@v6.0.2 + - uses: actions/checkout@v6.0.3 - name: Log in to the GitHub container registry uses: docker/login-action@v4.2.0 with: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c7f4e195..f210816f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,7 +16,7 @@ jobs: steps: - name: Check out code from GitHub - uses: actions/checkout@v6.0.2 + uses: actions/checkout@v6.0.3 - name: Set up Python uses: actions/setup-python@v6.2.0 with: @@ -42,7 +42,7 @@ jobs: steps: - name: Check out code from GitHub - uses: actions/checkout@v6.0.2 + uses: actions/checkout@v6.0.3 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v6.2.0 with: From ad335557a70a8b1f37ccc5262152c2c97116a8eb Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 8 Jun 2026 10:29:25 +0200 Subject: [PATCH 388/400] Bump pytest-aiohttp from 1.1.0 to 1.1.1 (#1396) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index d2ffe55c..eee363cd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -50,7 +50,7 @@ test = [ "pylint==4.0.5", "pytest==9.0.3", "pytest-asyncio==1.4.0", - "pytest-aiohttp==1.1.0", + "pytest-aiohttp==1.1.1", "pytest-cov==7.1.0", "ruff==0.15.15", "tomli==2.4.1", From 50edbb3005158832cbde79e340a1dba011ccb77f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 8 Jun 2026 10:29:49 +0200 Subject: [PATCH 389/400] Bump ruff from 0.15.15 to 0.15.16 (#1395) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index eee363cd..17080237 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,7 +52,7 @@ test = [ "pytest-asyncio==1.4.0", "pytest-aiohttp==1.1.1", "pytest-cov==7.1.0", - "ruff==0.15.15", + "ruff==0.15.16", "tomli==2.4.1", ] From aa6cd40352f0f434e0e3589559e89df27d914b12 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 8 Jun 2026 10:30:05 +0200 Subject: [PATCH 390/400] Bump ludeeus/action-require-labels from 1.1.0 to 2.0.0 (#1394) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/pr-labels.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-labels.yaml b/.github/workflows/pr-labels.yaml index b1d4e6b4..9bf883e5 100644 --- a/.github/workflows/pr-labels.yaml +++ b/.github/workflows/pr-labels.yaml @@ -17,7 +17,7 @@ jobs: runs-on: ubuntu-latest steps: - name: ๐Ÿท Verify PR has a valid label - uses: ludeeus/action-require-labels@1.1.0 + uses: ludeeus/action-require-labels@2.0.0 with: labels: >- breaking-change, bugfix, refactor, new-feature, maintenance, ci, dependencies, docs From 3ff4b914944aa972669ac1453ec73a03997b9eaa Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 15 Jun 2026 12:14:16 +0200 Subject: [PATCH 391/400] Bump cryptography from 48.0.0 to 49.0.0 (#1402) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 17080237..8367518d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,7 +35,7 @@ server = [ "aiorun==2025.1.1", "atomicwrites==1.4.1", "coloredlogs==15.0.1", - "cryptography==48.0.0", + "cryptography==49.0.0", "orjson==3.11.9", "zeroconf==0.149.16", "home-assistant-chip-core==2025.7.0", From ffabe4d03c4f895f4576f895ec34adb6121ce4c7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 15 Jun 2026 12:14:30 +0200 Subject: [PATCH 392/400] Bump ruff from 0.15.16 to 0.15.17 (#1401) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 8367518d..9ad4b1bc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,7 +52,7 @@ test = [ "pytest-asyncio==1.4.0", "pytest-aiohttp==1.1.1", "pytest-cov==7.1.0", - "ruff==0.15.16", + "ruff==0.15.17", "tomli==2.4.1", ] From e25ab974a6545bc8cd0cfb3be70daf9ceafb9b94 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 15 Jun 2026 12:14:51 +0200 Subject: [PATCH 393/400] Bump pytest from 9.0.3 to 9.1.0 (#1400) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 9ad4b1bc..cfd53f46 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -48,7 +48,7 @@ test = [ "pre-commit==4.6.0", "pre-commit-hooks==6.0.0", "pylint==4.0.5", - "pytest==9.0.3", + "pytest==9.1.0", "pytest-asyncio==1.4.0", "pytest-aiohttp==1.1.1", "pytest-cov==7.1.0", From a80094afa706150787e0ba685be24a1f728a483f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 15 Jun 2026 13:49:19 +0200 Subject: [PATCH 394/400] Bump pylint from 4.0.5 to 4.0.6 (#1399) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index cfd53f46..d69e3b49 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -47,7 +47,7 @@ test = [ "mypy==2.1.0", "pre-commit==4.6.0", "pre-commit-hooks==6.0.0", - "pylint==4.0.5", + "pylint==4.0.6", "pytest==9.1.0", "pytest-asyncio==1.4.0", "pytest-aiohttp==1.1.1", From a4379bf71975ae5f1cf842b890e0afd3d71e9ea6 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 17 Jun 2026 11:41:22 +0200 Subject: [PATCH 395/400] Bump release-drafter/release-drafter from 7.3.1 to 7.4.0 (#1403) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release-drafter.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index a74fe5cc..9521e8c4 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -13,6 +13,6 @@ jobs: runs-on: ubuntu-latest steps: # Drafts your next Release notes as Pull Requests are merged into "master" - - uses: release-drafter/release-drafter@v7.3.1 + - uses: release-drafter/release-drafter@v7.4.0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 435177a6b2fe3820f389c127e32d374fec10de24 Mon Sep 17 00:00:00 2001 From: Ingo Fischer Date: Tue, 23 Jun 2026 09:47:28 +0200 Subject: [PATCH 396/400] Adjust the Readme for deprecation (#1405) --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5a167147..a875cff8 100644 --- a/README.md +++ b/README.md @@ -9,9 +9,9 @@ This project implements a Matter Controller Server over WebSockets using the as a base and provides both a server and client implementation. > [!IMPORTANT] -> Weโ€™re excited to share that the Matter Server is being rewritten on top of [matter.js](https://github.com/matter-js/matter.js)! ๐ŸŽ‰ -> This means that the current project has moved into **maintenance mode** โ€” weโ€™ll still fix important bugs if they come up, but all new features will land in the new project instead. -> Weโ€™ll post a link as soon as the first **alpha version** is ready for you to try out. ๐Ÿš€ +> The Matter Server was rewritten and moved to [matterjs-server](https://github.com/matter-js/matterjs-server)! ๐ŸŽ‰ +> The version 8.1.2 is the final version of the python-matter-server, libraries, and docker-container. +> Please migrate to the new server as soon as possible, as the python-matter-server will no longer receive updates or support. The Open Home Foundation Matter Server software component is funded by [Nabu Casa](https://www.nabucasa.com/) (a member of the CSA) and donated to [The Open Home Foundation](https://www.openhomefoundation.org/). From b33a419db04c5584de79f854f3a11cd4aec8f2a1 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 23 Jun 2026 09:48:44 +0200 Subject: [PATCH 397/400] Bump actions/checkout from 6.0.3 to 7.0.0 (#1404) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 4 ++-- .github/workflows/test.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 950ca6f2..4613a630 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,7 +14,7 @@ jobs: outputs: version: ${{ steps.vars.outputs.tag }} steps: - - uses: actions/checkout@v6.0.3 + - uses: actions/checkout@v7.0.0 - name: Get tag id: vars run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT @@ -77,7 +77,7 @@ jobs: packages: write needs: build-and-publish-pypi steps: - - uses: actions/checkout@v6.0.3 + - uses: actions/checkout@v7.0.0 - name: Log in to the GitHub container registry uses: docker/login-action@v4.2.0 with: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f210816f..0d6dba37 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,7 +16,7 @@ jobs: steps: - name: Check out code from GitHub - uses: actions/checkout@v6.0.3 + uses: actions/checkout@v7.0.0 - name: Set up Python uses: actions/setup-python@v6.2.0 with: @@ -42,7 +42,7 @@ jobs: steps: - name: Check out code from GitHub - uses: actions/checkout@v6.0.3 + uses: actions/checkout@v7.0.0 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v6.2.0 with: From 55f912fbef0c8003a9a038c6b36d7e8240ed7cdd Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 23 Jun 2026 09:48:53 +0200 Subject: [PATCH 398/400] Bump zeroconf from 0.149.16 to 0.149.17 (#1406) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index d69e3b49..09cd268a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,7 +37,7 @@ server = [ "coloredlogs==15.0.1", "cryptography==49.0.0", "orjson==3.11.9", - "zeroconf==0.149.16", + "zeroconf==0.149.17", "home-assistant-chip-core==2025.7.0", ] test = [ From 645cd96711436c337339f2ddb8546d493817cae7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 23 Jun 2026 09:49:27 +0200 Subject: [PATCH 399/400] Bump ruff from 0.15.17 to 0.15.18 (#1407) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 09cd268a..5b039df9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,7 +52,7 @@ test = [ "pytest-asyncio==1.4.0", "pytest-aiohttp==1.1.1", "pytest-cov==7.1.0", - "ruff==0.15.17", + "ruff==0.15.18", "tomli==2.4.1", ] From 4c820ed12bac349dda372031e9757c67b9fd9048 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 23 Jun 2026 09:49:35 +0200 Subject: [PATCH 400/400] Bump pytest from 9.1.0 to 9.1.1 (#1408) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 5b039df9..90e37c70 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -48,7 +48,7 @@ test = [ "pre-commit==4.6.0", "pre-commit-hooks==6.0.0", "pylint==4.0.6", - "pytest==9.1.0", + "pytest==9.1.1", "pytest-asyncio==1.4.0", "pytest-aiohttp==1.1.1", "pytest-cov==7.1.0",