From 3844729a9bb79ac4c5e60bd4a5e1324b1e46844d Mon Sep 17 00:00:00 2001 From: Song GUO Date: Tue, 30 Nov 2021 04:32:19 +0800 Subject: [PATCH] [Python] Cluster Object based Subscription & Remove Generated C++ code for python (#12285) * [Python] Add subscription support to ClusterObject API * Remove unused code * Run Codegen --- src/controller/python/BUILD.gn | 1 - src/controller/python/chip-device-ctrl.py | 4 +- src/controller/python/chip/ChipDeviceCtrl.py | 41 +- .../python/chip/clusters/Attribute.py | 134 +- .../python/chip/clusters/CHIPClusters.cpp | 11639 ---------------- .../python/chip/clusters/CHIPClusters.py | 6747 --------- .../python/chip/clusters/attribute.cpp | 50 +- .../templates/python-CHIPClusters-cpp.zapt | 168 - .../templates/python-CHIPClusters-py.zapt | 82 - .../python/templates/templates.json | 5 - .../python/test/test_scripts/base.py | 50 +- .../test/test_scripts/cluster_objects.py | 24 + 12 files changed, 226 insertions(+), 18719 deletions(-) delete mode 100644 src/controller/python/chip/clusters/CHIPClusters.cpp delete mode 100644 src/controller/python/templates/python-CHIPClusters-cpp.zapt diff --git a/src/controller/python/BUILD.gn b/src/controller/python/BUILD.gn index 34aa0b4b20e006..5bc715fdd802a4 100644 --- a/src/controller/python/BUILD.gn +++ b/src/controller/python/BUILD.gn @@ -44,7 +44,6 @@ shared_library("ChipDeviceCtrl") { "ChipDeviceController-ScriptDevicePairingDelegate.h", "ChipDeviceController-StorageDelegate.cpp", "ChipDeviceController-StorageDelegate.h", - "chip/clusters/CHIPClusters.cpp", "chip/clusters/attribute.cpp", "chip/clusters/command.cpp", "chip/discovery/NodeResolution.cpp", diff --git a/src/controller/python/chip-device-ctrl.py b/src/controller/python/chip-device-ctrl.py index 0ee6c2d359c601..03b31548d1c2e0 100755 --- a/src/controller/python/chip-device-ctrl.py +++ b/src/controller/python/chip-device-ctrl.py @@ -824,8 +824,10 @@ def do_zclsubscribe(self, line): elif len(args) == 6: if args[0] not in all_attrs: raise exceptions.UnknownCluster(args[0]) - self.devCtrl.ZCLSubscribeAttribute(args[0], args[1], int( + res = self.devCtrl.ZCLSubscribeAttribute(args[0], args[1], int( args[2]), int(args[3]), int(args[4]), int(args[5])) + print(res.GetAllValues()) + print(f"Subscription Established: {res}") elif len(args) == 2 and args[0] == '-shutdown': subscriptionId = int(args[1], base=0) self.devCtrl.ZCLShutdownSubscription(subscriptionId) diff --git a/src/controller/python/chip/ChipDeviceCtrl.py b/src/controller/python/chip/ChipDeviceCtrl.py index e14941a90f277e..acfea12d733ddc 100644 --- a/src/controller/python/chip/ChipDeviceCtrl.py +++ b/src/controller/python/chip/ChipDeviceCtrl.py @@ -29,6 +29,7 @@ from __future__ import print_function import asyncio from ctypes import * + from .ChipStack import * from .interaction_model import InteractionModelError, delegate as im from .exceptions import * @@ -110,7 +111,6 @@ def HandleKeyExchangeComplete(err): err) else: print("Secure Session to Device Established") - self._ChipStack.callbackRes = True self.state = DCState.IDLE self._ChipStack.completeEvent.set() @@ -423,7 +423,7 @@ async def ReadAttribute(self, nodeid: int, attributes: typing.List[typing.Union[ typing.Tuple[int, typing.Type[ClusterObjects.Cluster]], # Concrete path typing.Tuple[int, typing.Type[ClusterObjects.ClusterAttributeDescriptor]] - ]]): + ]], reportInterval: typing.Tuple[int, int] = None): ''' Read a list of attributes from a target node @@ -438,10 +438,13 @@ async def ReadAttribute(self, nodeid: int, attributes: typing.List[typing.Union[ The cluster and attributes specified above are to be selected from the generated cluster objects. - e.g + e.g. ReadAttribute(1, [ 1 ] ) -- case 4 above. ReadAttribute(1, [ Clusters.Basic ] ) -- case 5 above. ReadAttribute(1, [ (1, Clusters.Basic.Attributes.Location ] ) -- case 1 above. + + reportInterval: A tuple of two int-s for (MinIntervalFloor, MaxIntervalCeiling). Used by establishing subscriptions. + When not provided, a read request will be sent. ''' eventLoop = asyncio.get_running_loop() @@ -478,7 +481,7 @@ async def ReadAttribute(self, nodeid: int, attributes: typing.List[typing.Union[ attrs.append(ClusterAttribute.AttributePath( EndpointId=endpoint, Cluster=cluster, Attribute=attribute)) res = self._ChipStack.Call( - lambda: ClusterAttribute.ReadAttributes(future, eventLoop, device, attrs)) + lambda: ClusterAttribute.ReadAttributes(future, eventLoop, device, self, attrs, ClusterAttribute.SubscriptionParameters(reportInterval[0], reportInterval[1]) if reportInterval else None)) if res != 0: raise self._ChipStack.ErrorToException(res) return await future @@ -498,13 +501,16 @@ def ZCLSend(self, cluster, command, nodeid, endpoint, groupid, args, blocking=Fa return (int(ex.state), None) def ZCLReadAttribute(self, cluster, attribute, nodeid, endpoint, groupid, blocking=True): - device = self.GetConnectedDeviceSync(nodeid) + req = None + try: + req = eval(f"GeneratedObjects.{cluster}.Attributes.{attribute}") + except: + raise UnknownAttribute(cluster, attribute) - # We are not using IM for Attributes. - self._Cluster.ReadAttribute( - device, cluster, attribute, endpoint, groupid, False) - if blocking: - return im.GetAttributeReadResponse(im.DEFAULT_ATTRIBUTEREAD_APPID) + result = asyncio.run(self.ReadAttribute(nodeid, [(endpoint, req)])) + path = ClusterAttribute.AttributePath( + EndpointId=endpoint, Attribute=req) + return im.AttributeReadResult(path=im.AttributePath(nodeId=nodeid, endpointId=path.EndpointId, clusterId=path.ClusterId, attributeId=path.AttributeId), status=0, value=result[path].Data.value) def ZCLWriteAttribute(self, cluster: str, attribute: str, nodeid, endpoint, groupid, value, blocking=True): req = None @@ -517,15 +523,12 @@ def ZCLWriteAttribute(self, cluster: str, attribute: str, nodeid, endpoint, grou return asyncio.run(self.WriteAttribute(nodeid, [(endpoint, req)])) def ZCLSubscribeAttribute(self, cluster, attribute, nodeid, endpoint, minInterval, maxInterval, blocking=True): - device = self.GetConnectedDeviceSync(nodeid) - - commandSenderHandle = self._dmLib.pychip_GetCommandSenderHandle(device) - im.ClearCommandStatus(commandSenderHandle) - self._Cluster.SubscribeAttribute( - device, cluster, attribute, endpoint, minInterval, maxInterval, commandSenderHandle != 0) - if blocking: - # We only send 1 command by this function, so index is always 0 - return im.WaitCommandIndexStatus(commandSenderHandle, 1) + req = None + try: + req = eval(f"GeneratedObjects.{cluster}.Attributes.{attribute}") + except: + raise UnknownAttribute(cluster, attribute) + return asyncio.run(self.ReadAttribute(nodeid, [(endpoint, req)], reportInterval=(minInterval, maxInterval))) def ZCLShutdownSubscription(self, subscriptionId: int): res = self._ChipStack.Call( diff --git a/src/controller/python/chip/clusters/Attribute.py b/src/controller/python/chip/clusters/Attribute.py index bbd9f23c90db1b..4832494d0e515e 100644 --- a/src/controller/python/chip/clusters/Attribute.py +++ b/src/controller/python/chip/clusters/Attribute.py @@ -18,10 +18,10 @@ from asyncio.futures import Future import ctypes from dataclasses import dataclass -from typing import Type, Union, List, Any -from ctypes import CFUNCTYPE, c_char_p, c_size_t, c_void_p, c_uint32, c_uint16, py_object +from typing import Tuple, Type, Union, List, Any, Callable +from ctypes import CFUNCTYPE, c_char_p, c_size_t, c_void_p, c_uint32, c_uint16, py_object, c_uint64 -from .ClusterObjects import ClusterAttributeDescriptor +from .ClusterObjects import Cluster, ClusterAttributeDescriptor import chip.exceptions import chip.interaction_model import chip.tlv @@ -29,6 +29,7 @@ import inspect import sys import logging +import threading @dataclass @@ -59,6 +60,14 @@ def __init__(self, EndpointId: int = None, Cluster=None, Attribute=None, Cluster def __str__(self) -> str: return f"{self.EndpointId}/{self.ClusterId}/{self.AttributeId}" + def __hash__(self): + return str(self).__hash__() + + +@dataclass +class AttributePathWithListIndex(AttributePath): + ListIndex: int = None + @dataclass class AttributeStatus: @@ -114,13 +123,73 @@ def _BuildAttributeIndex(): 'chip.clusters.Objects.' + clusterName + '.Attributes.' + attributeName) +def _on_update_noop(path: AttributePath, value: Any): + ''' + Default OnUpdate callback, simplily does nothing. + ''' + pass + + +@dataclass +class SubscriptionParameters: + MinReportIntervalFloorSeconds: int + MaxReportIntervalCeilingSeconds: int + + +class SubscriptionTransaction: + def __init__(self, transaction: 'AsyncReadTransaction', subscriptionId, devCtrl): + self._on_update = _on_update_noop + self._read_transaction = transaction + self._subscriptionId = subscriptionId + self._devCtrl = devCtrl + + def GetValue(self, path: Tuple[int, Type[ClusterAttributeDescriptor]]): + ''' + Gets the attribute from cache, returns the value and the timestamp when it was updated last time. + ''' + return self._read_transaction.GetValue(AttributePath(path[0], Attribute=path[1])) + + def GetAllValues(self): + return self._read_transaction.GetAllValues() + + def SetAttributeUpdateCallback(self, callback: Callable[[AttributePath, Any], None]): + ''' + Sets the callback function for the attribute value change event, accepts a Callable accpets an attribute path and its updated value. + ''' + if callback is None: + self._on_update = _on_update_noop + else: + self._on_update = callback + + @property + def OnUpdate(self) -> Callable[[AttributePath, Any], None]: + return self._on_update + + def Shutdown(self): + self._devCtrl.ZCLShutdownSubscription(self._subscriptionId) + + def __repr__(self): + return f'' + + class AsyncReadTransaction: - def __init__(self, future: Future, eventLoop): + def __init__(self, future: Future, eventLoop, devCtrl): self._event_loop = eventLoop self._future = future - self._res = [] + self._subscription_handler = None + self._res = {} + self._devCtrl = devCtrl + # For subscriptions, the data comes from CHIP Thread, whild the value will be accessed from Python's thread, so a lock is required here. + self._resLock = threading.Lock() + + def GetValue(self, path: AttributePath): + with self._resLock: + return self._res.get(path) - def _handleAttributeData(self, path: AttributePath, status: int, data: bytes): + def GetAllValues(self): + return self._res + + def _handleAttributeData(self, path: AttributePathWithListIndex, status: int, data: bytes): try: imStatus = status try: @@ -142,14 +211,21 @@ def _handleAttributeData(self, path: AttributePath, status: int, data: bytes): f"Failed Cluster Object: {str(attributeType)}") raise - self._res.append(AttributeReadResult( - Path=path, Status=imStatus, Data=attributeType(attributeValue))) + with self._resLock: + self._res[path] = AttributeReadResult( + Path=path, Status=imStatus, Data=attributeType(attributeValue)) + if self._subscription_handler is not None: + self._subscription_handler.OnUpdate( + path, attributeType(attributeValue)) except Exception as ex: logging.exception(ex) def handleAttributeData(self, path: AttributePath, status: int, data: bytes): - self._event_loop.call_soon_threadsafe( - self._handleAttributeData, path, status, data) + if self._subscription_handler is not None: + self._handleAttributeData(path, status, data) + else: + self._event_loop.call_soon_threadsafe( + self._handleAttributeData, path, status, data) def _handleError(self, chipError: int): self._future.set_exception( @@ -160,12 +236,22 @@ def handleError(self, chipError: int): self._handleError, chipError ) - def _handleDone(self, asd): + def _handleSubscriptionEstablished(self, subscriptionId): + if not self._future.done(): + self._subscription_handler = SubscriptionTransaction( + self, subscriptionId, self._devCtrl) + self._future.set_result(self._subscription_handler) + + def handleSubscriptionEstablished(self, subscriptionId): + self._event_loop.call_soon_threadsafe( + self._handleSubscriptionEstablished, subscriptionId) + + def _handleDone(self): if not self._future.done(): self._future.set_result(self._res) def handleDone(self): - self._event_loop.call_soon_threadsafe(self._handleDone, "asdasa") + self._event_loop.call_soon_threadsafe(self._handleDone) class AsyncWriteTransaction: @@ -204,6 +290,7 @@ def handleDone(self): _OnReadAttributeDataCallbackFunct = CFUNCTYPE( None, py_object, c_uint16, c_uint32, c_uint32, c_uint32, c_void_p, c_size_t) +_OnSubscriptionEstablishedCallbackFunct = CFUNCTYPE(None, py_object, c_uint64) _OnReadErrorCallbackFunct = CFUNCTYPE( None, py_object, c_uint32) _OnReadDoneCallbackFunct = CFUNCTYPE( @@ -217,6 +304,11 @@ def _OnReadAttributeDataCallback(closure, endpoint: int, cluster: int, attribute EndpointId=endpoint, ClusterId=cluster, AttributeId=attribute), status, dataBytes[:]) +@_OnSubscriptionEstablishedCallbackFunct +def _OnSubscriptionEstablishedCallback(closure, subscriptionId): + closure.handleSubscriptionEstablished(subscriptionId) + + @_OnReadErrorCallbackFunct def _OnReadErrorCallback(closure, chiperror: int): closure.handleError(chiperror) @@ -278,9 +370,9 @@ def WriteAttributes(future: Future, eventLoop, device, attributes: List[Attribut return res -def ReadAttributes(future: Future, eventLoop, device, attributes: List[AttributePath]) -> int: +def ReadAttributes(future: Future, eventLoop, device, devCtrl, attributes: List[AttributePath], subscriptionParameters: SubscriptionParameters = None) -> int: handle = chip.native.GetLibraryHandle() - transaction = AsyncReadTransaction(future, eventLoop) + transaction = AsyncReadTransaction(future, eventLoop, devCtrl) readargs = [] for attr in attributes: @@ -296,8 +388,16 @@ def ReadAttributes(future: Future, eventLoop, device, attributes: List[Attribute readargs.append(ctypes.c_char_p(path)) ctypes.pythonapi.Py_IncRef(ctypes.py_object(transaction)) + minInterval = 0 + maxInterval = 0 + if subscriptionParameters is not None: + minInterval = subscriptionParameters.MinReportIntervalFloorSeconds + maxInterval = subscriptionParameters.MaxReportIntervalCeilingSeconds res = handle.pychip_ReadClient_ReadAttributes( - ctypes.py_object(transaction), device, ctypes.c_size_t(len(attributes)), *readargs) + ctypes.py_object(transaction), device, + ctypes.c_bool(subscriptionParameters is not None), + ctypes.c_uint32(minInterval), ctypes.c_uint32(maxInterval), + ctypes.c_size_t(len(attributes)), *readargs) if res != 0: ctypes.pythonapi.Py_DecRef(ctypes.py_object(transaction)) return res @@ -316,11 +416,11 @@ def Init(): _OnWriteResponseCallbackFunct, _OnWriteErrorCallbackFunct, _OnWriteDoneCallbackFunct]) handle.pychip_ReadClient_ReadAttributes.restype = c_uint32 setter.Set('pychip_ReadClient_InitCallbacks', None, [ - _OnReadAttributeDataCallbackFunct, _OnReadErrorCallbackFunct, _OnReadDoneCallbackFunct]) + _OnReadAttributeDataCallbackFunct, _OnSubscriptionEstablishedCallbackFunct, _OnReadErrorCallbackFunct, _OnReadDoneCallbackFunct]) handle.pychip_WriteClient_InitCallbacks( _OnWriteResponseCallback, _OnWriteErrorCallback, _OnWriteDoneCallback) handle.pychip_ReadClient_InitCallbacks( - _OnReadAttributeDataCallback, _OnReadErrorCallback, _OnReadDoneCallback) + _OnReadAttributeDataCallback, _OnSubscriptionEstablishedCallback, _OnReadErrorCallback, _OnReadDoneCallback) _BuildAttributeIndex() diff --git a/src/controller/python/chip/clusters/CHIPClusters.cpp b/src/controller/python/chip/clusters/CHIPClusters.cpp deleted file mode 100644 index ab532e0d847ed4..00000000000000 --- a/src/controller/python/chip/clusters/CHIPClusters.cpp +++ /dev/null @@ -1,11639 +0,0 @@ -/* - * - * Copyright (c) 2021 Project CHIP Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// THIS FILE IS GENERATED BY ZAP - -#include -#include -#include -#include -#include -#include - -#include - -#include -#include - -using namespace chip; -using namespace chip::app; - -namespace { - -// Define pointers for external ZCL response delegates. - -using SuccessResponseDelegate = void (*)(); -using FailureResponseDelegate = void (*)(uint8_t); -SuccessResponseDelegate gSuccessResponseDelegate; -FailureResponseDelegate gFailureResponseDelegate; - -// Define callbacks for ZCL commands and attribute requests. - -#if CHIP_PROGRESS_LOGGING -std::string ByteSpanToString(chip::ByteSpan value) -{ - std::string strValue = ""; - for (size_t i = 0; i < value.size(); i++) - { - strValue += ' '; - strValue += std::to_string(value.data()[i]); - } - return strValue; -} -#endif - -void OnDefaultSuccessResponse(void * /* context */) -{ - if (gSuccessResponseDelegate != nullptr) - gSuccessResponseDelegate(); -} - -void OnDefaultFailureResponse(void * /* context */, uint8_t status) -{ - if (gFailureResponseDelegate != nullptr) - gFailureResponseDelegate(status); -} - -template -void OnAttributeResponse(void * /* context */, AttributeType value) -{ - std::string strValue = std::to_string(value); - ChipLogProgress(Zcl, " attributeValue: %s", strValue.c_str()); - if (gSuccessResponseDelegate != nullptr) - gSuccessResponseDelegate(); -} - -template <> -void OnAttributeResponse(void * /* context */, chip::ByteSpan value) -{ - ChipLogProgress(Zcl, " attributeValue: (span of length %zd) %s", value.size(), ByteSpanToString(value).c_str()); - if (gSuccessResponseDelegate != nullptr) - gSuccessResponseDelegate(); -} - -template <> -void OnAttributeResponse(void * /* context */, chip::CharSpan value) -{ - ChipLogProgress(Zcl, " attributeValue: '%.*s'", static_cast(value.size()), value.data()); - if (gSuccessResponseDelegate != nullptr) - gSuccessResponseDelegate(); -} - -template <> -void OnAttributeResponse(void * /* context */, bool value) -{ - ChipLogProgress(Zcl, " attributeValue: %s", value ? "true" : "false"); - if (gSuccessResponseDelegate != nullptr) - gSuccessResponseDelegate(); -} - -static void -OnApplicationLauncherApplicationLauncherListListAttributeResponse(void * context, - const chip::app::DataModel::DecodableList & list) -{ - if (gSuccessResponseDelegate != nullptr) - gSuccessResponseDelegate(); -} -chip::Callback::Callback - gApplicationLauncherApplicationLauncherListListAttributeCallback{ - OnApplicationLauncherApplicationLauncherListListAttributeResponse, nullptr - }; -static void OnAudioOutputAudioOutputListListAttributeResponse( - void * context, - const chip::app::DataModel::DecodableList & list) -{ - if (gSuccessResponseDelegate != nullptr) - gSuccessResponseDelegate(); -} -chip::Callback::Callback gAudioOutputAudioOutputListListAttributeCallback{ - OnAudioOutputAudioOutputListListAttributeResponse, nullptr -}; -static void OnBridgedActionsActionListListAttributeResponse( - void * context, - const chip::app::DataModel::DecodableList & list) -{ - if (gSuccessResponseDelegate != nullptr) - gSuccessResponseDelegate(); -} -chip::Callback::Callback gBridgedActionsActionListListAttributeCallback{ - OnBridgedActionsActionListListAttributeResponse, nullptr -}; -static void OnBridgedActionsEndpointListListAttributeResponse( - void * context, - const chip::app::DataModel::DecodableList & - list) -{ - if (gSuccessResponseDelegate != nullptr) - gSuccessResponseDelegate(); -} -chip::Callback::Callback gBridgedActionsEndpointListListAttributeCallback{ - OnBridgedActionsEndpointListListAttributeResponse, nullptr -}; -static void -OnContentLauncherAcceptsHeaderListListAttributeResponse(void * context, - const chip::app::DataModel::DecodableList & list) -{ - if (gSuccessResponseDelegate != nullptr) - gSuccessResponseDelegate(); -} -chip::Callback::Callback - gContentLauncherAcceptsHeaderListListAttributeCallback{ OnContentLauncherAcceptsHeaderListListAttributeResponse, nullptr }; -static void OnContentLauncherSupportedStreamingTypesListAttributeResponse( - void * context, - const chip::app::DataModel::DecodableList & list) -{ - if (gSuccessResponseDelegate != nullptr) - gSuccessResponseDelegate(); -} -chip::Callback::Callback - gContentLauncherSupportedStreamingTypesListAttributeCallback{ OnContentLauncherSupportedStreamingTypesListAttributeResponse, - nullptr }; -static void OnDescriptorDeviceListListAttributeResponse( - void * context, - const chip::app::DataModel::DecodableList & list) -{ - if (gSuccessResponseDelegate != nullptr) - gSuccessResponseDelegate(); -} -chip::Callback::Callback gDescriptorDeviceListListAttributeCallback{ - OnDescriptorDeviceListListAttributeResponse, nullptr -}; -static void OnDescriptorServerListListAttributeResponse(void * context, - const chip::app::DataModel::DecodableList & list) -{ - if (gSuccessResponseDelegate != nullptr) - gSuccessResponseDelegate(); -} -chip::Callback::Callback gDescriptorServerListListAttributeCallback{ - OnDescriptorServerListListAttributeResponse, nullptr -}; -static void OnDescriptorClientListListAttributeResponse(void * context, - const chip::app::DataModel::DecodableList & list) -{ - if (gSuccessResponseDelegate != nullptr) - gSuccessResponseDelegate(); -} -chip::Callback::Callback gDescriptorClientListListAttributeCallback{ - OnDescriptorClientListListAttributeResponse, nullptr -}; -static void OnDescriptorPartsListListAttributeResponse(void * context, - const chip::app::DataModel::DecodableList & list) -{ - if (gSuccessResponseDelegate != nullptr) - gSuccessResponseDelegate(); -} -chip::Callback::Callback gDescriptorPartsListListAttributeCallback{ - OnDescriptorPartsListListAttributeResponse, nullptr -}; -static void OnFixedLabelLabelListListAttributeResponse( - void * context, - const chip::app::DataModel::DecodableList & list) -{ - if (gSuccessResponseDelegate != nullptr) - gSuccessResponseDelegate(); -} -chip::Callback::Callback gFixedLabelLabelListListAttributeCallback{ - OnFixedLabelLabelListListAttributeResponse, nullptr -}; -static void OnGeneralCommissioningBasicCommissioningInfoListListAttributeResponse( - void * context, - const chip::app::DataModel::DecodableList< - chip::app::Clusters::GeneralCommissioning::Structs::BasicCommissioningInfoType::DecodableType> & list) -{ - if (gSuccessResponseDelegate != nullptr) - gSuccessResponseDelegate(); -} -chip::Callback::Callback - gGeneralCommissioningBasicCommissioningInfoListListAttributeCallback{ - OnGeneralCommissioningBasicCommissioningInfoListListAttributeResponse, nullptr - }; -static void OnGeneralDiagnosticsNetworkInterfacesListAttributeResponse( - void * context, - const chip::app::DataModel::DecodableList< - chip::app::Clusters::GeneralDiagnostics::Structs::NetworkInterfaceType::DecodableType> & list) -{ - if (gSuccessResponseDelegate != nullptr) - gSuccessResponseDelegate(); -} -chip::Callback::Callback - gGeneralDiagnosticsNetworkInterfacesListAttributeCallback{ OnGeneralDiagnosticsNetworkInterfacesListAttributeResponse, - nullptr }; -static void OnGeneralDiagnosticsActiveHardwareFaultsListAttributeResponse(void * context, - const chip::app::DataModel::DecodableList & list) -{ - if (gSuccessResponseDelegate != nullptr) - gSuccessResponseDelegate(); -} -chip::Callback::Callback - gGeneralDiagnosticsActiveHardwareFaultsListAttributeCallback{ OnGeneralDiagnosticsActiveHardwareFaultsListAttributeResponse, - nullptr }; -static void OnGeneralDiagnosticsActiveRadioFaultsListAttributeResponse(void * context, - const chip::app::DataModel::DecodableList & list) -{ - if (gSuccessResponseDelegate != nullptr) - gSuccessResponseDelegate(); -} -chip::Callback::Callback - gGeneralDiagnosticsActiveRadioFaultsListAttributeCallback{ OnGeneralDiagnosticsActiveRadioFaultsListAttributeResponse, - nullptr }; -static void OnGeneralDiagnosticsActiveNetworkFaultsListAttributeResponse(void * context, - const chip::app::DataModel::DecodableList & list) -{ - if (gSuccessResponseDelegate != nullptr) - gSuccessResponseDelegate(); -} -chip::Callback::Callback - gGeneralDiagnosticsActiveNetworkFaultsListAttributeCallback{ OnGeneralDiagnosticsActiveNetworkFaultsListAttributeResponse, - nullptr }; -static void OnGroupKeyManagementGroupsListAttributeResponse( - void * context, - const chip::app::DataModel::DecodableList & list) -{ - if (gSuccessResponseDelegate != nullptr) - gSuccessResponseDelegate(); -} -chip::Callback::Callback gGroupKeyManagementGroupsListAttributeCallback{ - OnGroupKeyManagementGroupsListAttributeResponse, nullptr -}; -static void OnGroupKeyManagementGroupKeysListAttributeResponse( - void * context, - const chip::app::DataModel::DecodableList & list) -{ - if (gSuccessResponseDelegate != nullptr) - gSuccessResponseDelegate(); -} -chip::Callback::Callback gGroupKeyManagementGroupKeysListAttributeCallback{ - OnGroupKeyManagementGroupKeysListAttributeResponse, nullptr -}; -static void OnMediaInputMediaInputListListAttributeResponse( - void * context, - const chip::app::DataModel::DecodableList & list) -{ - if (gSuccessResponseDelegate != nullptr) - gSuccessResponseDelegate(); -} -chip::Callback::Callback gMediaInputMediaInputListListAttributeCallback{ - OnMediaInputMediaInputListListAttributeResponse, nullptr -}; -static void OnModeSelectSupportedModesListAttributeResponse( - void * context, - const chip::app::DataModel::DecodableList & list) -{ - if (gSuccessResponseDelegate != nullptr) - gSuccessResponseDelegate(); -} -chip::Callback::Callback gModeSelectSupportedModesListAttributeCallback{ - OnModeSelectSupportedModesListAttributeResponse, nullptr -}; -static void OnOperationalCredentialsFabricsListListAttributeResponse( - void * context, - const chip::app::DataModel::DecodableList< - chip::app::Clusters::OperationalCredentials::Structs::FabricDescriptor::DecodableType> & list) -{ - if (gSuccessResponseDelegate != nullptr) - gSuccessResponseDelegate(); -} -chip::Callback::Callback - gOperationalCredentialsFabricsListListAttributeCallback{ OnOperationalCredentialsFabricsListListAttributeResponse, nullptr }; -static void OnOperationalCredentialsTrustedRootCertificatesListAttributeResponse( - void * context, const chip::app::DataModel::DecodableList & list) -{ - if (gSuccessResponseDelegate != nullptr) - gSuccessResponseDelegate(); -} -chip::Callback::Callback - gOperationalCredentialsTrustedRootCertificatesListAttributeCallback{ - OnOperationalCredentialsTrustedRootCertificatesListAttributeResponse, nullptr - }; -static void OnPowerSourceActiveBatteryFaultsListAttributeResponse(void * context, - const chip::app::DataModel::DecodableList & list) -{ - if (gSuccessResponseDelegate != nullptr) - gSuccessResponseDelegate(); -} -chip::Callback::Callback gPowerSourceActiveBatteryFaultsListAttributeCallback{ - OnPowerSourceActiveBatteryFaultsListAttributeResponse, nullptr -}; -static void OnSoftwareDiagnosticsThreadMetricsListAttributeResponse( - void * context, - const chip::app::DataModel::DecodableList & - list) -{ - if (gSuccessResponseDelegate != nullptr) - gSuccessResponseDelegate(); -} -chip::Callback::Callback - gSoftwareDiagnosticsThreadMetricsListAttributeCallback{ OnSoftwareDiagnosticsThreadMetricsListAttributeResponse, nullptr }; -static void OnTvChannelTvChannelListListAttributeResponse( - void * context, - const chip::app::DataModel::DecodableList & list) -{ - if (gSuccessResponseDelegate != nullptr) - gSuccessResponseDelegate(); -} -chip::Callback::Callback gTvChannelTvChannelListListAttributeCallback{ - OnTvChannelTvChannelListListAttributeResponse, nullptr -}; -static void OnTargetNavigatorTargetNavigatorListListAttributeResponse( - void * context, - const chip::app::DataModel::DecodableList< - chip::app::Clusters::TargetNavigator::Structs::NavigateTargetTargetInfo::DecodableType> & list) -{ - if (gSuccessResponseDelegate != nullptr) - gSuccessResponseDelegate(); -} -chip::Callback::Callback - gTargetNavigatorTargetNavigatorListListAttributeCallback{ OnTargetNavigatorTargetNavigatorListListAttributeResponse, nullptr }; -static void OnTestClusterListInt8uListAttributeResponse(void * context, const chip::app::DataModel::DecodableList & list) -{ - if (gSuccessResponseDelegate != nullptr) - gSuccessResponseDelegate(); -} -chip::Callback::Callback gTestClusterListInt8uListAttributeCallback{ - OnTestClusterListInt8uListAttributeResponse, nullptr -}; -static void OnTestClusterListOctetStringListAttributeResponse(void * context, - const chip::app::DataModel::DecodableList & list) -{ - if (gSuccessResponseDelegate != nullptr) - gSuccessResponseDelegate(); -} -chip::Callback::Callback gTestClusterListOctetStringListAttributeCallback{ - OnTestClusterListOctetStringListAttributeResponse, nullptr -}; -static void OnTestClusterListStructOctetStringListAttributeResponse( - void * context, - const chip::app::DataModel::DecodableList & list) -{ - if (gSuccessResponseDelegate != nullptr) - gSuccessResponseDelegate(); -} -chip::Callback::Callback - gTestClusterListStructOctetStringListAttributeCallback{ OnTestClusterListStructOctetStringListAttributeResponse, nullptr }; -static void OnTestClusterListNullablesAndOptionalsStructListAttributeResponse( - void * context, - const chip::app::DataModel::DecodableList< - chip::app::Clusters::TestCluster::Structs::NullablesAndOptionalsStruct::DecodableType> & list) -{ - if (gSuccessResponseDelegate != nullptr) - gSuccessResponseDelegate(); -} -chip::Callback::Callback - gTestClusterListNullablesAndOptionalsStructListAttributeCallback{ - OnTestClusterListNullablesAndOptionalsStructListAttributeResponse, nullptr - }; -static void OnThreadNetworkDiagnosticsNeighborTableListListAttributeResponse( - void * context, - const chip::app::DataModel::DecodableList< - chip::app::Clusters::ThreadNetworkDiagnostics::Structs::NeighborTable::DecodableType> & list) -{ - if (gSuccessResponseDelegate != nullptr) - gSuccessResponseDelegate(); -} -chip::Callback::Callback - gThreadNetworkDiagnosticsNeighborTableListListAttributeCallback{ - OnThreadNetworkDiagnosticsNeighborTableListListAttributeResponse, nullptr - }; -static void OnThreadNetworkDiagnosticsRouteTableListListAttributeResponse( - void * context, - const chip::app::DataModel::DecodableList & - list) -{ - if (gSuccessResponseDelegate != nullptr) - gSuccessResponseDelegate(); -} -chip::Callback::Callback - gThreadNetworkDiagnosticsRouteTableListListAttributeCallback{ OnThreadNetworkDiagnosticsRouteTableListListAttributeResponse, - nullptr }; -static void OnThreadNetworkDiagnosticsSecurityPolicyListAttributeResponse( - void * context, - const chip::app::DataModel::DecodableList< - chip::app::Clusters::ThreadNetworkDiagnostics::Structs::SecurityPolicy::DecodableType> & list) -{ - if (gSuccessResponseDelegate != nullptr) - gSuccessResponseDelegate(); -} -chip::Callback::Callback - gThreadNetworkDiagnosticsSecurityPolicyListAttributeCallback{ OnThreadNetworkDiagnosticsSecurityPolicyListAttributeResponse, - nullptr }; -static void OnThreadNetworkDiagnosticsOperationalDatasetComponentsListAttributeResponse( - void * context, - const chip::app::DataModel::DecodableList< - chip::app::Clusters::ThreadNetworkDiagnostics::Structs::OperationalDatasetComponents::DecodableType> & list) -{ - if (gSuccessResponseDelegate != nullptr) - gSuccessResponseDelegate(); -} -chip::Callback::Callback - gThreadNetworkDiagnosticsOperationalDatasetComponentsListAttributeCallback{ - OnThreadNetworkDiagnosticsOperationalDatasetComponentsListAttributeResponse, nullptr - }; -static void OnThreadNetworkDiagnosticsActiveNetworkFaultsListListAttributeResponse( - void * context, const chip::app::DataModel::DecodableList & list) -{ - if (gSuccessResponseDelegate != nullptr) - gSuccessResponseDelegate(); -} -chip::Callback::Callback - gThreadNetworkDiagnosticsActiveNetworkFaultsListListAttributeCallback{ - OnThreadNetworkDiagnosticsActiveNetworkFaultsListListAttributeResponse, nullptr - }; - -chip::Callback::Callback gDefaultSuccessCallback{ OnDefaultSuccessResponse, nullptr }; -chip::Callback::Callback gDefaultFailureCallback{ OnDefaultFailureResponse, nullptr }; -chip::Callback::Callback gBooleanAttributeCallback{ OnAttributeResponse, nullptr }; -chip::Callback::Callback gInt8uAttributeCallback{ OnAttributeResponse, nullptr }; -chip::Callback::Callback gInt8sAttributeCallback{ OnAttributeResponse, nullptr }; -chip::Callback::Callback gInt16uAttributeCallback{ OnAttributeResponse, nullptr }; -chip::Callback::Callback gInt16sAttributeCallback{ OnAttributeResponse, nullptr }; -chip::Callback::Callback gInt32uAttributeCallback{ OnAttributeResponse, nullptr }; -chip::Callback::Callback gInt32sAttributeCallback{ OnAttributeResponse, nullptr }; -chip::Callback::Callback gInt64uAttributeCallback{ OnAttributeResponse, nullptr }; -chip::Callback::Callback gInt64sAttributeCallback{ OnAttributeResponse, nullptr }; -chip::Callback::Callback gOctetStringAttributeCallback{ OnAttributeResponse, nullptr }; -chip::Callback::Callback gCharStringAttributeCallback{ OnAttributeResponse, nullptr }; - -} // namespace - -extern "C" { - -void chip_ime_SetSuccessResponseDelegate(SuccessResponseDelegate delegate) -{ - gSuccessResponseDelegate = delegate; -} - -void chip_ime_SetFailureResponseDelegate(FailureResponseDelegate delegate) -{ - gFailureResponseDelegate = delegate; -} - -// Cluster AccountLogin - -chip::ChipError::StorageType chip_ime_ReadAttribute_AccountLogin_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::AccountLoginCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_AccountLogin_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::AccountLoginCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -// End of Cluster AccountLogin -// Cluster AdministratorCommissioning - -chip::ChipError::StorageType chip_ime_ReadAttribute_AdministratorCommissioning_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::AdministratorCommissioningCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_AdministratorCommissioning_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::AdministratorCommissioningCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -// End of Cluster AdministratorCommissioning -// Cluster ApplicationBasic - -chip::ChipError::StorageType chip_ime_ReadAttribute_ApplicationBasic_VendorName(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ApplicationBasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeVendorName(gCharStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ApplicationBasic_VendorName(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ApplicationBasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeVendorName(gCharStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ApplicationBasic_VendorId(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ApplicationBasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeVendorId(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ApplicationBasic_VendorId(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ApplicationBasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeVendorId(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ApplicationBasic_ApplicationName(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ApplicationBasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeApplicationName(gCharStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ApplicationBasic_ApplicationName(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ApplicationBasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeApplicationName(gCharStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ApplicationBasic_ProductId(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ApplicationBasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeProductId(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ApplicationBasic_ProductId(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ApplicationBasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeProductId(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ApplicationBasic_ApplicationId(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ApplicationBasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeApplicationId(gCharStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ApplicationBasic_ApplicationId(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ApplicationBasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeApplicationId(gCharStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ApplicationBasic_CatalogVendorId(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ApplicationBasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeCatalogVendorId(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ApplicationBasic_CatalogVendorId(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ApplicationBasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeCatalogVendorId(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ApplicationBasic_ApplicationStatus(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ApplicationBasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeApplicationStatus(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ApplicationBasic_ApplicationStatus(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ApplicationBasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeApplicationStatus(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ApplicationBasic_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ApplicationBasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ApplicationBasic_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ApplicationBasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -// End of Cluster ApplicationBasic -// Cluster ApplicationLauncher - -chip::ChipError::StorageType chip_ime_ReadAttribute_ApplicationLauncher_ApplicationLauncherList(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ApplicationLauncherCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .ReadAttributeApplicationLauncherList(gApplicationLauncherApplicationLauncherListListAttributeCallback.Cancel(), - gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ApplicationLauncher_CatalogVendorId(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ApplicationLauncherCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeCatalogVendorId(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ApplicationLauncher_CatalogVendorId(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ApplicationLauncherCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeCatalogVendorId(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ApplicationLauncher_ApplicationId(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ApplicationLauncherCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeApplicationId(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ApplicationLauncher_ApplicationId(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ApplicationLauncherCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeApplicationId(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ApplicationLauncher_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ApplicationLauncherCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ApplicationLauncher_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ApplicationLauncherCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -// End of Cluster ApplicationLauncher -// Cluster AudioOutput - -chip::ChipError::StorageType chip_ime_ReadAttribute_AudioOutput_AudioOutputList(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::AudioOutputCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .ReadAttributeAudioOutputList(gAudioOutputAudioOutputListListAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_AudioOutput_CurrentAudioOutput(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::AudioOutputCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeCurrentAudioOutput(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_AudioOutput_CurrentAudioOutput(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::AudioOutputCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeCurrentAudioOutput(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_AudioOutput_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::AudioOutputCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_AudioOutput_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::AudioOutputCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -// End of Cluster AudioOutput -// Cluster BarrierControl - -chip::ChipError::StorageType chip_ime_ReadAttribute_BarrierControl_BarrierMovingState(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BarrierControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeBarrierMovingState(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_BarrierControl_BarrierMovingState(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BarrierControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeBarrierMovingState(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_BarrierControl_BarrierSafetyStatus(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BarrierControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeBarrierSafetyStatus(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_BarrierControl_BarrierSafetyStatus(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BarrierControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeBarrierSafetyStatus(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_BarrierControl_BarrierCapabilities(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BarrierControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeBarrierCapabilities(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_BarrierControl_BarrierCapabilities(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BarrierControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeBarrierCapabilities(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_BarrierControl_BarrierPosition(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BarrierControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeBarrierPosition(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_BarrierControl_BarrierPosition(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BarrierControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeBarrierPosition(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_BarrierControl_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BarrierControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_BarrierControl_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BarrierControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -// End of Cluster BarrierControl -// Cluster Basic - -chip::ChipError::StorageType chip_ime_ReadAttribute_Basic_InteractionModelVersion(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeInteractionModelVersion(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_Basic_InteractionModelVersion(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeInteractionModelVersion(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_Basic_VendorName(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeVendorName(gCharStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_Basic_VendorName(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeVendorName(gCharStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_Basic_VendorID(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeVendorID(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_Basic_VendorID(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeVendorID(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_Basic_ProductName(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeProductName(gCharStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_Basic_ProductName(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeProductName(gCharStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_Basic_ProductID(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeProductID(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_Basic_ProductID(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeProductID(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_Basic_NodeLabel(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeNodeLabel(gCharStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_Basic_NodeLabel(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeNodeLabel(gCharStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_Basic_Location(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeLocation(gCharStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_Basic_Location(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeLocation(gCharStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_Basic_HardwareVersion(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeHardwareVersion(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_Basic_HardwareVersion(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeHardwareVersion(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_Basic_HardwareVersionString(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeHardwareVersionString(gCharStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_Basic_HardwareVersionString(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeHardwareVersionString(gCharStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), - minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_Basic_SoftwareVersion(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeSoftwareVersion(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_Basic_SoftwareVersion(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeSoftwareVersion(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_Basic_SoftwareVersionString(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeSoftwareVersionString(gCharStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_Basic_SoftwareVersionString(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeSoftwareVersionString(gCharStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), - minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_Basic_ManufacturingDate(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeManufacturingDate(gCharStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_Basic_ManufacturingDate(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeManufacturingDate(gCharStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_Basic_PartNumber(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributePartNumber(gCharStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_Basic_PartNumber(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributePartNumber(gCharStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_Basic_ProductURL(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeProductURL(gCharStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_Basic_ProductURL(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeProductURL(gCharStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_Basic_ProductLabel(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeProductLabel(gCharStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_Basic_ProductLabel(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeProductLabel(gCharStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_Basic_SerialNumber(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeSerialNumber(gCharStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_Basic_SerialNumber(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeSerialNumber(gCharStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_Basic_LocalConfigDisabled(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeLocalConfigDisabled(gBooleanAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_Basic_LocalConfigDisabled(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeLocalConfigDisabled(gBooleanAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_Basic_Reachable(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeReachable(gBooleanAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_Basic_Reachable(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeReachable(gBooleanAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_Basic_UniqueID(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeUniqueID(gCharStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_Basic_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_Basic_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -// End of Cluster Basic -// Cluster BinaryInputBasic - -chip::ChipError::StorageType chip_ime_ReadAttribute_BinaryInputBasic_OutOfService(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BinaryInputBasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeOutOfService(gBooleanAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_BinaryInputBasic_OutOfService(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BinaryInputBasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeOutOfService(gBooleanAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_BinaryInputBasic_PresentValue(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BinaryInputBasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributePresentValue(gBooleanAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_BinaryInputBasic_PresentValue(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BinaryInputBasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributePresentValue(gBooleanAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_BinaryInputBasic_StatusFlags(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BinaryInputBasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeStatusFlags(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_BinaryInputBasic_StatusFlags(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BinaryInputBasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeStatusFlags(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_BinaryInputBasic_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BinaryInputBasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_BinaryInputBasic_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BinaryInputBasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -// End of Cluster BinaryInputBasic -// Cluster Binding - -chip::ChipError::StorageType chip_ime_ReadAttribute_Binding_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BindingCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_Binding_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BindingCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -// End of Cluster Binding -// Cluster BooleanState - -chip::ChipError::StorageType chip_ime_ReadAttribute_BooleanState_StateValue(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BooleanStateCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeStateValue(gBooleanAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_BooleanState_StateValue(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BooleanStateCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeStateValue(gBooleanAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_BooleanState_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BooleanStateCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_BooleanState_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BooleanStateCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -// End of Cluster BooleanState -// Cluster BridgedActions - -chip::ChipError::StorageType chip_ime_ReadAttribute_BridgedActions_ActionList(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BridgedActionsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .ReadAttributeActionList(gBridgedActionsActionListListAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_BridgedActions_EndpointList(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BridgedActionsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .ReadAttributeEndpointList(gBridgedActionsEndpointListListAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_BridgedActions_SetupUrl(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BridgedActionsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeSetupUrl(gCharStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_BridgedActions_SetupUrl(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BridgedActionsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeSetupUrl(gCharStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_BridgedActions_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BridgedActionsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_BridgedActions_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BridgedActionsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -// End of Cluster BridgedActions -// Cluster BridgedDeviceBasic - -chip::ChipError::StorageType chip_ime_ReadAttribute_BridgedDeviceBasic_VendorName(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BridgedDeviceBasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeVendorName(gCharStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_BridgedDeviceBasic_VendorName(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BridgedDeviceBasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeVendorName(gCharStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_BridgedDeviceBasic_VendorID(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BridgedDeviceBasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeVendorID(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_BridgedDeviceBasic_VendorID(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BridgedDeviceBasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeVendorID(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_BridgedDeviceBasic_ProductName(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BridgedDeviceBasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeProductName(gCharStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_BridgedDeviceBasic_ProductName(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BridgedDeviceBasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeProductName(gCharStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_BridgedDeviceBasic_NodeLabel(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BridgedDeviceBasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeNodeLabel(gCharStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_BridgedDeviceBasic_NodeLabel(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BridgedDeviceBasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeNodeLabel(gCharStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_BridgedDeviceBasic_HardwareVersion(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BridgedDeviceBasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeHardwareVersion(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_BridgedDeviceBasic_HardwareVersion(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BridgedDeviceBasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeHardwareVersion(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_BridgedDeviceBasic_HardwareVersionString(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BridgedDeviceBasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeHardwareVersionString(gCharStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_BridgedDeviceBasic_HardwareVersionString(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BridgedDeviceBasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeHardwareVersionString(gCharStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), - minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_BridgedDeviceBasic_SoftwareVersion(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BridgedDeviceBasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeSoftwareVersion(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_BridgedDeviceBasic_SoftwareVersion(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BridgedDeviceBasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeSoftwareVersion(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_BridgedDeviceBasic_SoftwareVersionString(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BridgedDeviceBasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeSoftwareVersionString(gCharStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_BridgedDeviceBasic_SoftwareVersionString(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BridgedDeviceBasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeSoftwareVersionString(gCharStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), - minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_BridgedDeviceBasic_ManufacturingDate(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BridgedDeviceBasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeManufacturingDate(gCharStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_BridgedDeviceBasic_ManufacturingDate(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BridgedDeviceBasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeManufacturingDate(gCharStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_BridgedDeviceBasic_PartNumber(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BridgedDeviceBasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributePartNumber(gCharStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_BridgedDeviceBasic_PartNumber(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BridgedDeviceBasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributePartNumber(gCharStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_BridgedDeviceBasic_ProductURL(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BridgedDeviceBasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeProductURL(gCharStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_BridgedDeviceBasic_ProductURL(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BridgedDeviceBasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeProductURL(gCharStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_BridgedDeviceBasic_ProductLabel(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BridgedDeviceBasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeProductLabel(gCharStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_BridgedDeviceBasic_ProductLabel(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BridgedDeviceBasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeProductLabel(gCharStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_BridgedDeviceBasic_SerialNumber(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BridgedDeviceBasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeSerialNumber(gCharStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_BridgedDeviceBasic_SerialNumber(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BridgedDeviceBasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeSerialNumber(gCharStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_BridgedDeviceBasic_Reachable(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BridgedDeviceBasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeReachable(gBooleanAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_BridgedDeviceBasic_Reachable(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BridgedDeviceBasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeReachable(gBooleanAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_BridgedDeviceBasic_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BridgedDeviceBasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_BridgedDeviceBasic_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::BridgedDeviceBasicCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -// End of Cluster BridgedDeviceBasic -// Cluster ColorControl - -chip::ChipError::StorageType chip_ime_ReadAttribute_ColorControl_CurrentHue(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeCurrentHue(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ColorControl_CurrentHue(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeCurrentHue(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ColorControl_CurrentSaturation(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeCurrentSaturation(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ColorControl_CurrentSaturation(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeCurrentSaturation(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ColorControl_RemainingTime(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeRemainingTime(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ColorControl_RemainingTime(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeRemainingTime(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ColorControl_CurrentX(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeCurrentX(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ColorControl_CurrentX(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeCurrentX(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ColorControl_CurrentY(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeCurrentY(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ColorControl_CurrentY(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeCurrentY(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ColorControl_DriftCompensation(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeDriftCompensation(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ColorControl_DriftCompensation(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeDriftCompensation(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ColorControl_CompensationText(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeCompensationText(gCharStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ColorControl_CompensationText(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeCompensationText(gCharStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ColorControl_ColorTemperature(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeColorTemperature(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ColorControl_ColorTemperature(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeColorTemperature(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ColorControl_ColorMode(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeColorMode(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ColorControl_ColorMode(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeColorMode(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ColorControl_ColorControlOptions(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeColorControlOptions(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ColorControl_ColorControlOptions(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeColorControlOptions(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ColorControl_NumberOfPrimaries(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeNumberOfPrimaries(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ColorControl_NumberOfPrimaries(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeNumberOfPrimaries(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ColorControl_Primary1X(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributePrimary1X(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ColorControl_Primary1X(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributePrimary1X(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ColorControl_Primary1Y(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributePrimary1Y(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ColorControl_Primary1Y(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributePrimary1Y(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ColorControl_Primary1Intensity(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributePrimary1Intensity(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ColorControl_Primary1Intensity(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributePrimary1Intensity(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ColorControl_Primary2X(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributePrimary2X(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ColorControl_Primary2X(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributePrimary2X(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ColorControl_Primary2Y(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributePrimary2Y(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ColorControl_Primary2Y(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributePrimary2Y(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ColorControl_Primary2Intensity(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributePrimary2Intensity(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ColorControl_Primary2Intensity(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributePrimary2Intensity(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ColorControl_Primary3X(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributePrimary3X(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ColorControl_Primary3X(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributePrimary3X(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ColorControl_Primary3Y(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributePrimary3Y(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ColorControl_Primary3Y(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributePrimary3Y(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ColorControl_Primary3Intensity(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributePrimary3Intensity(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ColorControl_Primary3Intensity(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributePrimary3Intensity(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ColorControl_Primary4X(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributePrimary4X(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ColorControl_Primary4X(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributePrimary4X(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ColorControl_Primary4Y(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributePrimary4Y(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ColorControl_Primary4Y(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributePrimary4Y(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ColorControl_Primary4Intensity(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributePrimary4Intensity(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ColorControl_Primary4Intensity(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributePrimary4Intensity(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ColorControl_Primary5X(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributePrimary5X(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ColorControl_Primary5X(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributePrimary5X(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ColorControl_Primary5Y(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributePrimary5Y(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ColorControl_Primary5Y(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributePrimary5Y(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ColorControl_Primary5Intensity(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributePrimary5Intensity(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ColorControl_Primary5Intensity(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributePrimary5Intensity(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ColorControl_Primary6X(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributePrimary6X(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ColorControl_Primary6X(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributePrimary6X(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ColorControl_Primary6Y(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributePrimary6Y(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ColorControl_Primary6Y(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributePrimary6Y(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ColorControl_Primary6Intensity(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributePrimary6Intensity(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ColorControl_Primary6Intensity(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributePrimary6Intensity(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ColorControl_WhitePointX(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeWhitePointX(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ColorControl_WhitePointX(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeWhitePointX(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ColorControl_WhitePointY(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeWhitePointY(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ColorControl_WhitePointY(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeWhitePointY(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ColorControl_ColorPointRX(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeColorPointRX(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ColorControl_ColorPointRX(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeColorPointRX(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ColorControl_ColorPointRY(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeColorPointRY(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ColorControl_ColorPointRY(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeColorPointRY(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ColorControl_ColorPointRIntensity(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeColorPointRIntensity(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ColorControl_ColorPointRIntensity(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeColorPointRIntensity(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ColorControl_ColorPointGX(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeColorPointGX(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ColorControl_ColorPointGX(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeColorPointGX(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ColorControl_ColorPointGY(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeColorPointGY(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ColorControl_ColorPointGY(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeColorPointGY(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ColorControl_ColorPointGIntensity(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeColorPointGIntensity(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ColorControl_ColorPointGIntensity(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeColorPointGIntensity(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ColorControl_ColorPointBX(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeColorPointBX(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ColorControl_ColorPointBX(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeColorPointBX(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ColorControl_ColorPointBY(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeColorPointBY(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ColorControl_ColorPointBY(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeColorPointBY(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ColorControl_ColorPointBIntensity(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeColorPointBIntensity(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ColorControl_ColorPointBIntensity(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeColorPointBIntensity(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ColorControl_EnhancedCurrentHue(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeEnhancedCurrentHue(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ColorControl_EnhancedCurrentHue(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeEnhancedCurrentHue(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ColorControl_EnhancedColorMode(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeEnhancedColorMode(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ColorControl_EnhancedColorMode(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeEnhancedColorMode(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ColorControl_ColorLoopActive(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeColorLoopActive(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ColorControl_ColorLoopActive(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeColorLoopActive(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ColorControl_ColorLoopDirection(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeColorLoopDirection(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ColorControl_ColorLoopDirection(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeColorLoopDirection(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ColorControl_ColorLoopTime(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeColorLoopTime(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ColorControl_ColorLoopTime(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeColorLoopTime(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ColorControl_ColorLoopStartEnhancedHue(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeColorLoopStartEnhancedHue(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ColorControl_ColorLoopStartEnhancedHue(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeColorLoopStartEnhancedHue(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), - minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ColorControl_ColorLoopStoredEnhancedHue(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeColorLoopStoredEnhancedHue(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ColorControl_ColorLoopStoredEnhancedHue(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeColorLoopStoredEnhancedHue(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), - minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ColorControl_ColorCapabilities(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeColorCapabilities(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ColorControl_ColorCapabilities(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeColorCapabilities(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ColorControl_ColorTempPhysicalMin(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeColorTempPhysicalMin(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ColorControl_ColorTempPhysicalMin(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeColorTempPhysicalMin(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ColorControl_ColorTempPhysicalMax(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeColorTempPhysicalMax(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ColorControl_ColorTempPhysicalMax(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeColorTempPhysicalMax(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ColorControl_CoupleColorTempToLevelMinMireds(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeCoupleColorTempToLevelMinMireds(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType -chip_ime_SubscribeAttribute_ColorControl_CoupleColorTempToLevelMinMireds(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeCoupleColorTempToLevelMinMireds(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), - minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ColorControl_StartUpColorTemperatureMireds(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeStartUpColorTemperatureMireds(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ColorControl_StartUpColorTemperatureMireds(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeStartUpColorTemperatureMireds(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), - minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ColorControl_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ColorControl_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ColorControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -// End of Cluster ColorControl -// Cluster ContentLauncher - -chip::ChipError::StorageType chip_ime_ReadAttribute_ContentLauncher_AcceptsHeaderList(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ContentLauncherCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .ReadAttributeAcceptsHeaderList(gContentLauncherAcceptsHeaderListListAttributeCallback.Cancel(), - gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ContentLauncher_SupportedStreamingTypes(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ContentLauncherCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .ReadAttributeSupportedStreamingTypes(gContentLauncherSupportedStreamingTypesListAttributeCallback.Cancel(), - gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ContentLauncher_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ContentLauncherCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ContentLauncher_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ContentLauncherCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -// End of Cluster ContentLauncher -// Cluster Descriptor - -chip::ChipError::StorageType chip_ime_ReadAttribute_Descriptor_DeviceList(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::DescriptorCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeDeviceList(gDescriptorDeviceListListAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_Descriptor_ServerList(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::DescriptorCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeServerList(gDescriptorServerListListAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_Descriptor_ClientList(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::DescriptorCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeClientList(gDescriptorClientListListAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_Descriptor_PartsList(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::DescriptorCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributePartsList(gDescriptorPartsListListAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_Descriptor_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::DescriptorCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_Descriptor_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::DescriptorCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -// End of Cluster Descriptor -// Cluster DiagnosticLogs - -// End of Cluster DiagnosticLogs -// Cluster DoorLock - -chip::ChipError::StorageType chip_ime_ReadAttribute_DoorLock_LockState(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::DoorLockCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeLockState(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_DoorLock_LockState(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::DoorLockCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeLockState(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_DoorLock_LockType(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::DoorLockCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeLockType(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_DoorLock_LockType(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::DoorLockCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeLockType(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_DoorLock_ActuatorEnabled(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::DoorLockCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeActuatorEnabled(gBooleanAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_DoorLock_ActuatorEnabled(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::DoorLockCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeActuatorEnabled(gBooleanAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_DoorLock_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::DoorLockCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_DoorLock_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::DoorLockCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -// End of Cluster DoorLock -// Cluster ElectricalMeasurement - -chip::ChipError::StorageType chip_ime_ReadAttribute_ElectricalMeasurement_MeasurementType(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ElectricalMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeMeasurementType(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ElectricalMeasurement_MeasurementType(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ElectricalMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeMeasurementType(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ElectricalMeasurement_TotalActivePower(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ElectricalMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeTotalActivePower(gInt32sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ElectricalMeasurement_TotalActivePower(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ElectricalMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeTotalActivePower(gInt32sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ElectricalMeasurement_RmsVoltage(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ElectricalMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeRmsVoltage(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ElectricalMeasurement_RmsVoltage(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ElectricalMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeRmsVoltage(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ElectricalMeasurement_RmsVoltageMin(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ElectricalMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeRmsVoltageMin(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ElectricalMeasurement_RmsVoltageMin(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ElectricalMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeRmsVoltageMin(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ElectricalMeasurement_RmsVoltageMax(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ElectricalMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeRmsVoltageMax(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ElectricalMeasurement_RmsVoltageMax(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ElectricalMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeRmsVoltageMax(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ElectricalMeasurement_RmsCurrent(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ElectricalMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeRmsCurrent(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ElectricalMeasurement_RmsCurrent(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ElectricalMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeRmsCurrent(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ElectricalMeasurement_RmsCurrentMin(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ElectricalMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeRmsCurrentMin(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ElectricalMeasurement_RmsCurrentMin(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ElectricalMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeRmsCurrentMin(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ElectricalMeasurement_RmsCurrentMax(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ElectricalMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeRmsCurrentMax(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ElectricalMeasurement_RmsCurrentMax(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ElectricalMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeRmsCurrentMax(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ElectricalMeasurement_ActivePower(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ElectricalMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeActivePower(gInt16sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ElectricalMeasurement_ActivePower(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ElectricalMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeActivePower(gInt16sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ElectricalMeasurement_ActivePowerMin(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ElectricalMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeActivePowerMin(gInt16sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ElectricalMeasurement_ActivePowerMin(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ElectricalMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeActivePowerMin(gInt16sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ElectricalMeasurement_ActivePowerMax(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ElectricalMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeActivePowerMax(gInt16sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ElectricalMeasurement_ActivePowerMax(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ElectricalMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeActivePowerMax(gInt16sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ElectricalMeasurement_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ElectricalMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ElectricalMeasurement_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ElectricalMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -// End of Cluster ElectricalMeasurement -// Cluster EthernetNetworkDiagnostics - -chip::ChipError::StorageType chip_ime_ReadAttribute_EthernetNetworkDiagnostics_PHYRate(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::EthernetNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributePHYRate(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_EthernetNetworkDiagnostics_PHYRate(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::EthernetNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributePHYRate(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_EthernetNetworkDiagnostics_FullDuplex(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::EthernetNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeFullDuplex(gBooleanAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_EthernetNetworkDiagnostics_FullDuplex(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::EthernetNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeFullDuplex(gBooleanAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_EthernetNetworkDiagnostics_PacketRxCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::EthernetNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributePacketRxCount(gInt64uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_EthernetNetworkDiagnostics_PacketRxCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::EthernetNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributePacketRxCount(gInt64uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_EthernetNetworkDiagnostics_PacketTxCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::EthernetNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributePacketTxCount(gInt64uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_EthernetNetworkDiagnostics_PacketTxCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::EthernetNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributePacketTxCount(gInt64uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_EthernetNetworkDiagnostics_TxErrCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::EthernetNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeTxErrCount(gInt64uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_EthernetNetworkDiagnostics_TxErrCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::EthernetNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeTxErrCount(gInt64uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_EthernetNetworkDiagnostics_CollisionCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::EthernetNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeCollisionCount(gInt64uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_EthernetNetworkDiagnostics_CollisionCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::EthernetNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeCollisionCount(gInt64uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_EthernetNetworkDiagnostics_OverrunCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::EthernetNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeOverrunCount(gInt64uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_EthernetNetworkDiagnostics_OverrunCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::EthernetNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeOverrunCount(gInt64uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_EthernetNetworkDiagnostics_CarrierDetect(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::EthernetNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeCarrierDetect(gBooleanAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_EthernetNetworkDiagnostics_CarrierDetect(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::EthernetNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeCarrierDetect(gBooleanAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_EthernetNetworkDiagnostics_TimeSinceReset(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::EthernetNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeTimeSinceReset(gInt64uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_EthernetNetworkDiagnostics_TimeSinceReset(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::EthernetNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeTimeSinceReset(gInt64uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_EthernetNetworkDiagnostics_FeatureMap(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::EthernetNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeFeatureMap(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_EthernetNetworkDiagnostics_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::EthernetNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_EthernetNetworkDiagnostics_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::EthernetNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -// End of Cluster EthernetNetworkDiagnostics -// Cluster FixedLabel - -chip::ChipError::StorageType chip_ime_ReadAttribute_FixedLabel_LabelList(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::FixedLabelCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeLabelList(gFixedLabelLabelListListAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_FixedLabel_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::FixedLabelCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_FixedLabel_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::FixedLabelCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -// End of Cluster FixedLabel -// Cluster FlowMeasurement - -chip::ChipError::StorageType chip_ime_ReadAttribute_FlowMeasurement_MeasuredValue(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::FlowMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeMeasuredValue(gInt16sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_FlowMeasurement_MeasuredValue(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::FlowMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeMeasuredValue(gInt16sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_FlowMeasurement_MinMeasuredValue(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::FlowMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeMinMeasuredValue(gInt16sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_FlowMeasurement_MinMeasuredValue(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::FlowMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeMinMeasuredValue(gInt16sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_FlowMeasurement_MaxMeasuredValue(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::FlowMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeMaxMeasuredValue(gInt16sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_FlowMeasurement_MaxMeasuredValue(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::FlowMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeMaxMeasuredValue(gInt16sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_FlowMeasurement_Tolerance(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::FlowMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeTolerance(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_FlowMeasurement_Tolerance(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::FlowMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeTolerance(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_FlowMeasurement_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::FlowMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_FlowMeasurement_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::FlowMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -// End of Cluster FlowMeasurement -// Cluster GeneralCommissioning - -chip::ChipError::StorageType chip_ime_ReadAttribute_GeneralCommissioning_Breadcrumb(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::GeneralCommissioningCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeBreadcrumb(gInt64uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_GeneralCommissioning_Breadcrumb(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::GeneralCommissioningCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeBreadcrumb(gInt64uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_GeneralCommissioning_BasicCommissioningInfoList(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::GeneralCommissioningCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .ReadAttributeBasicCommissioningInfoList(gGeneralCommissioningBasicCommissioningInfoListListAttributeCallback.Cancel(), - gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_GeneralCommissioning_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::GeneralCommissioningCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_GeneralCommissioning_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::GeneralCommissioningCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -// End of Cluster GeneralCommissioning -// Cluster GeneralDiagnostics - -chip::ChipError::StorageType chip_ime_ReadAttribute_GeneralDiagnostics_NetworkInterfaces(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::GeneralDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .ReadAttributeNetworkInterfaces(gGeneralDiagnosticsNetworkInterfacesListAttributeCallback.Cancel(), - gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_GeneralDiagnostics_RebootCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::GeneralDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeRebootCount(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_GeneralDiagnostics_RebootCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::GeneralDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeRebootCount(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_GeneralDiagnostics_UpTime(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::GeneralDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeUpTime(gInt64uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_GeneralDiagnostics_UpTime(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::GeneralDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeUpTime(gInt64uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_GeneralDiagnostics_TotalOperationalHours(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::GeneralDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeTotalOperationalHours(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_GeneralDiagnostics_TotalOperationalHours(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::GeneralDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeTotalOperationalHours(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_GeneralDiagnostics_BootReasons(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::GeneralDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeBootReasons(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_GeneralDiagnostics_BootReasons(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::GeneralDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeBootReasons(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_GeneralDiagnostics_ActiveHardwareFaults(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::GeneralDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .ReadAttributeActiveHardwareFaults(gGeneralDiagnosticsActiveHardwareFaultsListAttributeCallback.Cancel(), - gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_GeneralDiagnostics_ActiveRadioFaults(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::GeneralDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .ReadAttributeActiveRadioFaults(gGeneralDiagnosticsActiveRadioFaultsListAttributeCallback.Cancel(), - gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_GeneralDiagnostics_ActiveNetworkFaults(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::GeneralDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .ReadAttributeActiveNetworkFaults(gGeneralDiagnosticsActiveNetworkFaultsListAttributeCallback.Cancel(), - gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_GeneralDiagnostics_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::GeneralDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_GeneralDiagnostics_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::GeneralDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -// End of Cluster GeneralDiagnostics -// Cluster GroupKeyManagement - -chip::ChipError::StorageType chip_ime_ReadAttribute_GroupKeyManagement_Groups(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::GroupKeyManagementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeGroups(gGroupKeyManagementGroupsListAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_GroupKeyManagement_GroupKeys(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::GroupKeyManagementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .ReadAttributeGroupKeys(gGroupKeyManagementGroupKeysListAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_GroupKeyManagement_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::GroupKeyManagementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_GroupKeyManagement_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::GroupKeyManagementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -// End of Cluster GroupKeyManagement -// Cluster Groups - -chip::ChipError::StorageType chip_ime_ReadAttribute_Groups_NameSupport(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::GroupsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeNameSupport(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_Groups_NameSupport(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::GroupsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeNameSupport(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_Groups_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::GroupsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_Groups_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::GroupsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -// End of Cluster Groups -// Cluster Identify - -chip::ChipError::StorageType chip_ime_ReadAttribute_Identify_IdentifyTime(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::IdentifyCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeIdentifyTime(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_Identify_IdentifyTime(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::IdentifyCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeIdentifyTime(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_Identify_IdentifyType(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::IdentifyCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeIdentifyType(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_Identify_IdentifyType(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::IdentifyCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeIdentifyType(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_Identify_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::IdentifyCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_Identify_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::IdentifyCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -// End of Cluster Identify -// Cluster IlluminanceMeasurement - -chip::ChipError::StorageType chip_ime_ReadAttribute_IlluminanceMeasurement_MeasuredValue(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::IlluminanceMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeMeasuredValue(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_IlluminanceMeasurement_MeasuredValue(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::IlluminanceMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeMeasuredValue(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_IlluminanceMeasurement_MinMeasuredValue(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::IlluminanceMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeMinMeasuredValue(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_IlluminanceMeasurement_MinMeasuredValue(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::IlluminanceMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeMinMeasuredValue(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_IlluminanceMeasurement_MaxMeasuredValue(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::IlluminanceMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeMaxMeasuredValue(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_IlluminanceMeasurement_MaxMeasuredValue(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::IlluminanceMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeMaxMeasuredValue(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_IlluminanceMeasurement_Tolerance(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::IlluminanceMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeTolerance(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_IlluminanceMeasurement_Tolerance(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::IlluminanceMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeTolerance(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_IlluminanceMeasurement_LightSensorType(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::IlluminanceMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeLightSensorType(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_IlluminanceMeasurement_LightSensorType(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::IlluminanceMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeLightSensorType(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_IlluminanceMeasurement_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::IlluminanceMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_IlluminanceMeasurement_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::IlluminanceMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -// End of Cluster IlluminanceMeasurement -// Cluster KeypadInput - -chip::ChipError::StorageType chip_ime_ReadAttribute_KeypadInput_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::KeypadInputCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_KeypadInput_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::KeypadInputCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -// End of Cluster KeypadInput -// Cluster LevelControl - -chip::ChipError::StorageType chip_ime_ReadAttribute_LevelControl_CurrentLevel(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::LevelControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeCurrentLevel(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_LevelControl_CurrentLevel(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::LevelControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeCurrentLevel(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_LevelControl_RemainingTime(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::LevelControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeRemainingTime(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_LevelControl_RemainingTime(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::LevelControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeRemainingTime(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_LevelControl_MinLevel(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::LevelControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeMinLevel(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_LevelControl_MinLevel(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::LevelControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeMinLevel(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_LevelControl_MaxLevel(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::LevelControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeMaxLevel(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_LevelControl_MaxLevel(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::LevelControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeMaxLevel(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_LevelControl_CurrentFrequency(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::LevelControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeCurrentFrequency(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_LevelControl_CurrentFrequency(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::LevelControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeCurrentFrequency(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_LevelControl_MinFrequency(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::LevelControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeMinFrequency(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_LevelControl_MinFrequency(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::LevelControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeMinFrequency(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_LevelControl_MaxFrequency(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::LevelControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeMaxFrequency(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_LevelControl_MaxFrequency(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::LevelControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeMaxFrequency(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_LevelControl_Options(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::LevelControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeOptions(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_LevelControl_Options(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::LevelControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeOptions(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_LevelControl_OnOffTransitionTime(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::LevelControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeOnOffTransitionTime(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_LevelControl_OnOffTransitionTime(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::LevelControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeOnOffTransitionTime(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_LevelControl_OnLevel(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::LevelControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeOnLevel(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_LevelControl_OnLevel(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::LevelControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeOnLevel(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_LevelControl_OnTransitionTime(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::LevelControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeOnTransitionTime(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_LevelControl_OnTransitionTime(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::LevelControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeOnTransitionTime(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_LevelControl_OffTransitionTime(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::LevelControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeOffTransitionTime(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_LevelControl_OffTransitionTime(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::LevelControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeOffTransitionTime(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_LevelControl_DefaultMoveRate(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::LevelControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeDefaultMoveRate(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_LevelControl_DefaultMoveRate(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::LevelControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeDefaultMoveRate(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_LevelControl_StartUpCurrentLevel(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::LevelControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeStartUpCurrentLevel(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_LevelControl_StartUpCurrentLevel(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::LevelControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeStartUpCurrentLevel(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_LevelControl_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::LevelControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_LevelControl_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::LevelControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -// End of Cluster LevelControl -// Cluster LowPower - -chip::ChipError::StorageType chip_ime_ReadAttribute_LowPower_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::LowPowerCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_LowPower_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::LowPowerCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -// End of Cluster LowPower -// Cluster MediaInput - -chip::ChipError::StorageType chip_ime_ReadAttribute_MediaInput_MediaInputList(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::MediaInputCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .ReadAttributeMediaInputList(gMediaInputMediaInputListListAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_MediaInput_CurrentMediaInput(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::MediaInputCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeCurrentMediaInput(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_MediaInput_CurrentMediaInput(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::MediaInputCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeCurrentMediaInput(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_MediaInput_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::MediaInputCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_MediaInput_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::MediaInputCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -// End of Cluster MediaInput -// Cluster MediaPlayback - -chip::ChipError::StorageType chip_ime_ReadAttribute_MediaPlayback_PlaybackState(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::MediaPlaybackCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributePlaybackState(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_MediaPlayback_PlaybackState(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::MediaPlaybackCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributePlaybackState(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_MediaPlayback_StartTime(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::MediaPlaybackCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeStartTime(gInt64uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_MediaPlayback_StartTime(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::MediaPlaybackCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeStartTime(gInt64uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_MediaPlayback_Duration(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::MediaPlaybackCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeDuration(gInt64uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_MediaPlayback_Duration(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::MediaPlaybackCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeDuration(gInt64uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_MediaPlayback_PositionUpdatedAt(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::MediaPlaybackCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributePositionUpdatedAt(gInt64uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_MediaPlayback_PositionUpdatedAt(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::MediaPlaybackCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributePositionUpdatedAt(gInt64uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_MediaPlayback_Position(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::MediaPlaybackCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributePosition(gInt64uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_MediaPlayback_Position(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::MediaPlaybackCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributePosition(gInt64uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_MediaPlayback_PlaybackSpeed(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::MediaPlaybackCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributePlaybackSpeed(gInt64uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_MediaPlayback_PlaybackSpeed(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::MediaPlaybackCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributePlaybackSpeed(gInt64uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_MediaPlayback_SeekRangeEnd(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::MediaPlaybackCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeSeekRangeEnd(gInt64uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_MediaPlayback_SeekRangeEnd(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::MediaPlaybackCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeSeekRangeEnd(gInt64uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_MediaPlayback_SeekRangeStart(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::MediaPlaybackCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeSeekRangeStart(gInt64uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_MediaPlayback_SeekRangeStart(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::MediaPlaybackCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeSeekRangeStart(gInt64uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_MediaPlayback_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::MediaPlaybackCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_MediaPlayback_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::MediaPlaybackCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -// End of Cluster MediaPlayback -// Cluster ModeSelect - -chip::ChipError::StorageType chip_ime_ReadAttribute_ModeSelect_CurrentMode(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ModeSelectCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeCurrentMode(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ModeSelect_CurrentMode(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ModeSelectCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeCurrentMode(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ModeSelect_SupportedModes(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ModeSelectCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .ReadAttributeSupportedModes(gModeSelectSupportedModesListAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ModeSelect_OnMode(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ModeSelectCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeOnMode(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ModeSelect_OnMode(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ModeSelectCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeOnMode(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ModeSelect_StartUpMode(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ModeSelectCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeStartUpMode(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ModeSelect_StartUpMode(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ModeSelectCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeStartUpMode(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ModeSelect_Description(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ModeSelectCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeDescription(gCharStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ModeSelect_Description(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ModeSelectCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeDescription(gCharStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ModeSelect_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ModeSelectCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ModeSelect_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ModeSelectCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -// End of Cluster ModeSelect -// Cluster NetworkCommissioning - -chip::ChipError::StorageType chip_ime_ReadAttribute_NetworkCommissioning_FeatureMap(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::NetworkCommissioningCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeFeatureMap(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_NetworkCommissioning_FeatureMap(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::NetworkCommissioningCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeFeatureMap(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_NetworkCommissioning_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::NetworkCommissioningCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_NetworkCommissioning_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::NetworkCommissioningCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -// End of Cluster NetworkCommissioning -// Cluster OtaSoftwareUpdateProvider - -chip::ChipError::StorageType chip_ime_ReadAttribute_OtaSoftwareUpdateProvider_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::OtaSoftwareUpdateProviderCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_OtaSoftwareUpdateProvider_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::OtaSoftwareUpdateProviderCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -// End of Cluster OtaSoftwareUpdateProvider -// Cluster OtaSoftwareUpdateRequestor - -chip::ChipError::StorageType chip_ime_ReadAttribute_OtaSoftwareUpdateRequestor_DefaultOtaProvider(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::OtaSoftwareUpdateRequestorCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeDefaultOtaProvider(gOctetStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_OtaSoftwareUpdateRequestor_DefaultOtaProvider( - chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::OtaSoftwareUpdateRequestorCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeDefaultOtaProvider(gOctetStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_OtaSoftwareUpdateRequestor_UpdatePossible(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::OtaSoftwareUpdateRequestorCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeUpdatePossible(gBooleanAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_OtaSoftwareUpdateRequestor_UpdatePossible(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::OtaSoftwareUpdateRequestorCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeUpdatePossible(gBooleanAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_OtaSoftwareUpdateRequestor_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::OtaSoftwareUpdateRequestorCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_OtaSoftwareUpdateRequestor_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::OtaSoftwareUpdateRequestorCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -// End of Cluster OtaSoftwareUpdateRequestor -// Cluster OccupancySensing - -chip::ChipError::StorageType chip_ime_ReadAttribute_OccupancySensing_Occupancy(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::OccupancySensingCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeOccupancy(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_OccupancySensing_Occupancy(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::OccupancySensingCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeOccupancy(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_OccupancySensing_OccupancySensorType(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::OccupancySensingCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeOccupancySensorType(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_OccupancySensing_OccupancySensorType(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::OccupancySensingCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeOccupancySensorType(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_OccupancySensing_OccupancySensorTypeBitmap(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::OccupancySensingCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeOccupancySensorTypeBitmap(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_OccupancySensing_OccupancySensorTypeBitmap(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::OccupancySensingCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeOccupancySensorTypeBitmap(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), - minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_OccupancySensing_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::OccupancySensingCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_OccupancySensing_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::OccupancySensingCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -// End of Cluster OccupancySensing -// Cluster OnOff - -chip::ChipError::StorageType chip_ime_ReadAttribute_OnOff_OnOff(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::OnOffCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeOnOff(gBooleanAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_OnOff_OnOff(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::OnOffCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeOnOff(gBooleanAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_OnOff_GlobalSceneControl(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::OnOffCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeGlobalSceneControl(gBooleanAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_OnOff_GlobalSceneControl(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::OnOffCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeGlobalSceneControl(gBooleanAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_OnOff_OnTime(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::OnOffCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeOnTime(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_OnOff_OnTime(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::OnOffCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeOnTime(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_OnOff_OffWaitTime(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::OnOffCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeOffWaitTime(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_OnOff_OffWaitTime(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::OnOffCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeOffWaitTime(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_OnOff_StartUpOnOff(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::OnOffCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeStartUpOnOff(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_OnOff_StartUpOnOff(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::OnOffCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeStartUpOnOff(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_OnOff_FeatureMap(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::OnOffCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeFeatureMap(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_OnOff_FeatureMap(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::OnOffCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeFeatureMap(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_OnOff_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::OnOffCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_OnOff_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::OnOffCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -// End of Cluster OnOff -// Cluster OnOffSwitchConfiguration - -chip::ChipError::StorageType chip_ime_ReadAttribute_OnOffSwitchConfiguration_SwitchType(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::OnOffSwitchConfigurationCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeSwitchType(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_OnOffSwitchConfiguration_SwitchType(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::OnOffSwitchConfigurationCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeSwitchType(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_OnOffSwitchConfiguration_SwitchActions(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::OnOffSwitchConfigurationCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeSwitchActions(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_OnOffSwitchConfiguration_SwitchActions(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::OnOffSwitchConfigurationCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeSwitchActions(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_OnOffSwitchConfiguration_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::OnOffSwitchConfigurationCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_OnOffSwitchConfiguration_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::OnOffSwitchConfigurationCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -// End of Cluster OnOffSwitchConfiguration -// Cluster OperationalCredentials - -chip::ChipError::StorageType chip_ime_ReadAttribute_OperationalCredentials_FabricsList(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::OperationalCredentialsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .ReadAttributeFabricsList(gOperationalCredentialsFabricsListListAttributeCallback.Cancel(), - gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_OperationalCredentials_SupportedFabrics(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::OperationalCredentialsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeSupportedFabrics(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_OperationalCredentials_SupportedFabrics(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::OperationalCredentialsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeSupportedFabrics(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_OperationalCredentials_CommissionedFabrics(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::OperationalCredentialsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeCommissionedFabrics(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_OperationalCredentials_CommissionedFabrics(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::OperationalCredentialsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeCommissionedFabrics(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_OperationalCredentials_TrustedRootCertificates(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::OperationalCredentialsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .ReadAttributeTrustedRootCertificates(gOperationalCredentialsTrustedRootCertificatesListAttributeCallback.Cancel(), - gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_OperationalCredentials_CurrentFabricIndex(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::OperationalCredentialsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeCurrentFabricIndex(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_OperationalCredentials_CurrentFabricIndex(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::OperationalCredentialsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeCurrentFabricIndex(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_OperationalCredentials_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::OperationalCredentialsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_OperationalCredentials_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::OperationalCredentialsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -// End of Cluster OperationalCredentials -// Cluster PowerSource - -chip::ChipError::StorageType chip_ime_ReadAttribute_PowerSource_Status(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PowerSourceCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeStatus(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_PowerSource_Status(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PowerSourceCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeStatus(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_PowerSource_Order(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PowerSourceCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeOrder(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_PowerSource_Order(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PowerSourceCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeOrder(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_PowerSource_Description(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PowerSourceCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeDescription(gCharStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_PowerSource_Description(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PowerSourceCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeDescription(gCharStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_PowerSource_BatteryVoltage(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PowerSourceCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeBatteryVoltage(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_PowerSource_BatteryVoltage(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PowerSourceCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeBatteryVoltage(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_PowerSource_BatteryPercentRemaining(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PowerSourceCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeBatteryPercentRemaining(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_PowerSource_BatteryPercentRemaining(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PowerSourceCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeBatteryPercentRemaining(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_PowerSource_BatteryTimeRemaining(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PowerSourceCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeBatteryTimeRemaining(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_PowerSource_BatteryTimeRemaining(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PowerSourceCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeBatteryTimeRemaining(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_PowerSource_BatteryChargeLevel(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PowerSourceCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeBatteryChargeLevel(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_PowerSource_BatteryChargeLevel(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PowerSourceCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeBatteryChargeLevel(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_PowerSource_ActiveBatteryFaults(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PowerSourceCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .ReadAttributeActiveBatteryFaults(gPowerSourceActiveBatteryFaultsListAttributeCallback.Cancel(), - gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_PowerSource_BatteryChargeState(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PowerSourceCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeBatteryChargeState(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_PowerSource_BatteryChargeState(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PowerSourceCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeBatteryChargeState(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_PowerSource_FeatureMap(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PowerSourceCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeFeatureMap(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_PowerSource_FeatureMap(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PowerSourceCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeFeatureMap(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_PowerSource_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PowerSourceCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_PowerSource_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PowerSourceCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -// End of Cluster PowerSource -// Cluster PressureMeasurement - -chip::ChipError::StorageType chip_ime_ReadAttribute_PressureMeasurement_MeasuredValue(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PressureMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeMeasuredValue(gInt16sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_PressureMeasurement_MeasuredValue(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PressureMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeMeasuredValue(gInt16sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_PressureMeasurement_MinMeasuredValue(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PressureMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeMinMeasuredValue(gInt16sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_PressureMeasurement_MinMeasuredValue(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PressureMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeMinMeasuredValue(gInt16sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_PressureMeasurement_MaxMeasuredValue(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PressureMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeMaxMeasuredValue(gInt16sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_PressureMeasurement_MaxMeasuredValue(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PressureMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeMaxMeasuredValue(gInt16sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_PressureMeasurement_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PressureMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_PressureMeasurement_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PressureMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -// End of Cluster PressureMeasurement -// Cluster PumpConfigurationAndControl - -chip::ChipError::StorageType chip_ime_ReadAttribute_PumpConfigurationAndControl_MaxPressure(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PumpConfigurationAndControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeMaxPressure(gInt16sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_PumpConfigurationAndControl_MaxPressure(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PumpConfigurationAndControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeMaxPressure(gInt16sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_PumpConfigurationAndControl_MaxSpeed(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PumpConfigurationAndControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeMaxSpeed(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_PumpConfigurationAndControl_MaxSpeed(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PumpConfigurationAndControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeMaxSpeed(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_PumpConfigurationAndControl_MaxFlow(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PumpConfigurationAndControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeMaxFlow(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_PumpConfigurationAndControl_MaxFlow(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PumpConfigurationAndControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeMaxFlow(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_PumpConfigurationAndControl_MinConstPressure(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PumpConfigurationAndControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeMinConstPressure(gInt16sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType -chip_ime_SubscribeAttribute_PumpConfigurationAndControl_MinConstPressure(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PumpConfigurationAndControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeMinConstPressure(gInt16sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_PumpConfigurationAndControl_MaxConstPressure(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PumpConfigurationAndControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeMaxConstPressure(gInt16sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType -chip_ime_SubscribeAttribute_PumpConfigurationAndControl_MaxConstPressure(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PumpConfigurationAndControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeMaxConstPressure(gInt16sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_PumpConfigurationAndControl_MinCompPressure(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PumpConfigurationAndControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeMinCompPressure(gInt16sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_PumpConfigurationAndControl_MinCompPressure(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PumpConfigurationAndControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeMinCompPressure(gInt16sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_PumpConfigurationAndControl_MaxCompPressure(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PumpConfigurationAndControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeMaxCompPressure(gInt16sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_PumpConfigurationAndControl_MaxCompPressure(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PumpConfigurationAndControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeMaxCompPressure(gInt16sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_PumpConfigurationAndControl_MinConstSpeed(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PumpConfigurationAndControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeMinConstSpeed(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_PumpConfigurationAndControl_MinConstSpeed(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PumpConfigurationAndControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeMinConstSpeed(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_PumpConfigurationAndControl_MaxConstSpeed(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PumpConfigurationAndControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeMaxConstSpeed(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_PumpConfigurationAndControl_MaxConstSpeed(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PumpConfigurationAndControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeMaxConstSpeed(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_PumpConfigurationAndControl_MinConstFlow(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PumpConfigurationAndControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeMinConstFlow(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_PumpConfigurationAndControl_MinConstFlow(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PumpConfigurationAndControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeMinConstFlow(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_PumpConfigurationAndControl_MaxConstFlow(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PumpConfigurationAndControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeMaxConstFlow(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_PumpConfigurationAndControl_MaxConstFlow(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PumpConfigurationAndControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeMaxConstFlow(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_PumpConfigurationAndControl_MinConstTemp(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PumpConfigurationAndControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeMinConstTemp(gInt16sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_PumpConfigurationAndControl_MinConstTemp(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PumpConfigurationAndControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeMinConstTemp(gInt16sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_PumpConfigurationAndControl_MaxConstTemp(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PumpConfigurationAndControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeMaxConstTemp(gInt16sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_PumpConfigurationAndControl_MaxConstTemp(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PumpConfigurationAndControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeMaxConstTemp(gInt16sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_PumpConfigurationAndControl_PumpStatus(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PumpConfigurationAndControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributePumpStatus(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_PumpConfigurationAndControl_PumpStatus(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PumpConfigurationAndControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributePumpStatus(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_PumpConfigurationAndControl_EffectiveOperationMode( - chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PumpConfigurationAndControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeEffectiveOperationMode(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_PumpConfigurationAndControl_EffectiveOperationMode( - chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PumpConfigurationAndControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeEffectiveOperationMode(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_PumpConfigurationAndControl_EffectiveControlMode(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PumpConfigurationAndControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeEffectiveControlMode(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_PumpConfigurationAndControl_EffectiveControlMode( - chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PumpConfigurationAndControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeEffectiveControlMode(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_PumpConfigurationAndControl_Capacity(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PumpConfigurationAndControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeCapacity(gInt16sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_PumpConfigurationAndControl_Capacity(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PumpConfigurationAndControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeCapacity(gInt16sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_PumpConfigurationAndControl_Speed(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PumpConfigurationAndControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeSpeed(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_PumpConfigurationAndControl_Speed(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PumpConfigurationAndControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeSpeed(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_PumpConfigurationAndControl_LifetimeRunningHours(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PumpConfigurationAndControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeLifetimeRunningHours(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_PumpConfigurationAndControl_LifetimeRunningHours( - chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PumpConfigurationAndControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeLifetimeRunningHours(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_PumpConfigurationAndControl_Power(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PumpConfigurationAndControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributePower(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_PumpConfigurationAndControl_Power(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PumpConfigurationAndControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributePower(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_PumpConfigurationAndControl_LifetimeEnergyConsumed( - chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PumpConfigurationAndControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeLifetimeEnergyConsumed(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_PumpConfigurationAndControl_LifetimeEnergyConsumed( - chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PumpConfigurationAndControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeLifetimeEnergyConsumed(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_PumpConfigurationAndControl_OperationMode(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PumpConfigurationAndControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeOperationMode(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_PumpConfigurationAndControl_OperationMode(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PumpConfigurationAndControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeOperationMode(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_PumpConfigurationAndControl_ControlMode(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PumpConfigurationAndControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeControlMode(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_PumpConfigurationAndControl_ControlMode(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PumpConfigurationAndControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeControlMode(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_PumpConfigurationAndControl_AlarmMask(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PumpConfigurationAndControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeAlarmMask(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_PumpConfigurationAndControl_AlarmMask(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PumpConfigurationAndControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeAlarmMask(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_PumpConfigurationAndControl_FeatureMap(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PumpConfigurationAndControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeFeatureMap(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_PumpConfigurationAndControl_FeatureMap(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PumpConfigurationAndControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeFeatureMap(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_PumpConfigurationAndControl_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PumpConfigurationAndControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_PumpConfigurationAndControl_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::PumpConfigurationAndControlCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -// End of Cluster PumpConfigurationAndControl -// Cluster RelativeHumidityMeasurement - -chip::ChipError::StorageType chip_ime_ReadAttribute_RelativeHumidityMeasurement_MeasuredValue(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::RelativeHumidityMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeMeasuredValue(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_RelativeHumidityMeasurement_MeasuredValue(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::RelativeHumidityMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeMeasuredValue(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_RelativeHumidityMeasurement_MinMeasuredValue(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::RelativeHumidityMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeMinMeasuredValue(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType -chip_ime_SubscribeAttribute_RelativeHumidityMeasurement_MinMeasuredValue(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::RelativeHumidityMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeMinMeasuredValue(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_RelativeHumidityMeasurement_MaxMeasuredValue(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::RelativeHumidityMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeMaxMeasuredValue(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType -chip_ime_SubscribeAttribute_RelativeHumidityMeasurement_MaxMeasuredValue(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::RelativeHumidityMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeMaxMeasuredValue(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_RelativeHumidityMeasurement_Tolerance(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::RelativeHumidityMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeTolerance(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_RelativeHumidityMeasurement_Tolerance(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::RelativeHumidityMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeTolerance(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_RelativeHumidityMeasurement_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::RelativeHumidityMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_RelativeHumidityMeasurement_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::RelativeHumidityMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -// End of Cluster RelativeHumidityMeasurement -// Cluster Scenes - -chip::ChipError::StorageType chip_ime_ReadAttribute_Scenes_SceneCount(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ScenesCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeSceneCount(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_Scenes_SceneCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ScenesCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeSceneCount(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_Scenes_CurrentScene(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ScenesCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeCurrentScene(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_Scenes_CurrentScene(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ScenesCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeCurrentScene(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_Scenes_CurrentGroup(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ScenesCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeCurrentGroup(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_Scenes_CurrentGroup(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ScenesCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeCurrentGroup(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_Scenes_SceneValid(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ScenesCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeSceneValid(gBooleanAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_Scenes_SceneValid(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ScenesCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeSceneValid(gBooleanAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_Scenes_NameSupport(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ScenesCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeNameSupport(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_Scenes_NameSupport(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ScenesCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeNameSupport(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_Scenes_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ScenesCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_Scenes_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ScenesCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -// End of Cluster Scenes -// Cluster SoftwareDiagnostics - -chip::ChipError::StorageType chip_ime_ReadAttribute_SoftwareDiagnostics_ThreadMetrics(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::SoftwareDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .ReadAttributeThreadMetrics(gSoftwareDiagnosticsThreadMetricsListAttributeCallback.Cancel(), - gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_SoftwareDiagnostics_CurrentHeapFree(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::SoftwareDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeCurrentHeapFree(gInt64uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_SoftwareDiagnostics_CurrentHeapFree(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::SoftwareDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeCurrentHeapFree(gInt64uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_SoftwareDiagnostics_CurrentHeapUsed(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::SoftwareDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeCurrentHeapUsed(gInt64uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_SoftwareDiagnostics_CurrentHeapUsed(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::SoftwareDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeCurrentHeapUsed(gInt64uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_SoftwareDiagnostics_CurrentHeapHighWatermark(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::SoftwareDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeCurrentHeapHighWatermark(gInt64uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType -chip_ime_SubscribeAttribute_SoftwareDiagnostics_CurrentHeapHighWatermark(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::SoftwareDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeCurrentHeapHighWatermark(gInt64uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), - minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_SoftwareDiagnostics_FeatureMap(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::SoftwareDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeFeatureMap(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_SoftwareDiagnostics_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::SoftwareDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_SoftwareDiagnostics_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::SoftwareDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -// End of Cluster SoftwareDiagnostics -// Cluster Switch - -chip::ChipError::StorageType chip_ime_ReadAttribute_Switch_NumberOfPositions(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::SwitchCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeNumberOfPositions(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_Switch_NumberOfPositions(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::SwitchCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeNumberOfPositions(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_Switch_CurrentPosition(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::SwitchCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeCurrentPosition(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_Switch_CurrentPosition(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::SwitchCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeCurrentPosition(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_Switch_MultiPressMax(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::SwitchCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeMultiPressMax(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_Switch_MultiPressMax(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::SwitchCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeMultiPressMax(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_Switch_FeatureMap(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::SwitchCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeFeatureMap(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_Switch_FeatureMap(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::SwitchCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeFeatureMap(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_Switch_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::SwitchCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_Switch_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::SwitchCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -// End of Cluster Switch -// Cluster TvChannel - -chip::ChipError::StorageType chip_ime_ReadAttribute_TvChannel_TvChannelList(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TvChannelCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .ReadAttributeTvChannelList(gTvChannelTvChannelListListAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_TvChannel_TvChannelLineup(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TvChannelCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeTvChannelLineup(gOctetStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_TvChannel_TvChannelLineup(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TvChannelCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeTvChannelLineup(gOctetStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_TvChannel_CurrentTvChannel(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TvChannelCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeCurrentTvChannel(gOctetStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_TvChannel_CurrentTvChannel(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TvChannelCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeCurrentTvChannel(gOctetStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_TvChannel_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TvChannelCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_TvChannel_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TvChannelCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -// End of Cluster TvChannel -// Cluster TargetNavigator - -chip::ChipError::StorageType chip_ime_ReadAttribute_TargetNavigator_TargetNavigatorList(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TargetNavigatorCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .ReadAttributeTargetNavigatorList(gTargetNavigatorTargetNavigatorListListAttributeCallback.Cancel(), - gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_TargetNavigator_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TargetNavigatorCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_TargetNavigator_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TargetNavigatorCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -// End of Cluster TargetNavigator -// Cluster TemperatureMeasurement - -chip::ChipError::StorageType chip_ime_ReadAttribute_TemperatureMeasurement_MeasuredValue(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TemperatureMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeMeasuredValue(gInt16sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_TemperatureMeasurement_MeasuredValue(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TemperatureMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeMeasuredValue(gInt16sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_TemperatureMeasurement_MinMeasuredValue(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TemperatureMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeMinMeasuredValue(gInt16sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_TemperatureMeasurement_MinMeasuredValue(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TemperatureMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeMinMeasuredValue(gInt16sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_TemperatureMeasurement_MaxMeasuredValue(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TemperatureMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeMaxMeasuredValue(gInt16sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_TemperatureMeasurement_MaxMeasuredValue(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TemperatureMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeMaxMeasuredValue(gInt16sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_TemperatureMeasurement_Tolerance(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TemperatureMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeTolerance(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_TemperatureMeasurement_Tolerance(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TemperatureMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeTolerance(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_TemperatureMeasurement_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TemperatureMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_TemperatureMeasurement_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TemperatureMeasurementCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -// End of Cluster TemperatureMeasurement -// Cluster TestCluster - -chip::ChipError::StorageType chip_ime_ReadAttribute_TestCluster_Boolean(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeBoolean(gBooleanAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_TestCluster_Boolean(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeBoolean(gBooleanAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_TestCluster_Bitmap8(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeBitmap8(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_TestCluster_Bitmap8(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeBitmap8(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_TestCluster_Bitmap16(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeBitmap16(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_TestCluster_Bitmap16(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeBitmap16(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_TestCluster_Bitmap32(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeBitmap32(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_TestCluster_Bitmap32(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeBitmap32(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_TestCluster_Bitmap64(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeBitmap64(gInt64uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_TestCluster_Bitmap64(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeBitmap64(gInt64uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_TestCluster_Int8u(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeInt8u(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_TestCluster_Int8u(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeInt8u(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_TestCluster_Int16u(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeInt16u(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_TestCluster_Int16u(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeInt16u(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_TestCluster_Int32u(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeInt32u(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_TestCluster_Int32u(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeInt32u(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_TestCluster_Int64u(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeInt64u(gInt64uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_TestCluster_Int64u(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeInt64u(gInt64uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_TestCluster_Int8s(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeInt8s(gInt8sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_TestCluster_Int8s(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeInt8s(gInt8sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_TestCluster_Int16s(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeInt16s(gInt16sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_TestCluster_Int16s(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeInt16s(gInt16sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_TestCluster_Int32s(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeInt32s(gInt32sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_TestCluster_Int32s(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeInt32s(gInt32sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_TestCluster_Int64s(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeInt64s(gInt64sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_TestCluster_Int64s(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeInt64s(gInt64sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_TestCluster_Enum8(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeEnum8(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_TestCluster_Enum8(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeEnum8(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_TestCluster_Enum16(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeEnum16(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_TestCluster_Enum16(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeEnum16(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_TestCluster_OctetString(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeOctetString(gOctetStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_TestCluster_OctetString(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeOctetString(gOctetStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_TestCluster_ListInt8u(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeListInt8u(gTestClusterListInt8uListAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_TestCluster_ListOctetString(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .ReadAttributeListOctetString(gTestClusterListOctetStringListAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_TestCluster_ListStructOctetString(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .ReadAttributeListStructOctetString(gTestClusterListStructOctetStringListAttributeCallback.Cancel(), - gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_TestCluster_LongOctetString(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeLongOctetString(gOctetStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_TestCluster_LongOctetString(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeLongOctetString(gOctetStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_TestCluster_CharString(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeCharString(gCharStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_TestCluster_CharString(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeCharString(gCharStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_TestCluster_LongCharString(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeLongCharString(gCharStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_TestCluster_LongCharString(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeLongCharString(gCharStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_TestCluster_EpochUs(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeEpochUs(gInt64uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_TestCluster_EpochUs(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeEpochUs(gInt64uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_TestCluster_EpochS(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeEpochS(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_TestCluster_EpochS(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeEpochS(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_TestCluster_VendorId(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeVendorId(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_TestCluster_VendorId(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeVendorId(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_TestCluster_ListNullablesAndOptionalsStruct(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .ReadAttributeListNullablesAndOptionalsStruct(gTestClusterListNullablesAndOptionalsStructListAttributeCallback.Cancel(), - gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_TestCluster_Unsupported(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeUnsupported(gBooleanAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_TestCluster_Unsupported(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeUnsupported(gBooleanAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_TestCluster_NullableBoolean(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeNullableBoolean(gBooleanAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_TestCluster_NullableBoolean(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeNullableBoolean(gBooleanAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_TestCluster_NullableBitmap8(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeNullableBitmap8(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_TestCluster_NullableBitmap8(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeNullableBitmap8(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_TestCluster_NullableBitmap16(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeNullableBitmap16(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_TestCluster_NullableBitmap16(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeNullableBitmap16(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_TestCluster_NullableBitmap32(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeNullableBitmap32(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_TestCluster_NullableBitmap32(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeNullableBitmap32(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_TestCluster_NullableBitmap64(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeNullableBitmap64(gInt64uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_TestCluster_NullableBitmap64(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeNullableBitmap64(gInt64uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_TestCluster_NullableInt8u(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeNullableInt8u(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_TestCluster_NullableInt8u(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeNullableInt8u(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_TestCluster_NullableInt16u(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeNullableInt16u(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_TestCluster_NullableInt16u(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeNullableInt16u(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_TestCluster_NullableInt32u(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeNullableInt32u(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_TestCluster_NullableInt32u(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeNullableInt32u(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_TestCluster_NullableInt64u(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeNullableInt64u(gInt64uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_TestCluster_NullableInt64u(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeNullableInt64u(gInt64uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_TestCluster_NullableInt8s(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeNullableInt8s(gInt8sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_TestCluster_NullableInt8s(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeNullableInt8s(gInt8sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_TestCluster_NullableInt16s(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeNullableInt16s(gInt16sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_TestCluster_NullableInt16s(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeNullableInt16s(gInt16sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_TestCluster_NullableInt32s(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeNullableInt32s(gInt32sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_TestCluster_NullableInt32s(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeNullableInt32s(gInt32sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_TestCluster_NullableInt64s(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeNullableInt64s(gInt64sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_TestCluster_NullableInt64s(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeNullableInt64s(gInt64sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_TestCluster_NullableEnum8(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeNullableEnum8(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_TestCluster_NullableEnum8(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeNullableEnum8(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_TestCluster_NullableEnum16(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeNullableEnum16(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_TestCluster_NullableEnum16(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeNullableEnum16(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_TestCluster_NullableOctetString(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeNullableOctetString(gOctetStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_TestCluster_NullableOctetString(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeNullableOctetString(gOctetStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), - minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_TestCluster_NullableCharString(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeNullableCharString(gCharStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_TestCluster_NullableCharString(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeNullableCharString(gCharStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_TestCluster_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_TestCluster_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::TestClusterCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -// End of Cluster TestCluster -// Cluster Thermostat - -chip::ChipError::StorageType chip_ime_ReadAttribute_Thermostat_LocalTemperature(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThermostatCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeLocalTemperature(gInt16sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_Thermostat_LocalTemperature(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThermostatCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeLocalTemperature(gInt16sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_Thermostat_AbsMinHeatSetpointLimit(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThermostatCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeAbsMinHeatSetpointLimit(gInt16sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_Thermostat_AbsMinHeatSetpointLimit(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThermostatCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeAbsMinHeatSetpointLimit(gInt16sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_Thermostat_AbsMaxHeatSetpointLimit(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThermostatCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeAbsMaxHeatSetpointLimit(gInt16sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_Thermostat_AbsMaxHeatSetpointLimit(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThermostatCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeAbsMaxHeatSetpointLimit(gInt16sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_Thermostat_AbsMinCoolSetpointLimit(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThermostatCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeAbsMinCoolSetpointLimit(gInt16sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_Thermostat_AbsMinCoolSetpointLimit(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThermostatCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeAbsMinCoolSetpointLimit(gInt16sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_Thermostat_AbsMaxCoolSetpointLimit(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThermostatCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeAbsMaxCoolSetpointLimit(gInt16sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_Thermostat_AbsMaxCoolSetpointLimit(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThermostatCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeAbsMaxCoolSetpointLimit(gInt16sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_Thermostat_OccupiedCoolingSetpoint(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThermostatCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeOccupiedCoolingSetpoint(gInt16sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_Thermostat_OccupiedCoolingSetpoint(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThermostatCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeOccupiedCoolingSetpoint(gInt16sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_Thermostat_OccupiedHeatingSetpoint(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThermostatCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeOccupiedHeatingSetpoint(gInt16sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_Thermostat_OccupiedHeatingSetpoint(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThermostatCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeOccupiedHeatingSetpoint(gInt16sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_Thermostat_MinHeatSetpointLimit(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThermostatCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeMinHeatSetpointLimit(gInt16sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_Thermostat_MinHeatSetpointLimit(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThermostatCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeMinHeatSetpointLimit(gInt16sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_Thermostat_MaxHeatSetpointLimit(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThermostatCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeMaxHeatSetpointLimit(gInt16sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_Thermostat_MaxHeatSetpointLimit(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThermostatCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeMaxHeatSetpointLimit(gInt16sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_Thermostat_MinCoolSetpointLimit(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThermostatCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeMinCoolSetpointLimit(gInt16sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_Thermostat_MinCoolSetpointLimit(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThermostatCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeMinCoolSetpointLimit(gInt16sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_Thermostat_MaxCoolSetpointLimit(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThermostatCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeMaxCoolSetpointLimit(gInt16sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_Thermostat_MaxCoolSetpointLimit(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThermostatCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeMaxCoolSetpointLimit(gInt16sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_Thermostat_MinSetpointDeadBand(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThermostatCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeMinSetpointDeadBand(gInt8sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_Thermostat_MinSetpointDeadBand(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThermostatCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeMinSetpointDeadBand(gInt8sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_Thermostat_ControlSequenceOfOperation(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThermostatCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeControlSequenceOfOperation(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_Thermostat_ControlSequenceOfOperation(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThermostatCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeControlSequenceOfOperation(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), - minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_Thermostat_SystemMode(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThermostatCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeSystemMode(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_Thermostat_SystemMode(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThermostatCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeSystemMode(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_Thermostat_StartOfWeek(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThermostatCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeStartOfWeek(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_Thermostat_StartOfWeek(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThermostatCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeStartOfWeek(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_Thermostat_NumberOfWeeklyTransitions(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThermostatCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeNumberOfWeeklyTransitions(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_Thermostat_NumberOfWeeklyTransitions(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThermostatCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeNumberOfWeeklyTransitions(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), - minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_Thermostat_NumberOfDailyTransitions(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThermostatCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeNumberOfDailyTransitions(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_Thermostat_NumberOfDailyTransitions(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThermostatCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeNumberOfDailyTransitions(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_Thermostat_FeatureMap(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThermostatCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeFeatureMap(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_Thermostat_FeatureMap(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThermostatCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeFeatureMap(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_Thermostat_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThermostatCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_Thermostat_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThermostatCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -// End of Cluster Thermostat -// Cluster ThermostatUserInterfaceConfiguration - -chip::ChipError::StorageType chip_ime_ReadAttribute_ThermostatUserInterfaceConfiguration_TemperatureDisplayMode( - chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThermostatUserInterfaceConfigurationCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeTemperatureDisplayMode(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ThermostatUserInterfaceConfiguration_TemperatureDisplayMode( - chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThermostatUserInterfaceConfigurationCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeTemperatureDisplayMode(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ThermostatUserInterfaceConfiguration_KeypadLockout( - chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThermostatUserInterfaceConfigurationCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeKeypadLockout(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ThermostatUserInterfaceConfiguration_KeypadLockout( - chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThermostatUserInterfaceConfigurationCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeKeypadLockout(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ThermostatUserInterfaceConfiguration_ScheduleProgrammingVisibility( - chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThermostatUserInterfaceConfigurationCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeScheduleProgrammingVisibility(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ThermostatUserInterfaceConfiguration_ScheduleProgrammingVisibility( - chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThermostatUserInterfaceConfigurationCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeScheduleProgrammingVisibility(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), - minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ThermostatUserInterfaceConfiguration_ClusterRevision( - chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThermostatUserInterfaceConfigurationCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ThermostatUserInterfaceConfiguration_ClusterRevision( - chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThermostatUserInterfaceConfigurationCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -// End of Cluster ThermostatUserInterfaceConfiguration -// Cluster ThreadNetworkDiagnostics - -chip::ChipError::StorageType chip_ime_ReadAttribute_ThreadNetworkDiagnostics_Channel(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeChannel(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_Channel(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeChannel(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RoutingRole(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeRoutingRole(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RoutingRole(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeRoutingRole(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ThreadNetworkDiagnostics_NetworkName(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeNetworkName(gOctetStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_NetworkName(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeNetworkName(gOctetStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ThreadNetworkDiagnostics_PanId(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributePanId(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_PanId(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributePanId(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ThreadNetworkDiagnostics_ExtendedPanId(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeExtendedPanId(gInt64uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_ExtendedPanId(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeExtendedPanId(gInt64uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ThreadNetworkDiagnostics_MeshLocalPrefix(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeMeshLocalPrefix(gOctetStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_MeshLocalPrefix(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeMeshLocalPrefix(gOctetStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ThreadNetworkDiagnostics_OverrunCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeOverrunCount(gInt64uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_OverrunCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeOverrunCount(gInt64uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ThreadNetworkDiagnostics_NeighborTableList(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .ReadAttributeNeighborTableList(gThreadNetworkDiagnosticsNeighborTableListListAttributeCallback.Cancel(), - gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RouteTableList(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .ReadAttributeRouteTableList(gThreadNetworkDiagnosticsRouteTableListListAttributeCallback.Cancel(), - gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ThreadNetworkDiagnostics_PartitionId(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributePartitionId(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_PartitionId(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributePartitionId(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ThreadNetworkDiagnostics_Weighting(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeWeighting(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_Weighting(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeWeighting(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ThreadNetworkDiagnostics_DataVersion(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeDataVersion(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_DataVersion(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeDataVersion(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ThreadNetworkDiagnostics_StableDataVersion(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeStableDataVersion(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_StableDataVersion(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeStableDataVersion(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ThreadNetworkDiagnostics_LeaderRouterId(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeLeaderRouterId(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_LeaderRouterId(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeLeaderRouterId(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ThreadNetworkDiagnostics_DetachedRoleCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeDetachedRoleCount(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_DetachedRoleCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeDetachedRoleCount(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ThreadNetworkDiagnostics_ChildRoleCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeChildRoleCount(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_ChildRoleCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeChildRoleCount(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RouterRoleCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeRouterRoleCount(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RouterRoleCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeRouterRoleCount(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ThreadNetworkDiagnostics_LeaderRoleCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeLeaderRoleCount(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_LeaderRoleCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeLeaderRoleCount(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ThreadNetworkDiagnostics_AttachAttemptCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeAttachAttemptCount(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_AttachAttemptCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeAttachAttemptCount(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ThreadNetworkDiagnostics_PartitionIdChangeCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributePartitionIdChangeCount(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_PartitionIdChangeCount( - chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributePartitionIdChangeCount(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ThreadNetworkDiagnostics_BetterPartitionAttachAttemptCount( - chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .ReadAttributeBetterPartitionAttachAttemptCount(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_BetterPartitionAttachAttemptCount( - chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeBetterPartitionAttachAttemptCount(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), - minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ThreadNetworkDiagnostics_ParentChangeCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeParentChangeCount(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_ParentChangeCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeParentChangeCount(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ThreadNetworkDiagnostics_TxTotalCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeTxTotalCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_TxTotalCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeTxTotalCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ThreadNetworkDiagnostics_TxUnicastCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeTxUnicastCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_TxUnicastCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeTxUnicastCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ThreadNetworkDiagnostics_TxBroadcastCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeTxBroadcastCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_TxBroadcastCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeTxBroadcastCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ThreadNetworkDiagnostics_TxAckRequestedCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeTxAckRequestedCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType -chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_TxAckRequestedCount(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeTxAckRequestedCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ThreadNetworkDiagnostics_TxAckedCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeTxAckedCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_TxAckedCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeTxAckedCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ThreadNetworkDiagnostics_TxNoAckRequestedCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeTxNoAckRequestedCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_TxNoAckRequestedCount( - chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeTxNoAckRequestedCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ThreadNetworkDiagnostics_TxDataCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeTxDataCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_TxDataCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeTxDataCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ThreadNetworkDiagnostics_TxDataPollCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeTxDataPollCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_TxDataPollCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeTxDataPollCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ThreadNetworkDiagnostics_TxBeaconCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeTxBeaconCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_TxBeaconCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeTxBeaconCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ThreadNetworkDiagnostics_TxBeaconRequestCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeTxBeaconRequestCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_TxBeaconRequestCount( - chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeTxBeaconRequestCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ThreadNetworkDiagnostics_TxOtherCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeTxOtherCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_TxOtherCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeTxOtherCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ThreadNetworkDiagnostics_TxRetryCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeTxRetryCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_TxRetryCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeTxRetryCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ThreadNetworkDiagnostics_TxDirectMaxRetryExpiryCount( - chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeTxDirectMaxRetryExpiryCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_TxDirectMaxRetryExpiryCount( - chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeTxDirectMaxRetryExpiryCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), - minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ThreadNetworkDiagnostics_TxIndirectMaxRetryExpiryCount( - chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeTxIndirectMaxRetryExpiryCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_TxIndirectMaxRetryExpiryCount( - chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeTxIndirectMaxRetryExpiryCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), - minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ThreadNetworkDiagnostics_TxErrCcaCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeTxErrCcaCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_TxErrCcaCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeTxErrCcaCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ThreadNetworkDiagnostics_TxErrAbortCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeTxErrAbortCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_TxErrAbortCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeTxErrAbortCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ThreadNetworkDiagnostics_TxErrBusyChannelCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeTxErrBusyChannelCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_TxErrBusyChannelCount( - chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeTxErrBusyChannelCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RxTotalCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeRxTotalCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RxTotalCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeRxTotalCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RxUnicastCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeRxUnicastCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RxUnicastCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeRxUnicastCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RxBroadcastCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeRxBroadcastCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RxBroadcastCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeRxBroadcastCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RxDataCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeRxDataCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RxDataCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeRxDataCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RxDataPollCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeRxDataPollCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RxDataPollCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeRxDataPollCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RxBeaconCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeRxBeaconCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RxBeaconCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeRxBeaconCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RxBeaconRequestCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeRxBeaconRequestCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RxBeaconRequestCount( - chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeRxBeaconRequestCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RxOtherCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeRxOtherCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RxOtherCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeRxOtherCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RxAddressFilteredCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeRxAddressFilteredCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RxAddressFilteredCount( - chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeRxAddressFilteredCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RxDestAddrFilteredCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeRxDestAddrFilteredCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RxDestAddrFilteredCount( - chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeRxDestAddrFilteredCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RxDuplicatedCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeRxDuplicatedCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RxDuplicatedCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeRxDuplicatedCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RxErrNoFrameCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeRxErrNoFrameCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RxErrNoFrameCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeRxErrNoFrameCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RxErrUnknownNeighborCount( - chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeRxErrUnknownNeighborCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RxErrUnknownNeighborCount( - chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeRxErrUnknownNeighborCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), - minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType -chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RxErrInvalidSrcAddrCount(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeRxErrInvalidSrcAddrCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RxErrInvalidSrcAddrCount( - chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeRxErrInvalidSrcAddrCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), - minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RxErrSecCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeRxErrSecCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RxErrSecCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeRxErrSecCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RxErrFcsCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeRxErrFcsCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RxErrFcsCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeRxErrFcsCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RxErrOtherCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeRxErrOtherCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RxErrOtherCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeRxErrOtherCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ThreadNetworkDiagnostics_ActiveTimestamp(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeActiveTimestamp(gInt64uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_ActiveTimestamp(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeActiveTimestamp(gInt64uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ThreadNetworkDiagnostics_PendingTimestamp(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributePendingTimestamp(gInt64uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_PendingTimestamp(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributePendingTimestamp(gInt64uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ThreadNetworkDiagnostics_Delay(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeDelay(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_Delay(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeDelay(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ThreadNetworkDiagnostics_SecurityPolicy(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .ReadAttributeSecurityPolicy(gThreadNetworkDiagnosticsSecurityPolicyListAttributeCallback.Cancel(), - gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ThreadNetworkDiagnostics_ChannelMask(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeChannelMask(gOctetStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_ChannelMask(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeChannelMask(gOctetStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ThreadNetworkDiagnostics_OperationalDatasetComponents( - chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .ReadAttributeOperationalDatasetComponents( - gThreadNetworkDiagnosticsOperationalDatasetComponentsListAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ThreadNetworkDiagnostics_ActiveNetworkFaultsList(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .ReadAttributeActiveNetworkFaultsList(gThreadNetworkDiagnosticsActiveNetworkFaultsListListAttributeCallback.Cancel(), - gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_ThreadNetworkDiagnostics_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::ThreadNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -// End of Cluster ThreadNetworkDiagnostics -// Cluster WakeOnLan - -chip::ChipError::StorageType chip_ime_ReadAttribute_WakeOnLan_WakeOnLanMacAddress(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WakeOnLanCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeWakeOnLanMacAddress(gCharStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_WakeOnLan_WakeOnLanMacAddress(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WakeOnLanCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeWakeOnLanMacAddress(gCharStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_WakeOnLan_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WakeOnLanCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_WakeOnLan_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WakeOnLanCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -// End of Cluster WakeOnLan -// Cluster WiFiNetworkDiagnostics - -chip::ChipError::StorageType chip_ime_ReadAttribute_WiFiNetworkDiagnostics_Bssid(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WiFiNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeBssid(gOctetStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_WiFiNetworkDiagnostics_Bssid(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WiFiNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeBssid(gOctetStringAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_WiFiNetworkDiagnostics_SecurityType(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WiFiNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeSecurityType(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_WiFiNetworkDiagnostics_SecurityType(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WiFiNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeSecurityType(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_WiFiNetworkDiagnostics_WiFiVersion(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WiFiNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeWiFiVersion(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_WiFiNetworkDiagnostics_WiFiVersion(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WiFiNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeWiFiVersion(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_WiFiNetworkDiagnostics_ChannelNumber(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WiFiNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeChannelNumber(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_WiFiNetworkDiagnostics_ChannelNumber(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WiFiNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeChannelNumber(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_WiFiNetworkDiagnostics_Rssi(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WiFiNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeRssi(gInt8sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_WiFiNetworkDiagnostics_Rssi(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WiFiNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeRssi(gInt8sAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_WiFiNetworkDiagnostics_BeaconLostCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WiFiNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeBeaconLostCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_WiFiNetworkDiagnostics_BeaconLostCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WiFiNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeBeaconLostCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_WiFiNetworkDiagnostics_BeaconRxCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WiFiNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeBeaconRxCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_WiFiNetworkDiagnostics_BeaconRxCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WiFiNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeBeaconRxCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_WiFiNetworkDiagnostics_PacketMulticastRxCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WiFiNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributePacketMulticastRxCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_WiFiNetworkDiagnostics_PacketMulticastRxCount( - chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WiFiNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributePacketMulticastRxCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_WiFiNetworkDiagnostics_PacketMulticastTxCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WiFiNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributePacketMulticastTxCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_WiFiNetworkDiagnostics_PacketMulticastTxCount( - chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WiFiNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributePacketMulticastTxCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_WiFiNetworkDiagnostics_PacketUnicastRxCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WiFiNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributePacketUnicastRxCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_WiFiNetworkDiagnostics_PacketUnicastRxCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WiFiNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributePacketUnicastRxCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_WiFiNetworkDiagnostics_PacketUnicastTxCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WiFiNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributePacketUnicastTxCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_WiFiNetworkDiagnostics_PacketUnicastTxCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WiFiNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributePacketUnicastTxCount(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_WiFiNetworkDiagnostics_CurrentMaxRate(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WiFiNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeCurrentMaxRate(gInt64uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_WiFiNetworkDiagnostics_CurrentMaxRate(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WiFiNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeCurrentMaxRate(gInt64uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_WiFiNetworkDiagnostics_OverrunCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WiFiNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeOverrunCount(gInt64uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_WiFiNetworkDiagnostics_OverrunCount(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WiFiNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeOverrunCount(gInt64uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_WiFiNetworkDiagnostics_FeatureMap(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WiFiNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeFeatureMap(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_WiFiNetworkDiagnostics_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WiFiNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_WiFiNetworkDiagnostics_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WiFiNetworkDiagnosticsCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -// End of Cluster WiFiNetworkDiagnostics -// Cluster WindowCovering - -chip::ChipError::StorageType chip_ime_ReadAttribute_WindowCovering_Type(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WindowCoveringCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeType(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_WindowCovering_Type(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WindowCoveringCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeType(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_WindowCovering_CurrentPositionLift(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WindowCoveringCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeCurrentPositionLift(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_WindowCovering_CurrentPositionLift(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WindowCoveringCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeCurrentPositionLift(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_WindowCovering_CurrentPositionTilt(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WindowCoveringCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeCurrentPositionTilt(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_WindowCovering_CurrentPositionTilt(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WindowCoveringCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeCurrentPositionTilt(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_WindowCovering_ConfigStatus(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WindowCoveringCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeConfigStatus(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_WindowCovering_ConfigStatus(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WindowCoveringCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeConfigStatus(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_WindowCovering_CurrentPositionLiftPercentage(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WindowCoveringCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeCurrentPositionLiftPercentage(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType -chip_ime_SubscribeAttribute_WindowCovering_CurrentPositionLiftPercentage(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WindowCoveringCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeCurrentPositionLiftPercentage(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), - minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_WindowCovering_CurrentPositionTiltPercentage(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WindowCoveringCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeCurrentPositionTiltPercentage(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType -chip_ime_SubscribeAttribute_WindowCovering_CurrentPositionTiltPercentage(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WindowCoveringCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeCurrentPositionTiltPercentage(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), - minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_WindowCovering_OperationalStatus(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WindowCoveringCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeOperationalStatus(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_WindowCovering_OperationalStatus(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WindowCoveringCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeOperationalStatus(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_WindowCovering_TargetPositionLiftPercent100ths(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WindowCoveringCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeTargetPositionLiftPercent100ths(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_WindowCovering_TargetPositionLiftPercent100ths( - chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WindowCoveringCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeTargetPositionLiftPercent100ths(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), - minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_WindowCovering_TargetPositionTiltPercent100ths(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WindowCoveringCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeTargetPositionTiltPercent100ths(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_WindowCovering_TargetPositionTiltPercent100ths( - chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WindowCoveringCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeTargetPositionTiltPercent100ths(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), - minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_WindowCovering_EndProductType(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WindowCoveringCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeEndProductType(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_WindowCovering_EndProductType(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WindowCoveringCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeEndProductType(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_WindowCovering_CurrentPositionLiftPercent100ths(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WindowCoveringCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .ReadAttributeCurrentPositionLiftPercent100ths(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_WindowCovering_CurrentPositionLiftPercent100ths( - chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WindowCoveringCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeCurrentPositionLiftPercent100ths(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), - minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_WindowCovering_CurrentPositionTiltPercent100ths(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WindowCoveringCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .ReadAttributeCurrentPositionTiltPercent100ths(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_WindowCovering_CurrentPositionTiltPercent100ths( - chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WindowCoveringCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeCurrentPositionTiltPercent100ths(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), - minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_WindowCovering_InstalledOpenLimitLift(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WindowCoveringCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeInstalledOpenLimitLift(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_WindowCovering_InstalledOpenLimitLift(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WindowCoveringCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeInstalledOpenLimitLift(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_WindowCovering_InstalledClosedLimitLift(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WindowCoveringCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeInstalledClosedLimitLift(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_WindowCovering_InstalledClosedLimitLift(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WindowCoveringCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeInstalledClosedLimitLift(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), - minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_WindowCovering_InstalledOpenLimitTilt(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WindowCoveringCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeInstalledOpenLimitTilt(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_WindowCovering_InstalledOpenLimitTilt(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WindowCoveringCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeInstalledOpenLimitTilt(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_WindowCovering_InstalledClosedLimitTilt(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WindowCoveringCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeInstalledClosedLimitTilt(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_WindowCovering_InstalledClosedLimitTilt(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WindowCoveringCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeInstalledClosedLimitTilt(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), - minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_WindowCovering_Mode(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WindowCoveringCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeMode(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_WindowCovering_Mode(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, uint16_t minInterval, - uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WindowCoveringCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeMode(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_WindowCovering_SafetyStatus(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WindowCoveringCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeSafetyStatus(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_WindowCovering_SafetyStatus(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WindowCoveringCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeSafetyStatus(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_WindowCovering_FeatureMap(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WindowCoveringCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeFeatureMap(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_WindowCovering_FeatureMap(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WindowCoveringCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeFeatureMap(gInt32uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval) - .AsInteger(); -} - -chip::ChipError::StorageType chip_ime_ReadAttribute_WindowCovering_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WindowCoveringCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster.ReadAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -} - -chip::ChipError::StorageType chip_ime_SubscribeAttribute_WindowCovering_ClusterRevision(chip::DeviceProxy * device, - chip::EndpointId ZCLendpointId, - uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::WindowCoveringCluster cluster; - cluster.Associate(device, ZCLendpointId); - return cluster - .SubscribeAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, - maxInterval) - .AsInteger(); -} - -// End of Cluster WindowCovering -} diff --git a/src/controller/python/chip/clusters/CHIPClusters.py b/src/controller/python/chip/clusters/CHIPClusters.py index 58d8998e25cb5a..fc1e66f46b50c8 100644 --- a/src/controller/python/chip/clusters/CHIPClusters.py +++ b/src/controller/python/chip/clusters/CHIPClusters.py @@ -5102,6754 +5102,7 @@ def ListClusterAttributes(self): attribute["attributeName"]: attribute for attribute in clusterInfo["attributes"].values() } for clusterName, clusterInfo in ChipClusters._CLUSTER_NAME_DICT.items()} - def SendCommand(self, device: ctypes.c_void_p, cluster: str, command: str, endpoint: int, groupid: int, args, imEnabled): - func = getattr(self, "Cluster{}_Command{}".format( - cluster, command), None) - if not func: - raise UnknownCommand(cluster, command) - funcCaller = self._ChipStack.Call if imEnabled else self._ChipStack.CallAsync - res = funcCaller(lambda: func(device, endpoint, groupid, **args)) - if res != 0: - raise self._ChipStack.ErrorToException(res) - - def ReadAttribute(self, device: ctypes.c_void_p, cluster: str, attribute: str, endpoint: int, groupid: int, imEnabled): - func = getattr(self, "Cluster{}_ReadAttribute{}".format( - cluster, attribute), None) - if not func: - raise UnknownAttribute(cluster, attribute) - funcCaller = self._ChipStack.Call if imEnabled else self._ChipStack.CallAsync - res = funcCaller(lambda: func(device, endpoint, groupid)) - if res != 0: - raise self._ChipStack.ErrorToException(res) - - def SubscribeAttribute(self, device: ctypes.c_void_p, cluster: str, attribute: str, endpoint: int, minInterval: int, maxInterval: int, imEnabled): - func = getattr(self, "Cluster{}_SubscribeAttribute{}".format( - cluster, attribute), None) - if not func: - raise UnknownAttribute(cluster, attribute) - funcCaller = self._ChipStack.Call if imEnabled else self._ChipStack.CallAsync - funcCaller(lambda: func(device, endpoint, minInterval, maxInterval)) - - def WriteAttribute(self, device: ctypes.c_void_p, cluster: str, attribute: str, endpoint: int, groupid: int, value, imEnabled): - func = getattr(self, "Cluster{}_WriteAttribute{}".format( - cluster, attribute), None) - if not func: - raise UnknownAttribute(cluster, attribute) - funcCaller = self._ChipStack.Call if imEnabled else self._ChipStack.CallAsync - res = funcCaller(lambda: func(device, endpoint, groupid, value)) - if res != 0: - raise self._ChipStack.ErrorToException(res) - - # Cluster attributes - - def ClusterAccountLogin_ReadAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_AccountLogin_ClusterRevision(device, ZCLendpoint, ZCLgroupid) - - def ClusterAccountLogin_SubscribeAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_AccountLogin_ClusterRevision(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterAdministratorCommissioning_ReadAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_AdministratorCommissioning_ClusterRevision(device, ZCLendpoint, ZCLgroupid) - - def ClusterAdministratorCommissioning_SubscribeAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_AdministratorCommissioning_ClusterRevision(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterApplicationBasic_ReadAttributeVendorName(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ApplicationBasic_VendorName(device, ZCLendpoint, ZCLgroupid) - - def ClusterApplicationBasic_SubscribeAttributeVendorName(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ApplicationBasic_VendorName(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterApplicationBasic_ReadAttributeVendorId(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ApplicationBasic_VendorId(device, ZCLendpoint, ZCLgroupid) - - def ClusterApplicationBasic_SubscribeAttributeVendorId(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ApplicationBasic_VendorId(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterApplicationBasic_ReadAttributeApplicationName(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ApplicationBasic_ApplicationName(device, ZCLendpoint, ZCLgroupid) - - def ClusterApplicationBasic_SubscribeAttributeApplicationName(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ApplicationBasic_ApplicationName(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterApplicationBasic_ReadAttributeProductId(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ApplicationBasic_ProductId(device, ZCLendpoint, ZCLgroupid) - - def ClusterApplicationBasic_SubscribeAttributeProductId(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ApplicationBasic_ProductId(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterApplicationBasic_ReadAttributeApplicationId(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ApplicationBasic_ApplicationId(device, ZCLendpoint, ZCLgroupid) - - def ClusterApplicationBasic_SubscribeAttributeApplicationId(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ApplicationBasic_ApplicationId(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterApplicationBasic_ReadAttributeCatalogVendorId(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ApplicationBasic_CatalogVendorId(device, ZCLendpoint, ZCLgroupid) - - def ClusterApplicationBasic_SubscribeAttributeCatalogVendorId(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ApplicationBasic_CatalogVendorId(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterApplicationBasic_ReadAttributeApplicationStatus(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ApplicationBasic_ApplicationStatus(device, ZCLendpoint, ZCLgroupid) - - def ClusterApplicationBasic_SubscribeAttributeApplicationStatus(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ApplicationBasic_ApplicationStatus(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterApplicationBasic_ReadAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ApplicationBasic_ClusterRevision(device, ZCLendpoint, ZCLgroupid) - - def ClusterApplicationBasic_SubscribeAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ApplicationBasic_ClusterRevision(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterApplicationLauncher_ReadAttributeApplicationLauncherList(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ApplicationLauncher_ApplicationLauncherList(device, ZCLendpoint, ZCLgroupid) - - def ClusterApplicationLauncher_ReadAttributeCatalogVendorId(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ApplicationLauncher_CatalogVendorId(device, ZCLendpoint, ZCLgroupid) - - def ClusterApplicationLauncher_SubscribeAttributeCatalogVendorId(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ApplicationLauncher_CatalogVendorId(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterApplicationLauncher_ReadAttributeApplicationId(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ApplicationLauncher_ApplicationId(device, ZCLendpoint, ZCLgroupid) - - def ClusterApplicationLauncher_SubscribeAttributeApplicationId(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ApplicationLauncher_ApplicationId(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterApplicationLauncher_ReadAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ApplicationLauncher_ClusterRevision(device, ZCLendpoint, ZCLgroupid) - - def ClusterApplicationLauncher_SubscribeAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ApplicationLauncher_ClusterRevision(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterAudioOutput_ReadAttributeAudioOutputList(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_AudioOutput_AudioOutputList(device, ZCLendpoint, ZCLgroupid) - - def ClusterAudioOutput_ReadAttributeCurrentAudioOutput(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_AudioOutput_CurrentAudioOutput(device, ZCLendpoint, ZCLgroupid) - - def ClusterAudioOutput_SubscribeAttributeCurrentAudioOutput(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_AudioOutput_CurrentAudioOutput(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterAudioOutput_ReadAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_AudioOutput_ClusterRevision(device, ZCLendpoint, ZCLgroupid) - - def ClusterAudioOutput_SubscribeAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_AudioOutput_ClusterRevision(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterBarrierControl_ReadAttributeBarrierMovingState(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_BarrierControl_BarrierMovingState(device, ZCLendpoint, ZCLgroupid) - - def ClusterBarrierControl_SubscribeAttributeBarrierMovingState(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_BarrierControl_BarrierMovingState(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterBarrierControl_ReadAttributeBarrierSafetyStatus(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_BarrierControl_BarrierSafetyStatus(device, ZCLendpoint, ZCLgroupid) - - def ClusterBarrierControl_SubscribeAttributeBarrierSafetyStatus(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_BarrierControl_BarrierSafetyStatus(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterBarrierControl_ReadAttributeBarrierCapabilities(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_BarrierControl_BarrierCapabilities(device, ZCLendpoint, ZCLgroupid) - - def ClusterBarrierControl_SubscribeAttributeBarrierCapabilities(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_BarrierControl_BarrierCapabilities(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterBarrierControl_ReadAttributeBarrierPosition(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_BarrierControl_BarrierPosition(device, ZCLendpoint, ZCLgroupid) - - def ClusterBarrierControl_SubscribeAttributeBarrierPosition(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_BarrierControl_BarrierPosition(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterBarrierControl_ReadAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_BarrierControl_ClusterRevision(device, ZCLendpoint, ZCLgroupid) - - def ClusterBarrierControl_SubscribeAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_BarrierControl_ClusterRevision(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterBasic_ReadAttributeInteractionModelVersion(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_Basic_InteractionModelVersion(device, ZCLendpoint, ZCLgroupid) - - def ClusterBasic_SubscribeAttributeInteractionModelVersion(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_Basic_InteractionModelVersion(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterBasic_ReadAttributeVendorName(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_Basic_VendorName(device, ZCLendpoint, ZCLgroupid) - - def ClusterBasic_SubscribeAttributeVendorName(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_Basic_VendorName(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterBasic_ReadAttributeVendorID(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_Basic_VendorID(device, ZCLendpoint, ZCLgroupid) - - def ClusterBasic_SubscribeAttributeVendorID(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_Basic_VendorID(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterBasic_ReadAttributeProductName(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_Basic_ProductName(device, ZCLendpoint, ZCLgroupid) - - def ClusterBasic_SubscribeAttributeProductName(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_Basic_ProductName(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterBasic_ReadAttributeProductID(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_Basic_ProductID(device, ZCLendpoint, ZCLgroupid) - - def ClusterBasic_SubscribeAttributeProductID(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_Basic_ProductID(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterBasic_ReadAttributeNodeLabel(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_Basic_NodeLabel(device, ZCLendpoint, ZCLgroupid) - - def ClusterBasic_SubscribeAttributeNodeLabel(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_Basic_NodeLabel(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterBasic_ReadAttributeLocation(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_Basic_Location(device, ZCLendpoint, ZCLgroupid) - - def ClusterBasic_SubscribeAttributeLocation(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_Basic_Location(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterBasic_ReadAttributeHardwareVersion(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_Basic_HardwareVersion(device, ZCLendpoint, ZCLgroupid) - - def ClusterBasic_SubscribeAttributeHardwareVersion(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_Basic_HardwareVersion(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterBasic_ReadAttributeHardwareVersionString(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_Basic_HardwareVersionString(device, ZCLendpoint, ZCLgroupid) - - def ClusterBasic_SubscribeAttributeHardwareVersionString(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_Basic_HardwareVersionString(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterBasic_ReadAttributeSoftwareVersion(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_Basic_SoftwareVersion(device, ZCLendpoint, ZCLgroupid) - - def ClusterBasic_SubscribeAttributeSoftwareVersion(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_Basic_SoftwareVersion(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterBasic_ReadAttributeSoftwareVersionString(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_Basic_SoftwareVersionString(device, ZCLendpoint, ZCLgroupid) - - def ClusterBasic_SubscribeAttributeSoftwareVersionString(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_Basic_SoftwareVersionString(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterBasic_ReadAttributeManufacturingDate(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_Basic_ManufacturingDate(device, ZCLendpoint, ZCLgroupid) - - def ClusterBasic_SubscribeAttributeManufacturingDate(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_Basic_ManufacturingDate(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterBasic_ReadAttributePartNumber(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_Basic_PartNumber(device, ZCLendpoint, ZCLgroupid) - - def ClusterBasic_SubscribeAttributePartNumber(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_Basic_PartNumber(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterBasic_ReadAttributeProductURL(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_Basic_ProductURL(device, ZCLendpoint, ZCLgroupid) - - def ClusterBasic_SubscribeAttributeProductURL(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_Basic_ProductURL(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterBasic_ReadAttributeProductLabel(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_Basic_ProductLabel(device, ZCLendpoint, ZCLgroupid) - - def ClusterBasic_SubscribeAttributeProductLabel(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_Basic_ProductLabel(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterBasic_ReadAttributeSerialNumber(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_Basic_SerialNumber(device, ZCLendpoint, ZCLgroupid) - - def ClusterBasic_SubscribeAttributeSerialNumber(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_Basic_SerialNumber(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterBasic_ReadAttributeLocalConfigDisabled(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_Basic_LocalConfigDisabled(device, ZCLendpoint, ZCLgroupid) - - def ClusterBasic_SubscribeAttributeLocalConfigDisabled(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_Basic_LocalConfigDisabled(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterBasic_ReadAttributeReachable(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_Basic_Reachable(device, ZCLendpoint, ZCLgroupid) - - def ClusterBasic_SubscribeAttributeReachable(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_Basic_Reachable(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterBasic_ReadAttributeUniqueID(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_Basic_UniqueID(device, ZCLendpoint, ZCLgroupid) - - def ClusterBasic_ReadAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_Basic_ClusterRevision(device, ZCLendpoint, ZCLgroupid) - - def ClusterBasic_SubscribeAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_Basic_ClusterRevision(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterBinaryInputBasic_ReadAttributeOutOfService(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_BinaryInputBasic_OutOfService(device, ZCLendpoint, ZCLgroupid) - - def ClusterBinaryInputBasic_SubscribeAttributeOutOfService(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_BinaryInputBasic_OutOfService(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterBinaryInputBasic_ReadAttributePresentValue(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_BinaryInputBasic_PresentValue(device, ZCLendpoint, ZCLgroupid) - - def ClusterBinaryInputBasic_SubscribeAttributePresentValue(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_BinaryInputBasic_PresentValue(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterBinaryInputBasic_ReadAttributeStatusFlags(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_BinaryInputBasic_StatusFlags(device, ZCLendpoint, ZCLgroupid) - - def ClusterBinaryInputBasic_SubscribeAttributeStatusFlags(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_BinaryInputBasic_StatusFlags(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterBinaryInputBasic_ReadAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_BinaryInputBasic_ClusterRevision(device, ZCLendpoint, ZCLgroupid) - - def ClusterBinaryInputBasic_SubscribeAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_BinaryInputBasic_ClusterRevision(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterBinding_ReadAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_Binding_ClusterRevision(device, ZCLendpoint, ZCLgroupid) - - def ClusterBinding_SubscribeAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_Binding_ClusterRevision(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterBooleanState_ReadAttributeStateValue(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_BooleanState_StateValue(device, ZCLendpoint, ZCLgroupid) - - def ClusterBooleanState_SubscribeAttributeStateValue(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_BooleanState_StateValue(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterBooleanState_ReadAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_BooleanState_ClusterRevision(device, ZCLendpoint, ZCLgroupid) - - def ClusterBooleanState_SubscribeAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_BooleanState_ClusterRevision(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterBridgedActions_ReadAttributeActionList(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_BridgedActions_ActionList(device, ZCLendpoint, ZCLgroupid) - - def ClusterBridgedActions_ReadAttributeEndpointList(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_BridgedActions_EndpointList(device, ZCLendpoint, ZCLgroupid) - - def ClusterBridgedActions_ReadAttributeSetupUrl(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_BridgedActions_SetupUrl(device, ZCLendpoint, ZCLgroupid) - - def ClusterBridgedActions_SubscribeAttributeSetupUrl(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_BridgedActions_SetupUrl(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterBridgedActions_ReadAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_BridgedActions_ClusterRevision(device, ZCLendpoint, ZCLgroupid) - - def ClusterBridgedActions_SubscribeAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_BridgedActions_ClusterRevision(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterBridgedDeviceBasic_ReadAttributeVendorName(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_BridgedDeviceBasic_VendorName(device, ZCLendpoint, ZCLgroupid) - - def ClusterBridgedDeviceBasic_SubscribeAttributeVendorName(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_BridgedDeviceBasic_VendorName(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterBridgedDeviceBasic_ReadAttributeVendorID(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_BridgedDeviceBasic_VendorID(device, ZCLendpoint, ZCLgroupid) - - def ClusterBridgedDeviceBasic_SubscribeAttributeVendorID(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_BridgedDeviceBasic_VendorID(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterBridgedDeviceBasic_ReadAttributeProductName(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_BridgedDeviceBasic_ProductName(device, ZCLendpoint, ZCLgroupid) - - def ClusterBridgedDeviceBasic_SubscribeAttributeProductName(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_BridgedDeviceBasic_ProductName(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterBridgedDeviceBasic_ReadAttributeNodeLabel(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_BridgedDeviceBasic_NodeLabel(device, ZCLendpoint, ZCLgroupid) - - def ClusterBridgedDeviceBasic_SubscribeAttributeNodeLabel(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_BridgedDeviceBasic_NodeLabel(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterBridgedDeviceBasic_ReadAttributeHardwareVersion(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_BridgedDeviceBasic_HardwareVersion(device, ZCLendpoint, ZCLgroupid) - - def ClusterBridgedDeviceBasic_SubscribeAttributeHardwareVersion(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_BridgedDeviceBasic_HardwareVersion(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterBridgedDeviceBasic_ReadAttributeHardwareVersionString(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_BridgedDeviceBasic_HardwareVersionString(device, ZCLendpoint, ZCLgroupid) - - def ClusterBridgedDeviceBasic_SubscribeAttributeHardwareVersionString(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_BridgedDeviceBasic_HardwareVersionString(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterBridgedDeviceBasic_ReadAttributeSoftwareVersion(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_BridgedDeviceBasic_SoftwareVersion(device, ZCLendpoint, ZCLgroupid) - - def ClusterBridgedDeviceBasic_SubscribeAttributeSoftwareVersion(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_BridgedDeviceBasic_SoftwareVersion(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterBridgedDeviceBasic_ReadAttributeSoftwareVersionString(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_BridgedDeviceBasic_SoftwareVersionString(device, ZCLendpoint, ZCLgroupid) - - def ClusterBridgedDeviceBasic_SubscribeAttributeSoftwareVersionString(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_BridgedDeviceBasic_SoftwareVersionString(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterBridgedDeviceBasic_ReadAttributeManufacturingDate(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_BridgedDeviceBasic_ManufacturingDate(device, ZCLendpoint, ZCLgroupid) - - def ClusterBridgedDeviceBasic_SubscribeAttributeManufacturingDate(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_BridgedDeviceBasic_ManufacturingDate(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterBridgedDeviceBasic_ReadAttributePartNumber(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_BridgedDeviceBasic_PartNumber(device, ZCLendpoint, ZCLgroupid) - - def ClusterBridgedDeviceBasic_SubscribeAttributePartNumber(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_BridgedDeviceBasic_PartNumber(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterBridgedDeviceBasic_ReadAttributeProductURL(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_BridgedDeviceBasic_ProductURL(device, ZCLendpoint, ZCLgroupid) - - def ClusterBridgedDeviceBasic_SubscribeAttributeProductURL(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_BridgedDeviceBasic_ProductURL(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterBridgedDeviceBasic_ReadAttributeProductLabel(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_BridgedDeviceBasic_ProductLabel(device, ZCLendpoint, ZCLgroupid) - - def ClusterBridgedDeviceBasic_SubscribeAttributeProductLabel(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_BridgedDeviceBasic_ProductLabel(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterBridgedDeviceBasic_ReadAttributeSerialNumber(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_BridgedDeviceBasic_SerialNumber(device, ZCLendpoint, ZCLgroupid) - - def ClusterBridgedDeviceBasic_SubscribeAttributeSerialNumber(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_BridgedDeviceBasic_SerialNumber(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterBridgedDeviceBasic_ReadAttributeReachable(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_BridgedDeviceBasic_Reachable(device, ZCLendpoint, ZCLgroupid) - - def ClusterBridgedDeviceBasic_SubscribeAttributeReachable(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_BridgedDeviceBasic_Reachable(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterBridgedDeviceBasic_ReadAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_BridgedDeviceBasic_ClusterRevision(device, ZCLendpoint, ZCLgroupid) - - def ClusterBridgedDeviceBasic_SubscribeAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_BridgedDeviceBasic_ClusterRevision(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterColorControl_ReadAttributeCurrentHue(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ColorControl_CurrentHue(device, ZCLendpoint, ZCLgroupid) - - def ClusterColorControl_SubscribeAttributeCurrentHue(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ColorControl_CurrentHue(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterColorControl_ReadAttributeCurrentSaturation(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ColorControl_CurrentSaturation(device, ZCLendpoint, ZCLgroupid) - - def ClusterColorControl_SubscribeAttributeCurrentSaturation(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ColorControl_CurrentSaturation(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterColorControl_ReadAttributeRemainingTime(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ColorControl_RemainingTime(device, ZCLendpoint, ZCLgroupid) - - def ClusterColorControl_SubscribeAttributeRemainingTime(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ColorControl_RemainingTime(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterColorControl_ReadAttributeCurrentX(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ColorControl_CurrentX(device, ZCLendpoint, ZCLgroupid) - - def ClusterColorControl_SubscribeAttributeCurrentX(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ColorControl_CurrentX(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterColorControl_ReadAttributeCurrentY(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ColorControl_CurrentY(device, ZCLendpoint, ZCLgroupid) - - def ClusterColorControl_SubscribeAttributeCurrentY(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ColorControl_CurrentY(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterColorControl_ReadAttributeDriftCompensation(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ColorControl_DriftCompensation(device, ZCLendpoint, ZCLgroupid) - - def ClusterColorControl_SubscribeAttributeDriftCompensation(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ColorControl_DriftCompensation(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterColorControl_ReadAttributeCompensationText(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ColorControl_CompensationText(device, ZCLendpoint, ZCLgroupid) - - def ClusterColorControl_SubscribeAttributeCompensationText(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ColorControl_CompensationText(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterColorControl_ReadAttributeColorTemperature(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ColorControl_ColorTemperature(device, ZCLendpoint, ZCLgroupid) - - def ClusterColorControl_SubscribeAttributeColorTemperature(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ColorControl_ColorTemperature(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterColorControl_ReadAttributeColorMode(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ColorControl_ColorMode(device, ZCLendpoint, ZCLgroupid) - - def ClusterColorControl_SubscribeAttributeColorMode(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ColorControl_ColorMode(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterColorControl_ReadAttributeColorControlOptions(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ColorControl_ColorControlOptions(device, ZCLendpoint, ZCLgroupid) - - def ClusterColorControl_SubscribeAttributeColorControlOptions(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ColorControl_ColorControlOptions(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterColorControl_ReadAttributeNumberOfPrimaries(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ColorControl_NumberOfPrimaries(device, ZCLendpoint, ZCLgroupid) - - def ClusterColorControl_SubscribeAttributeNumberOfPrimaries(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ColorControl_NumberOfPrimaries(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterColorControl_ReadAttributePrimary1X(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ColorControl_Primary1X(device, ZCLendpoint, ZCLgroupid) - - def ClusterColorControl_SubscribeAttributePrimary1X(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ColorControl_Primary1X(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterColorControl_ReadAttributePrimary1Y(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ColorControl_Primary1Y(device, ZCLendpoint, ZCLgroupid) - - def ClusterColorControl_SubscribeAttributePrimary1Y(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ColorControl_Primary1Y(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterColorControl_ReadAttributePrimary1Intensity(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ColorControl_Primary1Intensity(device, ZCLendpoint, ZCLgroupid) - - def ClusterColorControl_SubscribeAttributePrimary1Intensity(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ColorControl_Primary1Intensity(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterColorControl_ReadAttributePrimary2X(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ColorControl_Primary2X(device, ZCLendpoint, ZCLgroupid) - - def ClusterColorControl_SubscribeAttributePrimary2X(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ColorControl_Primary2X(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterColorControl_ReadAttributePrimary2Y(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ColorControl_Primary2Y(device, ZCLendpoint, ZCLgroupid) - - def ClusterColorControl_SubscribeAttributePrimary2Y(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ColorControl_Primary2Y(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterColorControl_ReadAttributePrimary2Intensity(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ColorControl_Primary2Intensity(device, ZCLendpoint, ZCLgroupid) - - def ClusterColorControl_SubscribeAttributePrimary2Intensity(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ColorControl_Primary2Intensity(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterColorControl_ReadAttributePrimary3X(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ColorControl_Primary3X(device, ZCLendpoint, ZCLgroupid) - - def ClusterColorControl_SubscribeAttributePrimary3X(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ColorControl_Primary3X(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterColorControl_ReadAttributePrimary3Y(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ColorControl_Primary3Y(device, ZCLendpoint, ZCLgroupid) - - def ClusterColorControl_SubscribeAttributePrimary3Y(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ColorControl_Primary3Y(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterColorControl_ReadAttributePrimary3Intensity(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ColorControl_Primary3Intensity(device, ZCLendpoint, ZCLgroupid) - - def ClusterColorControl_SubscribeAttributePrimary3Intensity(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ColorControl_Primary3Intensity(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterColorControl_ReadAttributePrimary4X(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ColorControl_Primary4X(device, ZCLendpoint, ZCLgroupid) - - def ClusterColorControl_SubscribeAttributePrimary4X(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ColorControl_Primary4X(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterColorControl_ReadAttributePrimary4Y(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ColorControl_Primary4Y(device, ZCLendpoint, ZCLgroupid) - - def ClusterColorControl_SubscribeAttributePrimary4Y(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ColorControl_Primary4Y(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterColorControl_ReadAttributePrimary4Intensity(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ColorControl_Primary4Intensity(device, ZCLendpoint, ZCLgroupid) - - def ClusterColorControl_SubscribeAttributePrimary4Intensity(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ColorControl_Primary4Intensity(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterColorControl_ReadAttributePrimary5X(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ColorControl_Primary5X(device, ZCLendpoint, ZCLgroupid) - - def ClusterColorControl_SubscribeAttributePrimary5X(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ColorControl_Primary5X(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterColorControl_ReadAttributePrimary5Y(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ColorControl_Primary5Y(device, ZCLendpoint, ZCLgroupid) - - def ClusterColorControl_SubscribeAttributePrimary5Y(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ColorControl_Primary5Y(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterColorControl_ReadAttributePrimary5Intensity(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ColorControl_Primary5Intensity(device, ZCLendpoint, ZCLgroupid) - - def ClusterColorControl_SubscribeAttributePrimary5Intensity(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ColorControl_Primary5Intensity(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterColorControl_ReadAttributePrimary6X(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ColorControl_Primary6X(device, ZCLendpoint, ZCLgroupid) - - def ClusterColorControl_SubscribeAttributePrimary6X(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ColorControl_Primary6X(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterColorControl_ReadAttributePrimary6Y(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ColorControl_Primary6Y(device, ZCLendpoint, ZCLgroupid) - - def ClusterColorControl_SubscribeAttributePrimary6Y(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ColorControl_Primary6Y(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterColorControl_ReadAttributePrimary6Intensity(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ColorControl_Primary6Intensity(device, ZCLendpoint, ZCLgroupid) - - def ClusterColorControl_SubscribeAttributePrimary6Intensity(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ColorControl_Primary6Intensity(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterColorControl_ReadAttributeWhitePointX(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ColorControl_WhitePointX(device, ZCLendpoint, ZCLgroupid) - - def ClusterColorControl_SubscribeAttributeWhitePointX(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ColorControl_WhitePointX(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterColorControl_ReadAttributeWhitePointY(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ColorControl_WhitePointY(device, ZCLendpoint, ZCLgroupid) - - def ClusterColorControl_SubscribeAttributeWhitePointY(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ColorControl_WhitePointY(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterColorControl_ReadAttributeColorPointRX(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ColorControl_ColorPointRX(device, ZCLendpoint, ZCLgroupid) - - def ClusterColorControl_SubscribeAttributeColorPointRX(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ColorControl_ColorPointRX(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterColorControl_ReadAttributeColorPointRY(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ColorControl_ColorPointRY(device, ZCLendpoint, ZCLgroupid) - - def ClusterColorControl_SubscribeAttributeColorPointRY(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ColorControl_ColorPointRY(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterColorControl_ReadAttributeColorPointRIntensity(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ColorControl_ColorPointRIntensity(device, ZCLendpoint, ZCLgroupid) - - def ClusterColorControl_SubscribeAttributeColorPointRIntensity(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ColorControl_ColorPointRIntensity(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterColorControl_ReadAttributeColorPointGX(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ColorControl_ColorPointGX(device, ZCLendpoint, ZCLgroupid) - - def ClusterColorControl_SubscribeAttributeColorPointGX(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ColorControl_ColorPointGX(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterColorControl_ReadAttributeColorPointGY(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ColorControl_ColorPointGY(device, ZCLendpoint, ZCLgroupid) - - def ClusterColorControl_SubscribeAttributeColorPointGY(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ColorControl_ColorPointGY(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterColorControl_ReadAttributeColorPointGIntensity(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ColorControl_ColorPointGIntensity(device, ZCLendpoint, ZCLgroupid) - - def ClusterColorControl_SubscribeAttributeColorPointGIntensity(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ColorControl_ColorPointGIntensity(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterColorControl_ReadAttributeColorPointBX(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ColorControl_ColorPointBX(device, ZCLendpoint, ZCLgroupid) - - def ClusterColorControl_SubscribeAttributeColorPointBX(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ColorControl_ColorPointBX(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterColorControl_ReadAttributeColorPointBY(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ColorControl_ColorPointBY(device, ZCLendpoint, ZCLgroupid) - - def ClusterColorControl_SubscribeAttributeColorPointBY(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ColorControl_ColorPointBY(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterColorControl_ReadAttributeColorPointBIntensity(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ColorControl_ColorPointBIntensity(device, ZCLendpoint, ZCLgroupid) - - def ClusterColorControl_SubscribeAttributeColorPointBIntensity(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ColorControl_ColorPointBIntensity(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterColorControl_ReadAttributeEnhancedCurrentHue(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ColorControl_EnhancedCurrentHue(device, ZCLendpoint, ZCLgroupid) - - def ClusterColorControl_SubscribeAttributeEnhancedCurrentHue(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ColorControl_EnhancedCurrentHue(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterColorControl_ReadAttributeEnhancedColorMode(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ColorControl_EnhancedColorMode(device, ZCLendpoint, ZCLgroupid) - - def ClusterColorControl_SubscribeAttributeEnhancedColorMode(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ColorControl_EnhancedColorMode(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterColorControl_ReadAttributeColorLoopActive(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ColorControl_ColorLoopActive(device, ZCLendpoint, ZCLgroupid) - - def ClusterColorControl_SubscribeAttributeColorLoopActive(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ColorControl_ColorLoopActive(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterColorControl_ReadAttributeColorLoopDirection(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ColorControl_ColorLoopDirection(device, ZCLendpoint, ZCLgroupid) - - def ClusterColorControl_SubscribeAttributeColorLoopDirection(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ColorControl_ColorLoopDirection(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterColorControl_ReadAttributeColorLoopTime(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ColorControl_ColorLoopTime(device, ZCLendpoint, ZCLgroupid) - - def ClusterColorControl_SubscribeAttributeColorLoopTime(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ColorControl_ColorLoopTime(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterColorControl_ReadAttributeColorLoopStartEnhancedHue(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ColorControl_ColorLoopStartEnhancedHue(device, ZCLendpoint, ZCLgroupid) - - def ClusterColorControl_SubscribeAttributeColorLoopStartEnhancedHue(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ColorControl_ColorLoopStartEnhancedHue(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterColorControl_ReadAttributeColorLoopStoredEnhancedHue(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ColorControl_ColorLoopStoredEnhancedHue(device, ZCLendpoint, ZCLgroupid) - - def ClusterColorControl_SubscribeAttributeColorLoopStoredEnhancedHue(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ColorControl_ColorLoopStoredEnhancedHue(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterColorControl_ReadAttributeColorCapabilities(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ColorControl_ColorCapabilities(device, ZCLendpoint, ZCLgroupid) - - def ClusterColorControl_SubscribeAttributeColorCapabilities(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ColorControl_ColorCapabilities(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterColorControl_ReadAttributeColorTempPhysicalMin(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ColorControl_ColorTempPhysicalMin(device, ZCLendpoint, ZCLgroupid) - - def ClusterColorControl_SubscribeAttributeColorTempPhysicalMin(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ColorControl_ColorTempPhysicalMin(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterColorControl_ReadAttributeColorTempPhysicalMax(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ColorControl_ColorTempPhysicalMax(device, ZCLendpoint, ZCLgroupid) - - def ClusterColorControl_SubscribeAttributeColorTempPhysicalMax(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ColorControl_ColorTempPhysicalMax(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterColorControl_ReadAttributeCoupleColorTempToLevelMinMireds(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ColorControl_CoupleColorTempToLevelMinMireds(device, ZCLendpoint, ZCLgroupid) - - def ClusterColorControl_SubscribeAttributeCoupleColorTempToLevelMinMireds(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ColorControl_CoupleColorTempToLevelMinMireds(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterColorControl_ReadAttributeStartUpColorTemperatureMireds(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ColorControl_StartUpColorTemperatureMireds(device, ZCLendpoint, ZCLgroupid) - - def ClusterColorControl_SubscribeAttributeStartUpColorTemperatureMireds(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ColorControl_StartUpColorTemperatureMireds(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterColorControl_ReadAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ColorControl_ClusterRevision(device, ZCLendpoint, ZCLgroupid) - - def ClusterColorControl_SubscribeAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ColorControl_ClusterRevision(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterContentLauncher_ReadAttributeAcceptsHeaderList(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ContentLauncher_AcceptsHeaderList(device, ZCLendpoint, ZCLgroupid) - - def ClusterContentLauncher_ReadAttributeSupportedStreamingTypes(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ContentLauncher_SupportedStreamingTypes(device, ZCLendpoint, ZCLgroupid) - - def ClusterContentLauncher_ReadAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ContentLauncher_ClusterRevision(device, ZCLendpoint, ZCLgroupid) - - def ClusterContentLauncher_SubscribeAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ContentLauncher_ClusterRevision(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterDescriptor_ReadAttributeDeviceList(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_Descriptor_DeviceList(device, ZCLendpoint, ZCLgroupid) - - def ClusterDescriptor_ReadAttributeServerList(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_Descriptor_ServerList(device, ZCLendpoint, ZCLgroupid) - - def ClusterDescriptor_ReadAttributeClientList(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_Descriptor_ClientList(device, ZCLendpoint, ZCLgroupid) - - def ClusterDescriptor_ReadAttributePartsList(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_Descriptor_PartsList(device, ZCLendpoint, ZCLgroupid) - - def ClusterDescriptor_ReadAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_Descriptor_ClusterRevision(device, ZCLendpoint, ZCLgroupid) - - def ClusterDescriptor_SubscribeAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_Descriptor_ClusterRevision(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterDoorLock_ReadAttributeLockState(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_DoorLock_LockState(device, ZCLendpoint, ZCLgroupid) - - def ClusterDoorLock_SubscribeAttributeLockState(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_DoorLock_LockState(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterDoorLock_ReadAttributeLockType(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_DoorLock_LockType(device, ZCLendpoint, ZCLgroupid) - - def ClusterDoorLock_SubscribeAttributeLockType(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_DoorLock_LockType(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterDoorLock_ReadAttributeActuatorEnabled(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_DoorLock_ActuatorEnabled(device, ZCLendpoint, ZCLgroupid) - - def ClusterDoorLock_SubscribeAttributeActuatorEnabled(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_DoorLock_ActuatorEnabled(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterDoorLock_ReadAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_DoorLock_ClusterRevision(device, ZCLendpoint, ZCLgroupid) - - def ClusterDoorLock_SubscribeAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_DoorLock_ClusterRevision(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterElectricalMeasurement_ReadAttributeMeasurementType(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ElectricalMeasurement_MeasurementType(device, ZCLendpoint, ZCLgroupid) - - def ClusterElectricalMeasurement_SubscribeAttributeMeasurementType(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ElectricalMeasurement_MeasurementType(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterElectricalMeasurement_ReadAttributeTotalActivePower(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ElectricalMeasurement_TotalActivePower(device, ZCLendpoint, ZCLgroupid) - - def ClusterElectricalMeasurement_SubscribeAttributeTotalActivePower(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ElectricalMeasurement_TotalActivePower(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterElectricalMeasurement_ReadAttributeRmsVoltage(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ElectricalMeasurement_RmsVoltage(device, ZCLendpoint, ZCLgroupid) - - def ClusterElectricalMeasurement_SubscribeAttributeRmsVoltage(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ElectricalMeasurement_RmsVoltage(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterElectricalMeasurement_ReadAttributeRmsVoltageMin(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ElectricalMeasurement_RmsVoltageMin(device, ZCLendpoint, ZCLgroupid) - - def ClusterElectricalMeasurement_SubscribeAttributeRmsVoltageMin(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ElectricalMeasurement_RmsVoltageMin(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterElectricalMeasurement_ReadAttributeRmsVoltageMax(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ElectricalMeasurement_RmsVoltageMax(device, ZCLendpoint, ZCLgroupid) - - def ClusterElectricalMeasurement_SubscribeAttributeRmsVoltageMax(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ElectricalMeasurement_RmsVoltageMax(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterElectricalMeasurement_ReadAttributeRmsCurrent(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ElectricalMeasurement_RmsCurrent(device, ZCLendpoint, ZCLgroupid) - - def ClusterElectricalMeasurement_SubscribeAttributeRmsCurrent(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ElectricalMeasurement_RmsCurrent(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterElectricalMeasurement_ReadAttributeRmsCurrentMin(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ElectricalMeasurement_RmsCurrentMin(device, ZCLendpoint, ZCLgroupid) - - def ClusterElectricalMeasurement_SubscribeAttributeRmsCurrentMin(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ElectricalMeasurement_RmsCurrentMin(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterElectricalMeasurement_ReadAttributeRmsCurrentMax(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ElectricalMeasurement_RmsCurrentMax(device, ZCLendpoint, ZCLgroupid) - - def ClusterElectricalMeasurement_SubscribeAttributeRmsCurrentMax(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ElectricalMeasurement_RmsCurrentMax(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterElectricalMeasurement_ReadAttributeActivePower(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ElectricalMeasurement_ActivePower(device, ZCLendpoint, ZCLgroupid) - - def ClusterElectricalMeasurement_SubscribeAttributeActivePower(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ElectricalMeasurement_ActivePower(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterElectricalMeasurement_ReadAttributeActivePowerMin(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ElectricalMeasurement_ActivePowerMin(device, ZCLendpoint, ZCLgroupid) - - def ClusterElectricalMeasurement_SubscribeAttributeActivePowerMin(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ElectricalMeasurement_ActivePowerMin(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterElectricalMeasurement_ReadAttributeActivePowerMax(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ElectricalMeasurement_ActivePowerMax(device, ZCLendpoint, ZCLgroupid) - - def ClusterElectricalMeasurement_SubscribeAttributeActivePowerMax(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ElectricalMeasurement_ActivePowerMax(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterElectricalMeasurement_ReadAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ElectricalMeasurement_ClusterRevision(device, ZCLendpoint, ZCLgroupid) - - def ClusterElectricalMeasurement_SubscribeAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ElectricalMeasurement_ClusterRevision(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterEthernetNetworkDiagnostics_ReadAttributePHYRate(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_EthernetNetworkDiagnostics_PHYRate(device, ZCLendpoint, ZCLgroupid) - - def ClusterEthernetNetworkDiagnostics_SubscribeAttributePHYRate(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_EthernetNetworkDiagnostics_PHYRate(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterEthernetNetworkDiagnostics_ReadAttributeFullDuplex(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_EthernetNetworkDiagnostics_FullDuplex(device, ZCLendpoint, ZCLgroupid) - - def ClusterEthernetNetworkDiagnostics_SubscribeAttributeFullDuplex(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_EthernetNetworkDiagnostics_FullDuplex(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterEthernetNetworkDiagnostics_ReadAttributePacketRxCount(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_EthernetNetworkDiagnostics_PacketRxCount(device, ZCLendpoint, ZCLgroupid) - - def ClusterEthernetNetworkDiagnostics_SubscribeAttributePacketRxCount(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_EthernetNetworkDiagnostics_PacketRxCount(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterEthernetNetworkDiagnostics_ReadAttributePacketTxCount(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_EthernetNetworkDiagnostics_PacketTxCount(device, ZCLendpoint, ZCLgroupid) - - def ClusterEthernetNetworkDiagnostics_SubscribeAttributePacketTxCount(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_EthernetNetworkDiagnostics_PacketTxCount(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterEthernetNetworkDiagnostics_ReadAttributeTxErrCount(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_EthernetNetworkDiagnostics_TxErrCount(device, ZCLendpoint, ZCLgroupid) - - def ClusterEthernetNetworkDiagnostics_SubscribeAttributeTxErrCount(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_EthernetNetworkDiagnostics_TxErrCount(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterEthernetNetworkDiagnostics_ReadAttributeCollisionCount(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_EthernetNetworkDiagnostics_CollisionCount(device, ZCLendpoint, ZCLgroupid) - - def ClusterEthernetNetworkDiagnostics_SubscribeAttributeCollisionCount(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_EthernetNetworkDiagnostics_CollisionCount(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterEthernetNetworkDiagnostics_ReadAttributeOverrunCount(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_EthernetNetworkDiagnostics_OverrunCount(device, ZCLendpoint, ZCLgroupid) - - def ClusterEthernetNetworkDiagnostics_SubscribeAttributeOverrunCount(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_EthernetNetworkDiagnostics_OverrunCount(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterEthernetNetworkDiagnostics_ReadAttributeCarrierDetect(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_EthernetNetworkDiagnostics_CarrierDetect(device, ZCLendpoint, ZCLgroupid) - - def ClusterEthernetNetworkDiagnostics_SubscribeAttributeCarrierDetect(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_EthernetNetworkDiagnostics_CarrierDetect(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterEthernetNetworkDiagnostics_ReadAttributeTimeSinceReset(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_EthernetNetworkDiagnostics_TimeSinceReset(device, ZCLendpoint, ZCLgroupid) - - def ClusterEthernetNetworkDiagnostics_SubscribeAttributeTimeSinceReset(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_EthernetNetworkDiagnostics_TimeSinceReset(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterEthernetNetworkDiagnostics_ReadAttributeFeatureMap(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_EthernetNetworkDiagnostics_FeatureMap(device, ZCLendpoint, ZCLgroupid) - - def ClusterEthernetNetworkDiagnostics_ReadAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_EthernetNetworkDiagnostics_ClusterRevision(device, ZCLendpoint, ZCLgroupid) - - def ClusterEthernetNetworkDiagnostics_SubscribeAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_EthernetNetworkDiagnostics_ClusterRevision(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterFixedLabel_ReadAttributeLabelList(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_FixedLabel_LabelList(device, ZCLendpoint, ZCLgroupid) - - def ClusterFixedLabel_ReadAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_FixedLabel_ClusterRevision(device, ZCLendpoint, ZCLgroupid) - - def ClusterFixedLabel_SubscribeAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_FixedLabel_ClusterRevision(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterFlowMeasurement_ReadAttributeMeasuredValue(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_FlowMeasurement_MeasuredValue(device, ZCLendpoint, ZCLgroupid) - - def ClusterFlowMeasurement_SubscribeAttributeMeasuredValue(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_FlowMeasurement_MeasuredValue(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterFlowMeasurement_ReadAttributeMinMeasuredValue(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_FlowMeasurement_MinMeasuredValue(device, ZCLendpoint, ZCLgroupid) - - def ClusterFlowMeasurement_SubscribeAttributeMinMeasuredValue(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_FlowMeasurement_MinMeasuredValue(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterFlowMeasurement_ReadAttributeMaxMeasuredValue(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_FlowMeasurement_MaxMeasuredValue(device, ZCLendpoint, ZCLgroupid) - - def ClusterFlowMeasurement_SubscribeAttributeMaxMeasuredValue(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_FlowMeasurement_MaxMeasuredValue(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterFlowMeasurement_ReadAttributeTolerance(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_FlowMeasurement_Tolerance(device, ZCLendpoint, ZCLgroupid) - - def ClusterFlowMeasurement_SubscribeAttributeTolerance(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_FlowMeasurement_Tolerance(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterFlowMeasurement_ReadAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_FlowMeasurement_ClusterRevision(device, ZCLendpoint, ZCLgroupid) - - def ClusterFlowMeasurement_SubscribeAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_FlowMeasurement_ClusterRevision(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterGeneralCommissioning_ReadAttributeBreadcrumb(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_GeneralCommissioning_Breadcrumb(device, ZCLendpoint, ZCLgroupid) - - def ClusterGeneralCommissioning_SubscribeAttributeBreadcrumb(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_GeneralCommissioning_Breadcrumb(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterGeneralCommissioning_ReadAttributeBasicCommissioningInfoList(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_GeneralCommissioning_BasicCommissioningInfoList(device, ZCLendpoint, ZCLgroupid) - - def ClusterGeneralCommissioning_ReadAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_GeneralCommissioning_ClusterRevision(device, ZCLendpoint, ZCLgroupid) - - def ClusterGeneralCommissioning_SubscribeAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_GeneralCommissioning_ClusterRevision(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterGeneralDiagnostics_ReadAttributeNetworkInterfaces(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_GeneralDiagnostics_NetworkInterfaces(device, ZCLendpoint, ZCLgroupid) - - def ClusterGeneralDiagnostics_ReadAttributeRebootCount(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_GeneralDiagnostics_RebootCount(device, ZCLendpoint, ZCLgroupid) - - def ClusterGeneralDiagnostics_SubscribeAttributeRebootCount(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_GeneralDiagnostics_RebootCount(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterGeneralDiagnostics_ReadAttributeUpTime(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_GeneralDiagnostics_UpTime(device, ZCLendpoint, ZCLgroupid) - - def ClusterGeneralDiagnostics_SubscribeAttributeUpTime(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_GeneralDiagnostics_UpTime(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterGeneralDiagnostics_ReadAttributeTotalOperationalHours(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_GeneralDiagnostics_TotalOperationalHours(device, ZCLendpoint, ZCLgroupid) - - def ClusterGeneralDiagnostics_SubscribeAttributeTotalOperationalHours(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_GeneralDiagnostics_TotalOperationalHours(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterGeneralDiagnostics_ReadAttributeBootReasons(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_GeneralDiagnostics_BootReasons(device, ZCLendpoint, ZCLgroupid) - - def ClusterGeneralDiagnostics_SubscribeAttributeBootReasons(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_GeneralDiagnostics_BootReasons(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterGeneralDiagnostics_ReadAttributeActiveHardwareFaults(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_GeneralDiagnostics_ActiveHardwareFaults(device, ZCLendpoint, ZCLgroupid) - - def ClusterGeneralDiagnostics_ReadAttributeActiveRadioFaults(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_GeneralDiagnostics_ActiveRadioFaults(device, ZCLendpoint, ZCLgroupid) - - def ClusterGeneralDiagnostics_ReadAttributeActiveNetworkFaults(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_GeneralDiagnostics_ActiveNetworkFaults(device, ZCLendpoint, ZCLgroupid) - - def ClusterGeneralDiagnostics_ReadAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_GeneralDiagnostics_ClusterRevision(device, ZCLendpoint, ZCLgroupid) - - def ClusterGeneralDiagnostics_SubscribeAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_GeneralDiagnostics_ClusterRevision(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterGroupKeyManagement_ReadAttributeGroups(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_GroupKeyManagement_Groups(device, ZCLendpoint, ZCLgroupid) - - def ClusterGroupKeyManagement_ReadAttributeGroupKeys(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_GroupKeyManagement_GroupKeys(device, ZCLendpoint, ZCLgroupid) - - def ClusterGroupKeyManagement_ReadAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_GroupKeyManagement_ClusterRevision(device, ZCLendpoint, ZCLgroupid) - - def ClusterGroupKeyManagement_SubscribeAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_GroupKeyManagement_ClusterRevision(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterGroups_ReadAttributeNameSupport(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_Groups_NameSupport(device, ZCLendpoint, ZCLgroupid) - - def ClusterGroups_SubscribeAttributeNameSupport(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_Groups_NameSupport(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterGroups_ReadAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_Groups_ClusterRevision(device, ZCLendpoint, ZCLgroupid) - - def ClusterGroups_SubscribeAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_Groups_ClusterRevision(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterIdentify_ReadAttributeIdentifyTime(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_Identify_IdentifyTime(device, ZCLendpoint, ZCLgroupid) - - def ClusterIdentify_SubscribeAttributeIdentifyTime(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_Identify_IdentifyTime(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterIdentify_ReadAttributeIdentifyType(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_Identify_IdentifyType(device, ZCLendpoint, ZCLgroupid) - - def ClusterIdentify_SubscribeAttributeIdentifyType(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_Identify_IdentifyType(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterIdentify_ReadAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_Identify_ClusterRevision(device, ZCLendpoint, ZCLgroupid) - - def ClusterIdentify_SubscribeAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_Identify_ClusterRevision(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterIlluminanceMeasurement_ReadAttributeMeasuredValue(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_IlluminanceMeasurement_MeasuredValue(device, ZCLendpoint, ZCLgroupid) - - def ClusterIlluminanceMeasurement_SubscribeAttributeMeasuredValue(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_IlluminanceMeasurement_MeasuredValue(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterIlluminanceMeasurement_ReadAttributeMinMeasuredValue(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_IlluminanceMeasurement_MinMeasuredValue(device, ZCLendpoint, ZCLgroupid) - - def ClusterIlluminanceMeasurement_SubscribeAttributeMinMeasuredValue(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_IlluminanceMeasurement_MinMeasuredValue(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterIlluminanceMeasurement_ReadAttributeMaxMeasuredValue(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_IlluminanceMeasurement_MaxMeasuredValue(device, ZCLendpoint, ZCLgroupid) - - def ClusterIlluminanceMeasurement_SubscribeAttributeMaxMeasuredValue(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_IlluminanceMeasurement_MaxMeasuredValue(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterIlluminanceMeasurement_ReadAttributeTolerance(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_IlluminanceMeasurement_Tolerance(device, ZCLendpoint, ZCLgroupid) - - def ClusterIlluminanceMeasurement_SubscribeAttributeTolerance(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_IlluminanceMeasurement_Tolerance(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterIlluminanceMeasurement_ReadAttributeLightSensorType(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_IlluminanceMeasurement_LightSensorType(device, ZCLendpoint, ZCLgroupid) - - def ClusterIlluminanceMeasurement_SubscribeAttributeLightSensorType(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_IlluminanceMeasurement_LightSensorType(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterIlluminanceMeasurement_ReadAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_IlluminanceMeasurement_ClusterRevision(device, ZCLendpoint, ZCLgroupid) - - def ClusterIlluminanceMeasurement_SubscribeAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_IlluminanceMeasurement_ClusterRevision(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterKeypadInput_ReadAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_KeypadInput_ClusterRevision(device, ZCLendpoint, ZCLgroupid) - - def ClusterKeypadInput_SubscribeAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_KeypadInput_ClusterRevision(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterLevelControl_ReadAttributeCurrentLevel(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_LevelControl_CurrentLevel(device, ZCLendpoint, ZCLgroupid) - - def ClusterLevelControl_SubscribeAttributeCurrentLevel(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_LevelControl_CurrentLevel(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterLevelControl_ReadAttributeRemainingTime(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_LevelControl_RemainingTime(device, ZCLendpoint, ZCLgroupid) - - def ClusterLevelControl_SubscribeAttributeRemainingTime(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_LevelControl_RemainingTime(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterLevelControl_ReadAttributeMinLevel(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_LevelControl_MinLevel(device, ZCLendpoint, ZCLgroupid) - - def ClusterLevelControl_SubscribeAttributeMinLevel(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_LevelControl_MinLevel(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterLevelControl_ReadAttributeMaxLevel(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_LevelControl_MaxLevel(device, ZCLendpoint, ZCLgroupid) - - def ClusterLevelControl_SubscribeAttributeMaxLevel(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_LevelControl_MaxLevel(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterLevelControl_ReadAttributeCurrentFrequency(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_LevelControl_CurrentFrequency(device, ZCLendpoint, ZCLgroupid) - - def ClusterLevelControl_SubscribeAttributeCurrentFrequency(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_LevelControl_CurrentFrequency(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterLevelControl_ReadAttributeMinFrequency(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_LevelControl_MinFrequency(device, ZCLendpoint, ZCLgroupid) - - def ClusterLevelControl_SubscribeAttributeMinFrequency(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_LevelControl_MinFrequency(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterLevelControl_ReadAttributeMaxFrequency(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_LevelControl_MaxFrequency(device, ZCLendpoint, ZCLgroupid) - - def ClusterLevelControl_SubscribeAttributeMaxFrequency(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_LevelControl_MaxFrequency(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterLevelControl_ReadAttributeOptions(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_LevelControl_Options(device, ZCLendpoint, ZCLgroupid) - - def ClusterLevelControl_SubscribeAttributeOptions(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_LevelControl_Options(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterLevelControl_ReadAttributeOnOffTransitionTime(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_LevelControl_OnOffTransitionTime(device, ZCLendpoint, ZCLgroupid) - - def ClusterLevelControl_SubscribeAttributeOnOffTransitionTime(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_LevelControl_OnOffTransitionTime(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterLevelControl_ReadAttributeOnLevel(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_LevelControl_OnLevel(device, ZCLendpoint, ZCLgroupid) - - def ClusterLevelControl_SubscribeAttributeOnLevel(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_LevelControl_OnLevel(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterLevelControl_ReadAttributeOnTransitionTime(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_LevelControl_OnTransitionTime(device, ZCLendpoint, ZCLgroupid) - - def ClusterLevelControl_SubscribeAttributeOnTransitionTime(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_LevelControl_OnTransitionTime(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterLevelControl_ReadAttributeOffTransitionTime(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_LevelControl_OffTransitionTime(device, ZCLendpoint, ZCLgroupid) - - def ClusterLevelControl_SubscribeAttributeOffTransitionTime(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_LevelControl_OffTransitionTime(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterLevelControl_ReadAttributeDefaultMoveRate(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_LevelControl_DefaultMoveRate(device, ZCLendpoint, ZCLgroupid) - - def ClusterLevelControl_SubscribeAttributeDefaultMoveRate(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_LevelControl_DefaultMoveRate(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterLevelControl_ReadAttributeStartUpCurrentLevel(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_LevelControl_StartUpCurrentLevel(device, ZCLendpoint, ZCLgroupid) - - def ClusterLevelControl_SubscribeAttributeStartUpCurrentLevel(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_LevelControl_StartUpCurrentLevel(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterLevelControl_ReadAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_LevelControl_ClusterRevision(device, ZCLendpoint, ZCLgroupid) - - def ClusterLevelControl_SubscribeAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_LevelControl_ClusterRevision(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterLowPower_ReadAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_LowPower_ClusterRevision(device, ZCLendpoint, ZCLgroupid) - - def ClusterLowPower_SubscribeAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_LowPower_ClusterRevision(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterMediaInput_ReadAttributeMediaInputList(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_MediaInput_MediaInputList(device, ZCLendpoint, ZCLgroupid) - - def ClusterMediaInput_ReadAttributeCurrentMediaInput(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_MediaInput_CurrentMediaInput(device, ZCLendpoint, ZCLgroupid) - - def ClusterMediaInput_SubscribeAttributeCurrentMediaInput(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_MediaInput_CurrentMediaInput(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterMediaInput_ReadAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_MediaInput_ClusterRevision(device, ZCLendpoint, ZCLgroupid) - - def ClusterMediaInput_SubscribeAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_MediaInput_ClusterRevision(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterMediaPlayback_ReadAttributePlaybackState(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_MediaPlayback_PlaybackState(device, ZCLendpoint, ZCLgroupid) - - def ClusterMediaPlayback_SubscribeAttributePlaybackState(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_MediaPlayback_PlaybackState(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterMediaPlayback_ReadAttributeStartTime(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_MediaPlayback_StartTime(device, ZCLendpoint, ZCLgroupid) - - def ClusterMediaPlayback_SubscribeAttributeStartTime(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_MediaPlayback_StartTime(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterMediaPlayback_ReadAttributeDuration(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_MediaPlayback_Duration(device, ZCLendpoint, ZCLgroupid) - - def ClusterMediaPlayback_SubscribeAttributeDuration(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_MediaPlayback_Duration(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterMediaPlayback_ReadAttributePositionUpdatedAt(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_MediaPlayback_PositionUpdatedAt(device, ZCLendpoint, ZCLgroupid) - - def ClusterMediaPlayback_SubscribeAttributePositionUpdatedAt(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_MediaPlayback_PositionUpdatedAt(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterMediaPlayback_ReadAttributePosition(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_MediaPlayback_Position(device, ZCLendpoint, ZCLgroupid) - - def ClusterMediaPlayback_SubscribeAttributePosition(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_MediaPlayback_Position(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterMediaPlayback_ReadAttributePlaybackSpeed(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_MediaPlayback_PlaybackSpeed(device, ZCLendpoint, ZCLgroupid) - - def ClusterMediaPlayback_SubscribeAttributePlaybackSpeed(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_MediaPlayback_PlaybackSpeed(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterMediaPlayback_ReadAttributeSeekRangeEnd(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_MediaPlayback_SeekRangeEnd(device, ZCLendpoint, ZCLgroupid) - - def ClusterMediaPlayback_SubscribeAttributeSeekRangeEnd(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_MediaPlayback_SeekRangeEnd(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterMediaPlayback_ReadAttributeSeekRangeStart(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_MediaPlayback_SeekRangeStart(device, ZCLendpoint, ZCLgroupid) - - def ClusterMediaPlayback_SubscribeAttributeSeekRangeStart(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_MediaPlayback_SeekRangeStart(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterMediaPlayback_ReadAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_MediaPlayback_ClusterRevision(device, ZCLendpoint, ZCLgroupid) - - def ClusterMediaPlayback_SubscribeAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_MediaPlayback_ClusterRevision(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterModeSelect_ReadAttributeCurrentMode(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ModeSelect_CurrentMode(device, ZCLendpoint, ZCLgroupid) - - def ClusterModeSelect_SubscribeAttributeCurrentMode(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ModeSelect_CurrentMode(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterModeSelect_ReadAttributeSupportedModes(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ModeSelect_SupportedModes(device, ZCLendpoint, ZCLgroupid) - - def ClusterModeSelect_ReadAttributeOnMode(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ModeSelect_OnMode(device, ZCLendpoint, ZCLgroupid) - - def ClusterModeSelect_SubscribeAttributeOnMode(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ModeSelect_OnMode(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterModeSelect_ReadAttributeStartUpMode(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ModeSelect_StartUpMode(device, ZCLendpoint, ZCLgroupid) - - def ClusterModeSelect_SubscribeAttributeStartUpMode(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ModeSelect_StartUpMode(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterModeSelect_ReadAttributeDescription(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ModeSelect_Description(device, ZCLendpoint, ZCLgroupid) - - def ClusterModeSelect_SubscribeAttributeDescription(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ModeSelect_Description(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterModeSelect_ReadAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ModeSelect_ClusterRevision(device, ZCLendpoint, ZCLgroupid) - - def ClusterModeSelect_SubscribeAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ModeSelect_ClusterRevision(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterNetworkCommissioning_ReadAttributeFeatureMap(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_NetworkCommissioning_FeatureMap(device, ZCLendpoint, ZCLgroupid) - - def ClusterNetworkCommissioning_SubscribeAttributeFeatureMap(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_NetworkCommissioning_FeatureMap(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterNetworkCommissioning_ReadAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_NetworkCommissioning_ClusterRevision(device, ZCLendpoint, ZCLgroupid) - - def ClusterNetworkCommissioning_SubscribeAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_NetworkCommissioning_ClusterRevision(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterOtaSoftwareUpdateProvider_ReadAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_OtaSoftwareUpdateProvider_ClusterRevision(device, ZCLendpoint, ZCLgroupid) - - def ClusterOtaSoftwareUpdateProvider_SubscribeAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_OtaSoftwareUpdateProvider_ClusterRevision(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterOtaSoftwareUpdateRequestor_ReadAttributeDefaultOtaProvider(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_OtaSoftwareUpdateRequestor_DefaultOtaProvider(device, ZCLendpoint, ZCLgroupid) - - def ClusterOtaSoftwareUpdateRequestor_SubscribeAttributeDefaultOtaProvider(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_OtaSoftwareUpdateRequestor_DefaultOtaProvider(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterOtaSoftwareUpdateRequestor_ReadAttributeUpdatePossible(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_OtaSoftwareUpdateRequestor_UpdatePossible(device, ZCLendpoint, ZCLgroupid) - - def ClusterOtaSoftwareUpdateRequestor_SubscribeAttributeUpdatePossible(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_OtaSoftwareUpdateRequestor_UpdatePossible(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterOtaSoftwareUpdateRequestor_ReadAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_OtaSoftwareUpdateRequestor_ClusterRevision(device, ZCLendpoint, ZCLgroupid) - - def ClusterOtaSoftwareUpdateRequestor_SubscribeAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_OtaSoftwareUpdateRequestor_ClusterRevision(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterOccupancySensing_ReadAttributeOccupancy(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_OccupancySensing_Occupancy(device, ZCLendpoint, ZCLgroupid) - - def ClusterOccupancySensing_SubscribeAttributeOccupancy(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_OccupancySensing_Occupancy(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterOccupancySensing_ReadAttributeOccupancySensorType(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_OccupancySensing_OccupancySensorType(device, ZCLendpoint, ZCLgroupid) - - def ClusterOccupancySensing_SubscribeAttributeOccupancySensorType(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_OccupancySensing_OccupancySensorType(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterOccupancySensing_ReadAttributeOccupancySensorTypeBitmap(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_OccupancySensing_OccupancySensorTypeBitmap(device, ZCLendpoint, ZCLgroupid) - - def ClusterOccupancySensing_SubscribeAttributeOccupancySensorTypeBitmap(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_OccupancySensing_OccupancySensorTypeBitmap(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterOccupancySensing_ReadAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_OccupancySensing_ClusterRevision(device, ZCLendpoint, ZCLgroupid) - - def ClusterOccupancySensing_SubscribeAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_OccupancySensing_ClusterRevision(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterOnOff_ReadAttributeOnOff(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_OnOff_OnOff(device, ZCLendpoint, ZCLgroupid) - - def ClusterOnOff_SubscribeAttributeOnOff(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_OnOff_OnOff(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterOnOff_ReadAttributeGlobalSceneControl(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_OnOff_GlobalSceneControl(device, ZCLendpoint, ZCLgroupid) - - def ClusterOnOff_SubscribeAttributeGlobalSceneControl(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_OnOff_GlobalSceneControl(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterOnOff_ReadAttributeOnTime(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_OnOff_OnTime(device, ZCLendpoint, ZCLgroupid) - - def ClusterOnOff_SubscribeAttributeOnTime(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_OnOff_OnTime(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterOnOff_ReadAttributeOffWaitTime(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_OnOff_OffWaitTime(device, ZCLendpoint, ZCLgroupid) - - def ClusterOnOff_SubscribeAttributeOffWaitTime(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_OnOff_OffWaitTime(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterOnOff_ReadAttributeStartUpOnOff(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_OnOff_StartUpOnOff(device, ZCLendpoint, ZCLgroupid) - - def ClusterOnOff_SubscribeAttributeStartUpOnOff(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_OnOff_StartUpOnOff(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterOnOff_ReadAttributeFeatureMap(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_OnOff_FeatureMap(device, ZCLendpoint, ZCLgroupid) - - def ClusterOnOff_SubscribeAttributeFeatureMap(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_OnOff_FeatureMap(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterOnOff_ReadAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_OnOff_ClusterRevision(device, ZCLendpoint, ZCLgroupid) - - def ClusterOnOff_SubscribeAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_OnOff_ClusterRevision(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterOnOffSwitchConfiguration_ReadAttributeSwitchType(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_OnOffSwitchConfiguration_SwitchType(device, ZCLendpoint, ZCLgroupid) - - def ClusterOnOffSwitchConfiguration_SubscribeAttributeSwitchType(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_OnOffSwitchConfiguration_SwitchType(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterOnOffSwitchConfiguration_ReadAttributeSwitchActions(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_OnOffSwitchConfiguration_SwitchActions(device, ZCLendpoint, ZCLgroupid) - - def ClusterOnOffSwitchConfiguration_SubscribeAttributeSwitchActions(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_OnOffSwitchConfiguration_SwitchActions(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterOnOffSwitchConfiguration_ReadAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_OnOffSwitchConfiguration_ClusterRevision(device, ZCLendpoint, ZCLgroupid) - - def ClusterOnOffSwitchConfiguration_SubscribeAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_OnOffSwitchConfiguration_ClusterRevision(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterOperationalCredentials_ReadAttributeFabricsList(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_OperationalCredentials_FabricsList(device, ZCLendpoint, ZCLgroupid) - - def ClusterOperationalCredentials_ReadAttributeSupportedFabrics(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_OperationalCredentials_SupportedFabrics(device, ZCLendpoint, ZCLgroupid) - - def ClusterOperationalCredentials_SubscribeAttributeSupportedFabrics(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_OperationalCredentials_SupportedFabrics(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterOperationalCredentials_ReadAttributeCommissionedFabrics(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_OperationalCredentials_CommissionedFabrics(device, ZCLendpoint, ZCLgroupid) - - def ClusterOperationalCredentials_SubscribeAttributeCommissionedFabrics(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_OperationalCredentials_CommissionedFabrics(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterOperationalCredentials_ReadAttributeTrustedRootCertificates(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_OperationalCredentials_TrustedRootCertificates(device, ZCLendpoint, ZCLgroupid) - - def ClusterOperationalCredentials_ReadAttributeCurrentFabricIndex(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_OperationalCredentials_CurrentFabricIndex(device, ZCLendpoint, ZCLgroupid) - - def ClusterOperationalCredentials_SubscribeAttributeCurrentFabricIndex(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_OperationalCredentials_CurrentFabricIndex(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterOperationalCredentials_ReadAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_OperationalCredentials_ClusterRevision(device, ZCLendpoint, ZCLgroupid) - - def ClusterOperationalCredentials_SubscribeAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_OperationalCredentials_ClusterRevision(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterPowerSource_ReadAttributeStatus(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_PowerSource_Status(device, ZCLendpoint, ZCLgroupid) - - def ClusterPowerSource_SubscribeAttributeStatus(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_PowerSource_Status(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterPowerSource_ReadAttributeOrder(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_PowerSource_Order(device, ZCLendpoint, ZCLgroupid) - - def ClusterPowerSource_SubscribeAttributeOrder(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_PowerSource_Order(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterPowerSource_ReadAttributeDescription(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_PowerSource_Description(device, ZCLendpoint, ZCLgroupid) - - def ClusterPowerSource_SubscribeAttributeDescription(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_PowerSource_Description(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterPowerSource_ReadAttributeBatteryVoltage(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_PowerSource_BatteryVoltage(device, ZCLendpoint, ZCLgroupid) - - def ClusterPowerSource_SubscribeAttributeBatteryVoltage(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_PowerSource_BatteryVoltage(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterPowerSource_ReadAttributeBatteryPercentRemaining(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_PowerSource_BatteryPercentRemaining(device, ZCLendpoint, ZCLgroupid) - - def ClusterPowerSource_SubscribeAttributeBatteryPercentRemaining(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_PowerSource_BatteryPercentRemaining(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterPowerSource_ReadAttributeBatteryTimeRemaining(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_PowerSource_BatteryTimeRemaining(device, ZCLendpoint, ZCLgroupid) - - def ClusterPowerSource_SubscribeAttributeBatteryTimeRemaining(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_PowerSource_BatteryTimeRemaining(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterPowerSource_ReadAttributeBatteryChargeLevel(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_PowerSource_BatteryChargeLevel(device, ZCLendpoint, ZCLgroupid) - - def ClusterPowerSource_SubscribeAttributeBatteryChargeLevel(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_PowerSource_BatteryChargeLevel(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterPowerSource_ReadAttributeActiveBatteryFaults(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_PowerSource_ActiveBatteryFaults(device, ZCLendpoint, ZCLgroupid) - - def ClusterPowerSource_ReadAttributeBatteryChargeState(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_PowerSource_BatteryChargeState(device, ZCLendpoint, ZCLgroupid) - - def ClusterPowerSource_SubscribeAttributeBatteryChargeState(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_PowerSource_BatteryChargeState(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterPowerSource_ReadAttributeFeatureMap(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_PowerSource_FeatureMap(device, ZCLendpoint, ZCLgroupid) - - def ClusterPowerSource_SubscribeAttributeFeatureMap(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_PowerSource_FeatureMap(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterPowerSource_ReadAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_PowerSource_ClusterRevision(device, ZCLendpoint, ZCLgroupid) - - def ClusterPowerSource_SubscribeAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_PowerSource_ClusterRevision(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterPressureMeasurement_ReadAttributeMeasuredValue(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_PressureMeasurement_MeasuredValue(device, ZCLendpoint, ZCLgroupid) - - def ClusterPressureMeasurement_SubscribeAttributeMeasuredValue(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_PressureMeasurement_MeasuredValue(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterPressureMeasurement_ReadAttributeMinMeasuredValue(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_PressureMeasurement_MinMeasuredValue(device, ZCLendpoint, ZCLgroupid) - - def ClusterPressureMeasurement_SubscribeAttributeMinMeasuredValue(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_PressureMeasurement_MinMeasuredValue(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterPressureMeasurement_ReadAttributeMaxMeasuredValue(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_PressureMeasurement_MaxMeasuredValue(device, ZCLendpoint, ZCLgroupid) - - def ClusterPressureMeasurement_SubscribeAttributeMaxMeasuredValue(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_PressureMeasurement_MaxMeasuredValue(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterPressureMeasurement_ReadAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_PressureMeasurement_ClusterRevision(device, ZCLendpoint, ZCLgroupid) - - def ClusterPressureMeasurement_SubscribeAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_PressureMeasurement_ClusterRevision(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterPumpConfigurationAndControl_ReadAttributeMaxPressure(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_MaxPressure(device, ZCLendpoint, ZCLgroupid) - - def ClusterPumpConfigurationAndControl_SubscribeAttributeMaxPressure(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_MaxPressure(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterPumpConfigurationAndControl_ReadAttributeMaxSpeed(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_MaxSpeed(device, ZCLendpoint, ZCLgroupid) - - def ClusterPumpConfigurationAndControl_SubscribeAttributeMaxSpeed(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_MaxSpeed(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterPumpConfigurationAndControl_ReadAttributeMaxFlow(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_MaxFlow(device, ZCLendpoint, ZCLgroupid) - - def ClusterPumpConfigurationAndControl_SubscribeAttributeMaxFlow(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_MaxFlow(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterPumpConfigurationAndControl_ReadAttributeMinConstPressure(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_MinConstPressure(device, ZCLendpoint, ZCLgroupid) - - def ClusterPumpConfigurationAndControl_SubscribeAttributeMinConstPressure(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_MinConstPressure(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterPumpConfigurationAndControl_ReadAttributeMaxConstPressure(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_MaxConstPressure(device, ZCLendpoint, ZCLgroupid) - - def ClusterPumpConfigurationAndControl_SubscribeAttributeMaxConstPressure(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_MaxConstPressure(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterPumpConfigurationAndControl_ReadAttributeMinCompPressure(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_MinCompPressure(device, ZCLendpoint, ZCLgroupid) - - def ClusterPumpConfigurationAndControl_SubscribeAttributeMinCompPressure(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_MinCompPressure(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterPumpConfigurationAndControl_ReadAttributeMaxCompPressure(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_MaxCompPressure(device, ZCLendpoint, ZCLgroupid) - - def ClusterPumpConfigurationAndControl_SubscribeAttributeMaxCompPressure(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_MaxCompPressure(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterPumpConfigurationAndControl_ReadAttributeMinConstSpeed(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_MinConstSpeed(device, ZCLendpoint, ZCLgroupid) - - def ClusterPumpConfigurationAndControl_SubscribeAttributeMinConstSpeed(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_MinConstSpeed(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterPumpConfigurationAndControl_ReadAttributeMaxConstSpeed(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_MaxConstSpeed(device, ZCLendpoint, ZCLgroupid) - - def ClusterPumpConfigurationAndControl_SubscribeAttributeMaxConstSpeed(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_MaxConstSpeed(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterPumpConfigurationAndControl_ReadAttributeMinConstFlow(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_MinConstFlow(device, ZCLendpoint, ZCLgroupid) - - def ClusterPumpConfigurationAndControl_SubscribeAttributeMinConstFlow(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_MinConstFlow(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterPumpConfigurationAndControl_ReadAttributeMaxConstFlow(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_MaxConstFlow(device, ZCLendpoint, ZCLgroupid) - - def ClusterPumpConfigurationAndControl_SubscribeAttributeMaxConstFlow(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_MaxConstFlow(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterPumpConfigurationAndControl_ReadAttributeMinConstTemp(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_MinConstTemp(device, ZCLendpoint, ZCLgroupid) - - def ClusterPumpConfigurationAndControl_SubscribeAttributeMinConstTemp(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_MinConstTemp(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterPumpConfigurationAndControl_ReadAttributeMaxConstTemp(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_MaxConstTemp(device, ZCLendpoint, ZCLgroupid) - - def ClusterPumpConfigurationAndControl_SubscribeAttributeMaxConstTemp(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_MaxConstTemp(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterPumpConfigurationAndControl_ReadAttributePumpStatus(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_PumpStatus(device, ZCLendpoint, ZCLgroupid) - - def ClusterPumpConfigurationAndControl_SubscribeAttributePumpStatus(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_PumpStatus(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterPumpConfigurationAndControl_ReadAttributeEffectiveOperationMode(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_EffectiveOperationMode(device, ZCLendpoint, ZCLgroupid) - - def ClusterPumpConfigurationAndControl_SubscribeAttributeEffectiveOperationMode(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_EffectiveOperationMode(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterPumpConfigurationAndControl_ReadAttributeEffectiveControlMode(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_EffectiveControlMode(device, ZCLendpoint, ZCLgroupid) - - def ClusterPumpConfigurationAndControl_SubscribeAttributeEffectiveControlMode(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_EffectiveControlMode(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterPumpConfigurationAndControl_ReadAttributeCapacity(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_Capacity(device, ZCLendpoint, ZCLgroupid) - - def ClusterPumpConfigurationAndControl_SubscribeAttributeCapacity(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_Capacity(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterPumpConfigurationAndControl_ReadAttributeSpeed(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_Speed(device, ZCLendpoint, ZCLgroupid) - - def ClusterPumpConfigurationAndControl_SubscribeAttributeSpeed(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_Speed(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterPumpConfigurationAndControl_ReadAttributeLifetimeRunningHours(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_LifetimeRunningHours(device, ZCLendpoint, ZCLgroupid) - - def ClusterPumpConfigurationAndControl_SubscribeAttributeLifetimeRunningHours(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_LifetimeRunningHours(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterPumpConfigurationAndControl_ReadAttributePower(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_Power(device, ZCLendpoint, ZCLgroupid) - - def ClusterPumpConfigurationAndControl_SubscribeAttributePower(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_Power(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterPumpConfigurationAndControl_ReadAttributeLifetimeEnergyConsumed(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_LifetimeEnergyConsumed(device, ZCLendpoint, ZCLgroupid) - - def ClusterPumpConfigurationAndControl_SubscribeAttributeLifetimeEnergyConsumed(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_LifetimeEnergyConsumed(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterPumpConfigurationAndControl_ReadAttributeOperationMode(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_OperationMode(device, ZCLendpoint, ZCLgroupid) - - def ClusterPumpConfigurationAndControl_SubscribeAttributeOperationMode(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_OperationMode(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterPumpConfigurationAndControl_ReadAttributeControlMode(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_ControlMode(device, ZCLendpoint, ZCLgroupid) - - def ClusterPumpConfigurationAndControl_SubscribeAttributeControlMode(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_ControlMode(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterPumpConfigurationAndControl_ReadAttributeAlarmMask(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_AlarmMask(device, ZCLendpoint, ZCLgroupid) - - def ClusterPumpConfigurationAndControl_SubscribeAttributeAlarmMask(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_AlarmMask(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterPumpConfigurationAndControl_ReadAttributeFeatureMap(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_FeatureMap(device, ZCLendpoint, ZCLgroupid) - - def ClusterPumpConfigurationAndControl_SubscribeAttributeFeatureMap(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_FeatureMap(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterPumpConfigurationAndControl_ReadAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_ClusterRevision(device, ZCLendpoint, ZCLgroupid) - - def ClusterPumpConfigurationAndControl_SubscribeAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_ClusterRevision(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterRelativeHumidityMeasurement_ReadAttributeMeasuredValue(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_RelativeHumidityMeasurement_MeasuredValue(device, ZCLendpoint, ZCLgroupid) - - def ClusterRelativeHumidityMeasurement_SubscribeAttributeMeasuredValue(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_RelativeHumidityMeasurement_MeasuredValue(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterRelativeHumidityMeasurement_ReadAttributeMinMeasuredValue(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_RelativeHumidityMeasurement_MinMeasuredValue(device, ZCLendpoint, ZCLgroupid) - - def ClusterRelativeHumidityMeasurement_SubscribeAttributeMinMeasuredValue(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_RelativeHumidityMeasurement_MinMeasuredValue(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterRelativeHumidityMeasurement_ReadAttributeMaxMeasuredValue(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_RelativeHumidityMeasurement_MaxMeasuredValue(device, ZCLendpoint, ZCLgroupid) - - def ClusterRelativeHumidityMeasurement_SubscribeAttributeMaxMeasuredValue(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_RelativeHumidityMeasurement_MaxMeasuredValue(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterRelativeHumidityMeasurement_ReadAttributeTolerance(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_RelativeHumidityMeasurement_Tolerance(device, ZCLendpoint, ZCLgroupid) - - def ClusterRelativeHumidityMeasurement_SubscribeAttributeTolerance(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_RelativeHumidityMeasurement_Tolerance(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterRelativeHumidityMeasurement_ReadAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_RelativeHumidityMeasurement_ClusterRevision(device, ZCLendpoint, ZCLgroupid) - - def ClusterRelativeHumidityMeasurement_SubscribeAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_RelativeHumidityMeasurement_ClusterRevision(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterScenes_ReadAttributeSceneCount(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_Scenes_SceneCount(device, ZCLendpoint, ZCLgroupid) - - def ClusterScenes_SubscribeAttributeSceneCount(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_Scenes_SceneCount(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterScenes_ReadAttributeCurrentScene(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_Scenes_CurrentScene(device, ZCLendpoint, ZCLgroupid) - - def ClusterScenes_SubscribeAttributeCurrentScene(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_Scenes_CurrentScene(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterScenes_ReadAttributeCurrentGroup(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_Scenes_CurrentGroup(device, ZCLendpoint, ZCLgroupid) - - def ClusterScenes_SubscribeAttributeCurrentGroup(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_Scenes_CurrentGroup(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterScenes_ReadAttributeSceneValid(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_Scenes_SceneValid(device, ZCLendpoint, ZCLgroupid) - - def ClusterScenes_SubscribeAttributeSceneValid(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_Scenes_SceneValid(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterScenes_ReadAttributeNameSupport(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_Scenes_NameSupport(device, ZCLendpoint, ZCLgroupid) - - def ClusterScenes_SubscribeAttributeNameSupport(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_Scenes_NameSupport(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterScenes_ReadAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_Scenes_ClusterRevision(device, ZCLendpoint, ZCLgroupid) - - def ClusterScenes_SubscribeAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_Scenes_ClusterRevision(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterSoftwareDiagnostics_ReadAttributeThreadMetrics(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_SoftwareDiagnostics_ThreadMetrics(device, ZCLendpoint, ZCLgroupid) - - def ClusterSoftwareDiagnostics_ReadAttributeCurrentHeapFree(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_SoftwareDiagnostics_CurrentHeapFree(device, ZCLendpoint, ZCLgroupid) - - def ClusterSoftwareDiagnostics_SubscribeAttributeCurrentHeapFree(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_SoftwareDiagnostics_CurrentHeapFree(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterSoftwareDiagnostics_ReadAttributeCurrentHeapUsed(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_SoftwareDiagnostics_CurrentHeapUsed(device, ZCLendpoint, ZCLgroupid) - - def ClusterSoftwareDiagnostics_SubscribeAttributeCurrentHeapUsed(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_SoftwareDiagnostics_CurrentHeapUsed(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterSoftwareDiagnostics_ReadAttributeCurrentHeapHighWatermark(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_SoftwareDiagnostics_CurrentHeapHighWatermark(device, ZCLendpoint, ZCLgroupid) - - def ClusterSoftwareDiagnostics_SubscribeAttributeCurrentHeapHighWatermark(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_SoftwareDiagnostics_CurrentHeapHighWatermark(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterSoftwareDiagnostics_ReadAttributeFeatureMap(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_SoftwareDiagnostics_FeatureMap(device, ZCLendpoint, ZCLgroupid) - - def ClusterSoftwareDiagnostics_ReadAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_SoftwareDiagnostics_ClusterRevision(device, ZCLendpoint, ZCLgroupid) - - def ClusterSoftwareDiagnostics_SubscribeAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_SoftwareDiagnostics_ClusterRevision(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterSwitch_ReadAttributeNumberOfPositions(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_Switch_NumberOfPositions(device, ZCLendpoint, ZCLgroupid) - - def ClusterSwitch_SubscribeAttributeNumberOfPositions(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_Switch_NumberOfPositions(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterSwitch_ReadAttributeCurrentPosition(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_Switch_CurrentPosition(device, ZCLendpoint, ZCLgroupid) - - def ClusterSwitch_SubscribeAttributeCurrentPosition(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_Switch_CurrentPosition(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterSwitch_ReadAttributeMultiPressMax(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_Switch_MultiPressMax(device, ZCLendpoint, ZCLgroupid) - - def ClusterSwitch_SubscribeAttributeMultiPressMax(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_Switch_MultiPressMax(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterSwitch_ReadAttributeFeatureMap(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_Switch_FeatureMap(device, ZCLendpoint, ZCLgroupid) - - def ClusterSwitch_SubscribeAttributeFeatureMap(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_Switch_FeatureMap(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterSwitch_ReadAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_Switch_ClusterRevision(device, ZCLendpoint, ZCLgroupid) - - def ClusterSwitch_SubscribeAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_Switch_ClusterRevision(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterTvChannel_ReadAttributeTvChannelList(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_TvChannel_TvChannelList(device, ZCLendpoint, ZCLgroupid) - - def ClusterTvChannel_ReadAttributeTvChannelLineup(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_TvChannel_TvChannelLineup(device, ZCLendpoint, ZCLgroupid) - - def ClusterTvChannel_SubscribeAttributeTvChannelLineup(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_TvChannel_TvChannelLineup(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterTvChannel_ReadAttributeCurrentTvChannel(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_TvChannel_CurrentTvChannel(device, ZCLendpoint, ZCLgroupid) - - def ClusterTvChannel_SubscribeAttributeCurrentTvChannel(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_TvChannel_CurrentTvChannel(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterTvChannel_ReadAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_TvChannel_ClusterRevision(device, ZCLendpoint, ZCLgroupid) - - def ClusterTvChannel_SubscribeAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_TvChannel_ClusterRevision(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterTargetNavigator_ReadAttributeTargetNavigatorList(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_TargetNavigator_TargetNavigatorList(device, ZCLendpoint, ZCLgroupid) - - def ClusterTargetNavigator_ReadAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_TargetNavigator_ClusterRevision(device, ZCLendpoint, ZCLgroupid) - - def ClusterTargetNavigator_SubscribeAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_TargetNavigator_ClusterRevision(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterTemperatureMeasurement_ReadAttributeMeasuredValue(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_TemperatureMeasurement_MeasuredValue(device, ZCLendpoint, ZCLgroupid) - - def ClusterTemperatureMeasurement_SubscribeAttributeMeasuredValue(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_TemperatureMeasurement_MeasuredValue(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterTemperatureMeasurement_ReadAttributeMinMeasuredValue(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_TemperatureMeasurement_MinMeasuredValue(device, ZCLendpoint, ZCLgroupid) - - def ClusterTemperatureMeasurement_SubscribeAttributeMinMeasuredValue(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_TemperatureMeasurement_MinMeasuredValue(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterTemperatureMeasurement_ReadAttributeMaxMeasuredValue(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_TemperatureMeasurement_MaxMeasuredValue(device, ZCLendpoint, ZCLgroupid) - - def ClusterTemperatureMeasurement_SubscribeAttributeMaxMeasuredValue(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_TemperatureMeasurement_MaxMeasuredValue(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterTemperatureMeasurement_ReadAttributeTolerance(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_TemperatureMeasurement_Tolerance(device, ZCLendpoint, ZCLgroupid) - - def ClusterTemperatureMeasurement_SubscribeAttributeTolerance(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_TemperatureMeasurement_Tolerance(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterTemperatureMeasurement_ReadAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_TemperatureMeasurement_ClusterRevision(device, ZCLendpoint, ZCLgroupid) - - def ClusterTemperatureMeasurement_SubscribeAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_TemperatureMeasurement_ClusterRevision(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterTestCluster_ReadAttributeBoolean(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_TestCluster_Boolean(device, ZCLendpoint, ZCLgroupid) - - def ClusterTestCluster_SubscribeAttributeBoolean(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_TestCluster_Boolean(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterTestCluster_ReadAttributeBitmap8(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_TestCluster_Bitmap8(device, ZCLendpoint, ZCLgroupid) - - def ClusterTestCluster_SubscribeAttributeBitmap8(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_TestCluster_Bitmap8(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterTestCluster_ReadAttributeBitmap16(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_TestCluster_Bitmap16(device, ZCLendpoint, ZCLgroupid) - - def ClusterTestCluster_SubscribeAttributeBitmap16(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_TestCluster_Bitmap16(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterTestCluster_ReadAttributeBitmap32(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_TestCluster_Bitmap32(device, ZCLendpoint, ZCLgroupid) - - def ClusterTestCluster_SubscribeAttributeBitmap32(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_TestCluster_Bitmap32(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterTestCluster_ReadAttributeBitmap64(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_TestCluster_Bitmap64(device, ZCLendpoint, ZCLgroupid) - - def ClusterTestCluster_SubscribeAttributeBitmap64(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_TestCluster_Bitmap64(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterTestCluster_ReadAttributeInt8u(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_TestCluster_Int8u(device, ZCLendpoint, ZCLgroupid) - - def ClusterTestCluster_SubscribeAttributeInt8u(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_TestCluster_Int8u(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterTestCluster_ReadAttributeInt16u(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_TestCluster_Int16u(device, ZCLendpoint, ZCLgroupid) - - def ClusterTestCluster_SubscribeAttributeInt16u(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_TestCluster_Int16u(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterTestCluster_ReadAttributeInt32u(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_TestCluster_Int32u(device, ZCLendpoint, ZCLgroupid) - - def ClusterTestCluster_SubscribeAttributeInt32u(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_TestCluster_Int32u(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterTestCluster_ReadAttributeInt64u(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_TestCluster_Int64u(device, ZCLendpoint, ZCLgroupid) - - def ClusterTestCluster_SubscribeAttributeInt64u(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_TestCluster_Int64u(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterTestCluster_ReadAttributeInt8s(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_TestCluster_Int8s(device, ZCLendpoint, ZCLgroupid) - - def ClusterTestCluster_SubscribeAttributeInt8s(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_TestCluster_Int8s(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterTestCluster_ReadAttributeInt16s(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_TestCluster_Int16s(device, ZCLendpoint, ZCLgroupid) - - def ClusterTestCluster_SubscribeAttributeInt16s(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_TestCluster_Int16s(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterTestCluster_ReadAttributeInt32s(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_TestCluster_Int32s(device, ZCLendpoint, ZCLgroupid) - - def ClusterTestCluster_SubscribeAttributeInt32s(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_TestCluster_Int32s(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterTestCluster_ReadAttributeInt64s(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_TestCluster_Int64s(device, ZCLendpoint, ZCLgroupid) - - def ClusterTestCluster_SubscribeAttributeInt64s(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_TestCluster_Int64s(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterTestCluster_ReadAttributeEnum8(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_TestCluster_Enum8(device, ZCLendpoint, ZCLgroupid) - - def ClusterTestCluster_SubscribeAttributeEnum8(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_TestCluster_Enum8(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterTestCluster_ReadAttributeEnum16(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_TestCluster_Enum16(device, ZCLendpoint, ZCLgroupid) - - def ClusterTestCluster_SubscribeAttributeEnum16(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_TestCluster_Enum16(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterTestCluster_ReadAttributeOctetString(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_TestCluster_OctetString(device, ZCLendpoint, ZCLgroupid) - - def ClusterTestCluster_SubscribeAttributeOctetString(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_TestCluster_OctetString(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterTestCluster_ReadAttributeListInt8u(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_TestCluster_ListInt8u(device, ZCLendpoint, ZCLgroupid) - - def ClusterTestCluster_ReadAttributeListOctetString(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_TestCluster_ListOctetString(device, ZCLendpoint, ZCLgroupid) - - def ClusterTestCluster_ReadAttributeListStructOctetString(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_TestCluster_ListStructOctetString(device, ZCLendpoint, ZCLgroupid) - - def ClusterTestCluster_ReadAttributeLongOctetString(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_TestCluster_LongOctetString(device, ZCLendpoint, ZCLgroupid) - - def ClusterTestCluster_SubscribeAttributeLongOctetString(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_TestCluster_LongOctetString(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterTestCluster_ReadAttributeCharString(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_TestCluster_CharString(device, ZCLendpoint, ZCLgroupid) - - def ClusterTestCluster_SubscribeAttributeCharString(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_TestCluster_CharString(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterTestCluster_ReadAttributeLongCharString(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_TestCluster_LongCharString(device, ZCLendpoint, ZCLgroupid) - - def ClusterTestCluster_SubscribeAttributeLongCharString(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_TestCluster_LongCharString(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterTestCluster_ReadAttributeEpochUs(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_TestCluster_EpochUs(device, ZCLendpoint, ZCLgroupid) - - def ClusterTestCluster_SubscribeAttributeEpochUs(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_TestCluster_EpochUs(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterTestCluster_ReadAttributeEpochS(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_TestCluster_EpochS(device, ZCLendpoint, ZCLgroupid) - - def ClusterTestCluster_SubscribeAttributeEpochS(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_TestCluster_EpochS(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterTestCluster_ReadAttributeVendorId(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_TestCluster_VendorId(device, ZCLendpoint, ZCLgroupid) - - def ClusterTestCluster_SubscribeAttributeVendorId(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_TestCluster_VendorId(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterTestCluster_ReadAttributeListNullablesAndOptionalsStruct(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_TestCluster_ListNullablesAndOptionalsStruct(device, ZCLendpoint, ZCLgroupid) - - def ClusterTestCluster_ReadAttributeUnsupported(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_TestCluster_Unsupported(device, ZCLendpoint, ZCLgroupid) - - def ClusterTestCluster_SubscribeAttributeUnsupported(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_TestCluster_Unsupported(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterTestCluster_ReadAttributeNullableBoolean(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_TestCluster_NullableBoolean(device, ZCLendpoint, ZCLgroupid) - - def ClusterTestCluster_SubscribeAttributeNullableBoolean(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_TestCluster_NullableBoolean(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterTestCluster_ReadAttributeNullableBitmap8(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_TestCluster_NullableBitmap8(device, ZCLendpoint, ZCLgroupid) - - def ClusterTestCluster_SubscribeAttributeNullableBitmap8(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_TestCluster_NullableBitmap8(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterTestCluster_ReadAttributeNullableBitmap16(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_TestCluster_NullableBitmap16(device, ZCLendpoint, ZCLgroupid) - - def ClusterTestCluster_SubscribeAttributeNullableBitmap16(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_TestCluster_NullableBitmap16(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterTestCluster_ReadAttributeNullableBitmap32(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_TestCluster_NullableBitmap32(device, ZCLendpoint, ZCLgroupid) - - def ClusterTestCluster_SubscribeAttributeNullableBitmap32(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_TestCluster_NullableBitmap32(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterTestCluster_ReadAttributeNullableBitmap64(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_TestCluster_NullableBitmap64(device, ZCLendpoint, ZCLgroupid) - - def ClusterTestCluster_SubscribeAttributeNullableBitmap64(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_TestCluster_NullableBitmap64(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterTestCluster_ReadAttributeNullableInt8u(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_TestCluster_NullableInt8u(device, ZCLendpoint, ZCLgroupid) - - def ClusterTestCluster_SubscribeAttributeNullableInt8u(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_TestCluster_NullableInt8u(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterTestCluster_ReadAttributeNullableInt16u(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_TestCluster_NullableInt16u(device, ZCLendpoint, ZCLgroupid) - - def ClusterTestCluster_SubscribeAttributeNullableInt16u(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_TestCluster_NullableInt16u(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterTestCluster_ReadAttributeNullableInt32u(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_TestCluster_NullableInt32u(device, ZCLendpoint, ZCLgroupid) - - def ClusterTestCluster_SubscribeAttributeNullableInt32u(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_TestCluster_NullableInt32u(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterTestCluster_ReadAttributeNullableInt64u(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_TestCluster_NullableInt64u(device, ZCLendpoint, ZCLgroupid) - - def ClusterTestCluster_SubscribeAttributeNullableInt64u(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_TestCluster_NullableInt64u(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterTestCluster_ReadAttributeNullableInt8s(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_TestCluster_NullableInt8s(device, ZCLendpoint, ZCLgroupid) - - def ClusterTestCluster_SubscribeAttributeNullableInt8s(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_TestCluster_NullableInt8s(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterTestCluster_ReadAttributeNullableInt16s(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_TestCluster_NullableInt16s(device, ZCLendpoint, ZCLgroupid) - - def ClusterTestCluster_SubscribeAttributeNullableInt16s(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_TestCluster_NullableInt16s(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterTestCluster_ReadAttributeNullableInt32s(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_TestCluster_NullableInt32s(device, ZCLendpoint, ZCLgroupid) - - def ClusterTestCluster_SubscribeAttributeNullableInt32s(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_TestCluster_NullableInt32s(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterTestCluster_ReadAttributeNullableInt64s(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_TestCluster_NullableInt64s(device, ZCLendpoint, ZCLgroupid) - - def ClusterTestCluster_SubscribeAttributeNullableInt64s(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_TestCluster_NullableInt64s(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterTestCluster_ReadAttributeNullableEnum8(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_TestCluster_NullableEnum8(device, ZCLendpoint, ZCLgroupid) - - def ClusterTestCluster_SubscribeAttributeNullableEnum8(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_TestCluster_NullableEnum8(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterTestCluster_ReadAttributeNullableEnum16(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_TestCluster_NullableEnum16(device, ZCLendpoint, ZCLgroupid) - - def ClusterTestCluster_SubscribeAttributeNullableEnum16(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_TestCluster_NullableEnum16(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterTestCluster_ReadAttributeNullableOctetString(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_TestCluster_NullableOctetString(device, ZCLendpoint, ZCLgroupid) - - def ClusterTestCluster_SubscribeAttributeNullableOctetString(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_TestCluster_NullableOctetString(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterTestCluster_ReadAttributeNullableCharString(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_TestCluster_NullableCharString(device, ZCLendpoint, ZCLgroupid) - - def ClusterTestCluster_SubscribeAttributeNullableCharString(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_TestCluster_NullableCharString(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterTestCluster_ReadAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_TestCluster_ClusterRevision(device, ZCLendpoint, ZCLgroupid) - - def ClusterTestCluster_SubscribeAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_TestCluster_ClusterRevision(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThermostat_ReadAttributeLocalTemperature(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_Thermostat_LocalTemperature(device, ZCLendpoint, ZCLgroupid) - - def ClusterThermostat_SubscribeAttributeLocalTemperature(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_Thermostat_LocalTemperature(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThermostat_ReadAttributeAbsMinHeatSetpointLimit(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_Thermostat_AbsMinHeatSetpointLimit(device, ZCLendpoint, ZCLgroupid) - - def ClusterThermostat_SubscribeAttributeAbsMinHeatSetpointLimit(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_Thermostat_AbsMinHeatSetpointLimit(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThermostat_ReadAttributeAbsMaxHeatSetpointLimit(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_Thermostat_AbsMaxHeatSetpointLimit(device, ZCLendpoint, ZCLgroupid) - - def ClusterThermostat_SubscribeAttributeAbsMaxHeatSetpointLimit(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_Thermostat_AbsMaxHeatSetpointLimit(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThermostat_ReadAttributeAbsMinCoolSetpointLimit(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_Thermostat_AbsMinCoolSetpointLimit(device, ZCLendpoint, ZCLgroupid) - - def ClusterThermostat_SubscribeAttributeAbsMinCoolSetpointLimit(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_Thermostat_AbsMinCoolSetpointLimit(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThermostat_ReadAttributeAbsMaxCoolSetpointLimit(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_Thermostat_AbsMaxCoolSetpointLimit(device, ZCLendpoint, ZCLgroupid) - - def ClusterThermostat_SubscribeAttributeAbsMaxCoolSetpointLimit(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_Thermostat_AbsMaxCoolSetpointLimit(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThermostat_ReadAttributeOccupiedCoolingSetpoint(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_Thermostat_OccupiedCoolingSetpoint(device, ZCLendpoint, ZCLgroupid) - - def ClusterThermostat_SubscribeAttributeOccupiedCoolingSetpoint(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_Thermostat_OccupiedCoolingSetpoint(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThermostat_ReadAttributeOccupiedHeatingSetpoint(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_Thermostat_OccupiedHeatingSetpoint(device, ZCLendpoint, ZCLgroupid) - - def ClusterThermostat_SubscribeAttributeOccupiedHeatingSetpoint(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_Thermostat_OccupiedHeatingSetpoint(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThermostat_ReadAttributeMinHeatSetpointLimit(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_Thermostat_MinHeatSetpointLimit(device, ZCLendpoint, ZCLgroupid) - - def ClusterThermostat_SubscribeAttributeMinHeatSetpointLimit(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_Thermostat_MinHeatSetpointLimit(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThermostat_ReadAttributeMaxHeatSetpointLimit(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_Thermostat_MaxHeatSetpointLimit(device, ZCLendpoint, ZCLgroupid) - - def ClusterThermostat_SubscribeAttributeMaxHeatSetpointLimit(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_Thermostat_MaxHeatSetpointLimit(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThermostat_ReadAttributeMinCoolSetpointLimit(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_Thermostat_MinCoolSetpointLimit(device, ZCLendpoint, ZCLgroupid) - - def ClusterThermostat_SubscribeAttributeMinCoolSetpointLimit(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_Thermostat_MinCoolSetpointLimit(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThermostat_ReadAttributeMaxCoolSetpointLimit(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_Thermostat_MaxCoolSetpointLimit(device, ZCLendpoint, ZCLgroupid) - - def ClusterThermostat_SubscribeAttributeMaxCoolSetpointLimit(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_Thermostat_MaxCoolSetpointLimit(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThermostat_ReadAttributeMinSetpointDeadBand(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_Thermostat_MinSetpointDeadBand(device, ZCLendpoint, ZCLgroupid) - - def ClusterThermostat_SubscribeAttributeMinSetpointDeadBand(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_Thermostat_MinSetpointDeadBand(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThermostat_ReadAttributeControlSequenceOfOperation(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_Thermostat_ControlSequenceOfOperation(device, ZCLendpoint, ZCLgroupid) - - def ClusterThermostat_SubscribeAttributeControlSequenceOfOperation(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_Thermostat_ControlSequenceOfOperation(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThermostat_ReadAttributeSystemMode(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_Thermostat_SystemMode(device, ZCLendpoint, ZCLgroupid) - - def ClusterThermostat_SubscribeAttributeSystemMode(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_Thermostat_SystemMode(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThermostat_ReadAttributeStartOfWeek(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_Thermostat_StartOfWeek(device, ZCLendpoint, ZCLgroupid) - - def ClusterThermostat_SubscribeAttributeStartOfWeek(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_Thermostat_StartOfWeek(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThermostat_ReadAttributeNumberOfWeeklyTransitions(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_Thermostat_NumberOfWeeklyTransitions(device, ZCLendpoint, ZCLgroupid) - - def ClusterThermostat_SubscribeAttributeNumberOfWeeklyTransitions(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_Thermostat_NumberOfWeeklyTransitions(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThermostat_ReadAttributeNumberOfDailyTransitions(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_Thermostat_NumberOfDailyTransitions(device, ZCLendpoint, ZCLgroupid) - - def ClusterThermostat_SubscribeAttributeNumberOfDailyTransitions(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_Thermostat_NumberOfDailyTransitions(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThermostat_ReadAttributeFeatureMap(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_Thermostat_FeatureMap(device, ZCLendpoint, ZCLgroupid) - - def ClusterThermostat_SubscribeAttributeFeatureMap(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_Thermostat_FeatureMap(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThermostat_ReadAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_Thermostat_ClusterRevision(device, ZCLendpoint, ZCLgroupid) - - def ClusterThermostat_SubscribeAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_Thermostat_ClusterRevision(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThermostatUserInterfaceConfiguration_ReadAttributeTemperatureDisplayMode(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ThermostatUserInterfaceConfiguration_TemperatureDisplayMode(device, ZCLendpoint, ZCLgroupid) - - def ClusterThermostatUserInterfaceConfiguration_SubscribeAttributeTemperatureDisplayMode(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ThermostatUserInterfaceConfiguration_TemperatureDisplayMode(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThermostatUserInterfaceConfiguration_ReadAttributeKeypadLockout(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ThermostatUserInterfaceConfiguration_KeypadLockout(device, ZCLendpoint, ZCLgroupid) - - def ClusterThermostatUserInterfaceConfiguration_SubscribeAttributeKeypadLockout(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ThermostatUserInterfaceConfiguration_KeypadLockout(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThermostatUserInterfaceConfiguration_ReadAttributeScheduleProgrammingVisibility(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ThermostatUserInterfaceConfiguration_ScheduleProgrammingVisibility(device, ZCLendpoint, ZCLgroupid) - - def ClusterThermostatUserInterfaceConfiguration_SubscribeAttributeScheduleProgrammingVisibility(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ThermostatUserInterfaceConfiguration_ScheduleProgrammingVisibility(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThermostatUserInterfaceConfiguration_ReadAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ThermostatUserInterfaceConfiguration_ClusterRevision(device, ZCLendpoint, ZCLgroupid) - - def ClusterThermostatUserInterfaceConfiguration_SubscribeAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ThermostatUserInterfaceConfiguration_ClusterRevision(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThreadNetworkDiagnostics_ReadAttributeChannel(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_Channel(device, ZCLendpoint, ZCLgroupid) - - def ClusterThreadNetworkDiagnostics_SubscribeAttributeChannel(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_Channel(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThreadNetworkDiagnostics_ReadAttributeRoutingRole(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RoutingRole(device, ZCLendpoint, ZCLgroupid) - - def ClusterThreadNetworkDiagnostics_SubscribeAttributeRoutingRole(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RoutingRole(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThreadNetworkDiagnostics_ReadAttributeNetworkName(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_NetworkName(device, ZCLendpoint, ZCLgroupid) - - def ClusterThreadNetworkDiagnostics_SubscribeAttributeNetworkName(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_NetworkName(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThreadNetworkDiagnostics_ReadAttributePanId(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_PanId(device, ZCLendpoint, ZCLgroupid) - - def ClusterThreadNetworkDiagnostics_SubscribeAttributePanId(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_PanId(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThreadNetworkDiagnostics_ReadAttributeExtendedPanId(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_ExtendedPanId(device, ZCLendpoint, ZCLgroupid) - - def ClusterThreadNetworkDiagnostics_SubscribeAttributeExtendedPanId(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_ExtendedPanId(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThreadNetworkDiagnostics_ReadAttributeMeshLocalPrefix(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_MeshLocalPrefix(device, ZCLendpoint, ZCLgroupid) - - def ClusterThreadNetworkDiagnostics_SubscribeAttributeMeshLocalPrefix(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_MeshLocalPrefix(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThreadNetworkDiagnostics_ReadAttributeOverrunCount(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_OverrunCount(device, ZCLendpoint, ZCLgroupid) - - def ClusterThreadNetworkDiagnostics_SubscribeAttributeOverrunCount(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_OverrunCount(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThreadNetworkDiagnostics_ReadAttributeNeighborTableList(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_NeighborTableList(device, ZCLendpoint, ZCLgroupid) - - def ClusterThreadNetworkDiagnostics_ReadAttributeRouteTableList(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RouteTableList(device, ZCLendpoint, ZCLgroupid) - - def ClusterThreadNetworkDiagnostics_ReadAttributePartitionId(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_PartitionId(device, ZCLendpoint, ZCLgroupid) - - def ClusterThreadNetworkDiagnostics_SubscribeAttributePartitionId(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_PartitionId(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThreadNetworkDiagnostics_ReadAttributeWeighting(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_Weighting(device, ZCLendpoint, ZCLgroupid) - - def ClusterThreadNetworkDiagnostics_SubscribeAttributeWeighting(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_Weighting(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThreadNetworkDiagnostics_ReadAttributeDataVersion(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_DataVersion(device, ZCLendpoint, ZCLgroupid) - - def ClusterThreadNetworkDiagnostics_SubscribeAttributeDataVersion(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_DataVersion(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThreadNetworkDiagnostics_ReadAttributeStableDataVersion(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_StableDataVersion(device, ZCLendpoint, ZCLgroupid) - - def ClusterThreadNetworkDiagnostics_SubscribeAttributeStableDataVersion(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_StableDataVersion(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThreadNetworkDiagnostics_ReadAttributeLeaderRouterId(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_LeaderRouterId(device, ZCLendpoint, ZCLgroupid) - - def ClusterThreadNetworkDiagnostics_SubscribeAttributeLeaderRouterId(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_LeaderRouterId(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThreadNetworkDiagnostics_ReadAttributeDetachedRoleCount(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_DetachedRoleCount(device, ZCLendpoint, ZCLgroupid) - - def ClusterThreadNetworkDiagnostics_SubscribeAttributeDetachedRoleCount(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_DetachedRoleCount(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThreadNetworkDiagnostics_ReadAttributeChildRoleCount(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_ChildRoleCount(device, ZCLendpoint, ZCLgroupid) - - def ClusterThreadNetworkDiagnostics_SubscribeAttributeChildRoleCount(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_ChildRoleCount(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThreadNetworkDiagnostics_ReadAttributeRouterRoleCount(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RouterRoleCount(device, ZCLendpoint, ZCLgroupid) - - def ClusterThreadNetworkDiagnostics_SubscribeAttributeRouterRoleCount(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RouterRoleCount(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThreadNetworkDiagnostics_ReadAttributeLeaderRoleCount(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_LeaderRoleCount(device, ZCLendpoint, ZCLgroupid) - - def ClusterThreadNetworkDiagnostics_SubscribeAttributeLeaderRoleCount(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_LeaderRoleCount(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThreadNetworkDiagnostics_ReadAttributeAttachAttemptCount(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_AttachAttemptCount(device, ZCLendpoint, ZCLgroupid) - - def ClusterThreadNetworkDiagnostics_SubscribeAttributeAttachAttemptCount(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_AttachAttemptCount(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThreadNetworkDiagnostics_ReadAttributePartitionIdChangeCount(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_PartitionIdChangeCount(device, ZCLendpoint, ZCLgroupid) - - def ClusterThreadNetworkDiagnostics_SubscribeAttributePartitionIdChangeCount(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_PartitionIdChangeCount(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThreadNetworkDiagnostics_ReadAttributeBetterPartitionAttachAttemptCount(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_BetterPartitionAttachAttemptCount(device, ZCLendpoint, ZCLgroupid) - - def ClusterThreadNetworkDiagnostics_SubscribeAttributeBetterPartitionAttachAttemptCount(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_BetterPartitionAttachAttemptCount(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThreadNetworkDiagnostics_ReadAttributeParentChangeCount(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_ParentChangeCount(device, ZCLendpoint, ZCLgroupid) - - def ClusterThreadNetworkDiagnostics_SubscribeAttributeParentChangeCount(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_ParentChangeCount(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThreadNetworkDiagnostics_ReadAttributeTxTotalCount(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_TxTotalCount(device, ZCLendpoint, ZCLgroupid) - - def ClusterThreadNetworkDiagnostics_SubscribeAttributeTxTotalCount(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_TxTotalCount(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThreadNetworkDiagnostics_ReadAttributeTxUnicastCount(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_TxUnicastCount(device, ZCLendpoint, ZCLgroupid) - - def ClusterThreadNetworkDiagnostics_SubscribeAttributeTxUnicastCount(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_TxUnicastCount(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThreadNetworkDiagnostics_ReadAttributeTxBroadcastCount(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_TxBroadcastCount(device, ZCLendpoint, ZCLgroupid) - - def ClusterThreadNetworkDiagnostics_SubscribeAttributeTxBroadcastCount(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_TxBroadcastCount(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThreadNetworkDiagnostics_ReadAttributeTxAckRequestedCount(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_TxAckRequestedCount(device, ZCLendpoint, ZCLgroupid) - - def ClusterThreadNetworkDiagnostics_SubscribeAttributeTxAckRequestedCount(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_TxAckRequestedCount(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThreadNetworkDiagnostics_ReadAttributeTxAckedCount(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_TxAckedCount(device, ZCLendpoint, ZCLgroupid) - - def ClusterThreadNetworkDiagnostics_SubscribeAttributeTxAckedCount(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_TxAckedCount(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThreadNetworkDiagnostics_ReadAttributeTxNoAckRequestedCount(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_TxNoAckRequestedCount(device, ZCLendpoint, ZCLgroupid) - - def ClusterThreadNetworkDiagnostics_SubscribeAttributeTxNoAckRequestedCount(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_TxNoAckRequestedCount(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThreadNetworkDiagnostics_ReadAttributeTxDataCount(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_TxDataCount(device, ZCLendpoint, ZCLgroupid) - - def ClusterThreadNetworkDiagnostics_SubscribeAttributeTxDataCount(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_TxDataCount(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThreadNetworkDiagnostics_ReadAttributeTxDataPollCount(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_TxDataPollCount(device, ZCLendpoint, ZCLgroupid) - - def ClusterThreadNetworkDiagnostics_SubscribeAttributeTxDataPollCount(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_TxDataPollCount(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThreadNetworkDiagnostics_ReadAttributeTxBeaconCount(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_TxBeaconCount(device, ZCLendpoint, ZCLgroupid) - - def ClusterThreadNetworkDiagnostics_SubscribeAttributeTxBeaconCount(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_TxBeaconCount(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThreadNetworkDiagnostics_ReadAttributeTxBeaconRequestCount(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_TxBeaconRequestCount(device, ZCLendpoint, ZCLgroupid) - - def ClusterThreadNetworkDiagnostics_SubscribeAttributeTxBeaconRequestCount(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_TxBeaconRequestCount(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThreadNetworkDiagnostics_ReadAttributeTxOtherCount(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_TxOtherCount(device, ZCLendpoint, ZCLgroupid) - - def ClusterThreadNetworkDiagnostics_SubscribeAttributeTxOtherCount(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_TxOtherCount(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThreadNetworkDiagnostics_ReadAttributeTxRetryCount(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_TxRetryCount(device, ZCLendpoint, ZCLgroupid) - - def ClusterThreadNetworkDiagnostics_SubscribeAttributeTxRetryCount(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_TxRetryCount(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThreadNetworkDiagnostics_ReadAttributeTxDirectMaxRetryExpiryCount(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_TxDirectMaxRetryExpiryCount(device, ZCLendpoint, ZCLgroupid) - - def ClusterThreadNetworkDiagnostics_SubscribeAttributeTxDirectMaxRetryExpiryCount(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_TxDirectMaxRetryExpiryCount(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThreadNetworkDiagnostics_ReadAttributeTxIndirectMaxRetryExpiryCount(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_TxIndirectMaxRetryExpiryCount(device, ZCLendpoint, ZCLgroupid) - - def ClusterThreadNetworkDiagnostics_SubscribeAttributeTxIndirectMaxRetryExpiryCount(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_TxIndirectMaxRetryExpiryCount(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThreadNetworkDiagnostics_ReadAttributeTxErrCcaCount(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_TxErrCcaCount(device, ZCLendpoint, ZCLgroupid) - - def ClusterThreadNetworkDiagnostics_SubscribeAttributeTxErrCcaCount(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_TxErrCcaCount(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThreadNetworkDiagnostics_ReadAttributeTxErrAbortCount(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_TxErrAbortCount(device, ZCLendpoint, ZCLgroupid) - - def ClusterThreadNetworkDiagnostics_SubscribeAttributeTxErrAbortCount(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_TxErrAbortCount(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThreadNetworkDiagnostics_ReadAttributeTxErrBusyChannelCount(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_TxErrBusyChannelCount(device, ZCLendpoint, ZCLgroupid) - - def ClusterThreadNetworkDiagnostics_SubscribeAttributeTxErrBusyChannelCount(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_TxErrBusyChannelCount(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThreadNetworkDiagnostics_ReadAttributeRxTotalCount(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RxTotalCount(device, ZCLendpoint, ZCLgroupid) - - def ClusterThreadNetworkDiagnostics_SubscribeAttributeRxTotalCount(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RxTotalCount(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThreadNetworkDiagnostics_ReadAttributeRxUnicastCount(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RxUnicastCount(device, ZCLendpoint, ZCLgroupid) - - def ClusterThreadNetworkDiagnostics_SubscribeAttributeRxUnicastCount(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RxUnicastCount(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThreadNetworkDiagnostics_ReadAttributeRxBroadcastCount(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RxBroadcastCount(device, ZCLendpoint, ZCLgroupid) - - def ClusterThreadNetworkDiagnostics_SubscribeAttributeRxBroadcastCount(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RxBroadcastCount(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThreadNetworkDiagnostics_ReadAttributeRxDataCount(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RxDataCount(device, ZCLendpoint, ZCLgroupid) - - def ClusterThreadNetworkDiagnostics_SubscribeAttributeRxDataCount(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RxDataCount(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThreadNetworkDiagnostics_ReadAttributeRxDataPollCount(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RxDataPollCount(device, ZCLendpoint, ZCLgroupid) - - def ClusterThreadNetworkDiagnostics_SubscribeAttributeRxDataPollCount(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RxDataPollCount(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThreadNetworkDiagnostics_ReadAttributeRxBeaconCount(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RxBeaconCount(device, ZCLendpoint, ZCLgroupid) - - def ClusterThreadNetworkDiagnostics_SubscribeAttributeRxBeaconCount(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RxBeaconCount(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThreadNetworkDiagnostics_ReadAttributeRxBeaconRequestCount(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RxBeaconRequestCount(device, ZCLendpoint, ZCLgroupid) - - def ClusterThreadNetworkDiagnostics_SubscribeAttributeRxBeaconRequestCount(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RxBeaconRequestCount(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThreadNetworkDiagnostics_ReadAttributeRxOtherCount(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RxOtherCount(device, ZCLendpoint, ZCLgroupid) - - def ClusterThreadNetworkDiagnostics_SubscribeAttributeRxOtherCount(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RxOtherCount(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThreadNetworkDiagnostics_ReadAttributeRxAddressFilteredCount(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RxAddressFilteredCount(device, ZCLendpoint, ZCLgroupid) - - def ClusterThreadNetworkDiagnostics_SubscribeAttributeRxAddressFilteredCount(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RxAddressFilteredCount(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThreadNetworkDiagnostics_ReadAttributeRxDestAddrFilteredCount(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RxDestAddrFilteredCount(device, ZCLendpoint, ZCLgroupid) - - def ClusterThreadNetworkDiagnostics_SubscribeAttributeRxDestAddrFilteredCount(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RxDestAddrFilteredCount(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThreadNetworkDiagnostics_ReadAttributeRxDuplicatedCount(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RxDuplicatedCount(device, ZCLendpoint, ZCLgroupid) - - def ClusterThreadNetworkDiagnostics_SubscribeAttributeRxDuplicatedCount(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RxDuplicatedCount(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThreadNetworkDiagnostics_ReadAttributeRxErrNoFrameCount(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RxErrNoFrameCount(device, ZCLendpoint, ZCLgroupid) - - def ClusterThreadNetworkDiagnostics_SubscribeAttributeRxErrNoFrameCount(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RxErrNoFrameCount(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThreadNetworkDiagnostics_ReadAttributeRxErrUnknownNeighborCount(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RxErrUnknownNeighborCount(device, ZCLendpoint, ZCLgroupid) - - def ClusterThreadNetworkDiagnostics_SubscribeAttributeRxErrUnknownNeighborCount(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RxErrUnknownNeighborCount(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThreadNetworkDiagnostics_ReadAttributeRxErrInvalidSrcAddrCount(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RxErrInvalidSrcAddrCount(device, ZCLendpoint, ZCLgroupid) - - def ClusterThreadNetworkDiagnostics_SubscribeAttributeRxErrInvalidSrcAddrCount(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RxErrInvalidSrcAddrCount(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThreadNetworkDiagnostics_ReadAttributeRxErrSecCount(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RxErrSecCount(device, ZCLendpoint, ZCLgroupid) - - def ClusterThreadNetworkDiagnostics_SubscribeAttributeRxErrSecCount(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RxErrSecCount(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThreadNetworkDiagnostics_ReadAttributeRxErrFcsCount(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RxErrFcsCount(device, ZCLendpoint, ZCLgroupid) - - def ClusterThreadNetworkDiagnostics_SubscribeAttributeRxErrFcsCount(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RxErrFcsCount(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThreadNetworkDiagnostics_ReadAttributeRxErrOtherCount(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RxErrOtherCount(device, ZCLendpoint, ZCLgroupid) - - def ClusterThreadNetworkDiagnostics_SubscribeAttributeRxErrOtherCount(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RxErrOtherCount(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThreadNetworkDiagnostics_ReadAttributeActiveTimestamp(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_ActiveTimestamp(device, ZCLendpoint, ZCLgroupid) - - def ClusterThreadNetworkDiagnostics_SubscribeAttributeActiveTimestamp(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_ActiveTimestamp(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThreadNetworkDiagnostics_ReadAttributePendingTimestamp(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_PendingTimestamp(device, ZCLendpoint, ZCLgroupid) - - def ClusterThreadNetworkDiagnostics_SubscribeAttributePendingTimestamp(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_PendingTimestamp(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThreadNetworkDiagnostics_ReadAttributeDelay(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_Delay(device, ZCLendpoint, ZCLgroupid) - - def ClusterThreadNetworkDiagnostics_SubscribeAttributeDelay(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_Delay(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThreadNetworkDiagnostics_ReadAttributeSecurityPolicy(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_SecurityPolicy(device, ZCLendpoint, ZCLgroupid) - - def ClusterThreadNetworkDiagnostics_ReadAttributeChannelMask(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_ChannelMask(device, ZCLendpoint, ZCLgroupid) - - def ClusterThreadNetworkDiagnostics_SubscribeAttributeChannelMask(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_ChannelMask(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterThreadNetworkDiagnostics_ReadAttributeOperationalDatasetComponents(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_OperationalDatasetComponents(device, ZCLendpoint, ZCLgroupid) - - def ClusterThreadNetworkDiagnostics_ReadAttributeActiveNetworkFaultsList(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_ActiveNetworkFaultsList(device, ZCLendpoint, ZCLgroupid) - - def ClusterThreadNetworkDiagnostics_ReadAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_ClusterRevision(device, ZCLendpoint, ZCLgroupid) - - def ClusterThreadNetworkDiagnostics_SubscribeAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_ClusterRevision(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterWakeOnLan_ReadAttributeWakeOnLanMacAddress(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_WakeOnLan_WakeOnLanMacAddress(device, ZCLendpoint, ZCLgroupid) - - def ClusterWakeOnLan_SubscribeAttributeWakeOnLanMacAddress(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_WakeOnLan_WakeOnLanMacAddress(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterWakeOnLan_ReadAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_WakeOnLan_ClusterRevision(device, ZCLendpoint, ZCLgroupid) - - def ClusterWakeOnLan_SubscribeAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_WakeOnLan_ClusterRevision(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterWiFiNetworkDiagnostics_ReadAttributeBssid(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_WiFiNetworkDiagnostics_Bssid(device, ZCLendpoint, ZCLgroupid) - - def ClusterWiFiNetworkDiagnostics_SubscribeAttributeBssid(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_WiFiNetworkDiagnostics_Bssid(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterWiFiNetworkDiagnostics_ReadAttributeSecurityType(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_WiFiNetworkDiagnostics_SecurityType(device, ZCLendpoint, ZCLgroupid) - - def ClusterWiFiNetworkDiagnostics_SubscribeAttributeSecurityType(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_WiFiNetworkDiagnostics_SecurityType(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterWiFiNetworkDiagnostics_ReadAttributeWiFiVersion(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_WiFiNetworkDiagnostics_WiFiVersion(device, ZCLendpoint, ZCLgroupid) - - def ClusterWiFiNetworkDiagnostics_SubscribeAttributeWiFiVersion(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_WiFiNetworkDiagnostics_WiFiVersion(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterWiFiNetworkDiagnostics_ReadAttributeChannelNumber(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_WiFiNetworkDiagnostics_ChannelNumber(device, ZCLendpoint, ZCLgroupid) - - def ClusterWiFiNetworkDiagnostics_SubscribeAttributeChannelNumber(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_WiFiNetworkDiagnostics_ChannelNumber(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterWiFiNetworkDiagnostics_ReadAttributeRssi(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_WiFiNetworkDiagnostics_Rssi(device, ZCLendpoint, ZCLgroupid) - - def ClusterWiFiNetworkDiagnostics_SubscribeAttributeRssi(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_WiFiNetworkDiagnostics_Rssi(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterWiFiNetworkDiagnostics_ReadAttributeBeaconLostCount(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_WiFiNetworkDiagnostics_BeaconLostCount(device, ZCLendpoint, ZCLgroupid) - - def ClusterWiFiNetworkDiagnostics_SubscribeAttributeBeaconLostCount(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_WiFiNetworkDiagnostics_BeaconLostCount(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterWiFiNetworkDiagnostics_ReadAttributeBeaconRxCount(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_WiFiNetworkDiagnostics_BeaconRxCount(device, ZCLendpoint, ZCLgroupid) - - def ClusterWiFiNetworkDiagnostics_SubscribeAttributeBeaconRxCount(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_WiFiNetworkDiagnostics_BeaconRxCount(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterWiFiNetworkDiagnostics_ReadAttributePacketMulticastRxCount(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_WiFiNetworkDiagnostics_PacketMulticastRxCount(device, ZCLendpoint, ZCLgroupid) - - def ClusterWiFiNetworkDiagnostics_SubscribeAttributePacketMulticastRxCount(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_WiFiNetworkDiagnostics_PacketMulticastRxCount(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterWiFiNetworkDiagnostics_ReadAttributePacketMulticastTxCount(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_WiFiNetworkDiagnostics_PacketMulticastTxCount(device, ZCLendpoint, ZCLgroupid) - - def ClusterWiFiNetworkDiagnostics_SubscribeAttributePacketMulticastTxCount(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_WiFiNetworkDiagnostics_PacketMulticastTxCount(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterWiFiNetworkDiagnostics_ReadAttributePacketUnicastRxCount(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_WiFiNetworkDiagnostics_PacketUnicastRxCount(device, ZCLendpoint, ZCLgroupid) - - def ClusterWiFiNetworkDiagnostics_SubscribeAttributePacketUnicastRxCount(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_WiFiNetworkDiagnostics_PacketUnicastRxCount(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterWiFiNetworkDiagnostics_ReadAttributePacketUnicastTxCount(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_WiFiNetworkDiagnostics_PacketUnicastTxCount(device, ZCLendpoint, ZCLgroupid) - - def ClusterWiFiNetworkDiagnostics_SubscribeAttributePacketUnicastTxCount(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_WiFiNetworkDiagnostics_PacketUnicastTxCount(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterWiFiNetworkDiagnostics_ReadAttributeCurrentMaxRate(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_WiFiNetworkDiagnostics_CurrentMaxRate(device, ZCLendpoint, ZCLgroupid) - - def ClusterWiFiNetworkDiagnostics_SubscribeAttributeCurrentMaxRate(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_WiFiNetworkDiagnostics_CurrentMaxRate(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterWiFiNetworkDiagnostics_ReadAttributeOverrunCount(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_WiFiNetworkDiagnostics_OverrunCount(device, ZCLendpoint, ZCLgroupid) - - def ClusterWiFiNetworkDiagnostics_SubscribeAttributeOverrunCount(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_WiFiNetworkDiagnostics_OverrunCount(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterWiFiNetworkDiagnostics_ReadAttributeFeatureMap(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_WiFiNetworkDiagnostics_FeatureMap(device, ZCLendpoint, ZCLgroupid) - - def ClusterWiFiNetworkDiagnostics_ReadAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_WiFiNetworkDiagnostics_ClusterRevision(device, ZCLendpoint, ZCLgroupid) - - def ClusterWiFiNetworkDiagnostics_SubscribeAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_WiFiNetworkDiagnostics_ClusterRevision(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterWindowCovering_ReadAttributeType(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_WindowCovering_Type(device, ZCLendpoint, ZCLgroupid) - - def ClusterWindowCovering_SubscribeAttributeType(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_WindowCovering_Type(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterWindowCovering_ReadAttributeCurrentPositionLift(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_WindowCovering_CurrentPositionLift(device, ZCLendpoint, ZCLgroupid) - - def ClusterWindowCovering_SubscribeAttributeCurrentPositionLift(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_WindowCovering_CurrentPositionLift(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterWindowCovering_ReadAttributeCurrentPositionTilt(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_WindowCovering_CurrentPositionTilt(device, ZCLendpoint, ZCLgroupid) - - def ClusterWindowCovering_SubscribeAttributeCurrentPositionTilt(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_WindowCovering_CurrentPositionTilt(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterWindowCovering_ReadAttributeConfigStatus(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_WindowCovering_ConfigStatus(device, ZCLendpoint, ZCLgroupid) - - def ClusterWindowCovering_SubscribeAttributeConfigStatus(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_WindowCovering_ConfigStatus(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterWindowCovering_ReadAttributeCurrentPositionLiftPercentage(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_WindowCovering_CurrentPositionLiftPercentage(device, ZCLendpoint, ZCLgroupid) - - def ClusterWindowCovering_SubscribeAttributeCurrentPositionLiftPercentage(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_WindowCovering_CurrentPositionLiftPercentage(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterWindowCovering_ReadAttributeCurrentPositionTiltPercentage(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_WindowCovering_CurrentPositionTiltPercentage(device, ZCLendpoint, ZCLgroupid) - - def ClusterWindowCovering_SubscribeAttributeCurrentPositionTiltPercentage(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_WindowCovering_CurrentPositionTiltPercentage(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterWindowCovering_ReadAttributeOperationalStatus(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_WindowCovering_OperationalStatus(device, ZCLendpoint, ZCLgroupid) - - def ClusterWindowCovering_SubscribeAttributeOperationalStatus(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_WindowCovering_OperationalStatus(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterWindowCovering_ReadAttributeTargetPositionLiftPercent100ths(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_WindowCovering_TargetPositionLiftPercent100ths(device, ZCLendpoint, ZCLgroupid) - - def ClusterWindowCovering_SubscribeAttributeTargetPositionLiftPercent100ths(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_WindowCovering_TargetPositionLiftPercent100ths(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterWindowCovering_ReadAttributeTargetPositionTiltPercent100ths(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_WindowCovering_TargetPositionTiltPercent100ths(device, ZCLendpoint, ZCLgroupid) - - def ClusterWindowCovering_SubscribeAttributeTargetPositionTiltPercent100ths(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_WindowCovering_TargetPositionTiltPercent100ths(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterWindowCovering_ReadAttributeEndProductType(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_WindowCovering_EndProductType(device, ZCLendpoint, ZCLgroupid) - - def ClusterWindowCovering_SubscribeAttributeEndProductType(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_WindowCovering_EndProductType(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterWindowCovering_ReadAttributeCurrentPositionLiftPercent100ths(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_WindowCovering_CurrentPositionLiftPercent100ths(device, ZCLendpoint, ZCLgroupid) - - def ClusterWindowCovering_SubscribeAttributeCurrentPositionLiftPercent100ths(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_WindowCovering_CurrentPositionLiftPercent100ths(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterWindowCovering_ReadAttributeCurrentPositionTiltPercent100ths(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_WindowCovering_CurrentPositionTiltPercent100ths(device, ZCLendpoint, ZCLgroupid) - - def ClusterWindowCovering_SubscribeAttributeCurrentPositionTiltPercent100ths(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_WindowCovering_CurrentPositionTiltPercent100ths(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterWindowCovering_ReadAttributeInstalledOpenLimitLift(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_WindowCovering_InstalledOpenLimitLift(device, ZCLendpoint, ZCLgroupid) - - def ClusterWindowCovering_SubscribeAttributeInstalledOpenLimitLift(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_WindowCovering_InstalledOpenLimitLift(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterWindowCovering_ReadAttributeInstalledClosedLimitLift(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_WindowCovering_InstalledClosedLimitLift(device, ZCLendpoint, ZCLgroupid) - - def ClusterWindowCovering_SubscribeAttributeInstalledClosedLimitLift(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_WindowCovering_InstalledClosedLimitLift(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterWindowCovering_ReadAttributeInstalledOpenLimitTilt(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_WindowCovering_InstalledOpenLimitTilt(device, ZCLendpoint, ZCLgroupid) - - def ClusterWindowCovering_SubscribeAttributeInstalledOpenLimitTilt(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_WindowCovering_InstalledOpenLimitTilt(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterWindowCovering_ReadAttributeInstalledClosedLimitTilt(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_WindowCovering_InstalledClosedLimitTilt(device, ZCLendpoint, ZCLgroupid) - - def ClusterWindowCovering_SubscribeAttributeInstalledClosedLimitTilt(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_WindowCovering_InstalledClosedLimitTilt(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterWindowCovering_ReadAttributeMode(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_WindowCovering_Mode(device, ZCLendpoint, ZCLgroupid) - - def ClusterWindowCovering_SubscribeAttributeMode(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_WindowCovering_Mode(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterWindowCovering_ReadAttributeSafetyStatus(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_WindowCovering_SafetyStatus(device, ZCLendpoint, ZCLgroupid) - - def ClusterWindowCovering_SubscribeAttributeSafetyStatus(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_WindowCovering_SafetyStatus(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterWindowCovering_ReadAttributeFeatureMap(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_WindowCovering_FeatureMap(device, ZCLendpoint, ZCLgroupid) - - def ClusterWindowCovering_SubscribeAttributeFeatureMap(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_WindowCovering_FeatureMap(device, ZCLendpoint, minInterval, maxInterval) - - def ClusterWindowCovering_ReadAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_WindowCovering_ClusterRevision(device, ZCLendpoint, ZCLgroupid) - - def ClusterWindowCovering_SubscribeAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_WindowCovering_ClusterRevision(device, ZCLendpoint, minInterval, maxInterval) - # Init native functions def InitLib(self, chipLib): self._chipLib = chipLib - # Response delegate setters - self._chipLib.chip_ime_SetSuccessResponseDelegate.argtypes = [ - ChipClusters.SUCCESS_DELEGATE] - self._chipLib.chip_ime_SetSuccessResponseDelegate.restype = None - self._chipLib.chip_ime_SetFailureResponseDelegate.argtypes = [ - ChipClusters.FAILURE_DELEGATE] - self._chipLib.chip_ime_SetFailureResponseDelegate.res = None - # Cluster AccountLogin - # Cluster AccountLogin ReadAttribute ClusterRevision - self._chipLib.chip_ime_ReadAttribute_AccountLogin_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_AccountLogin_ClusterRevision.restype = ctypes.c_uint32 - # Cluster AccountLogin SubscribeAttribute ClusterRevision - self._chipLib.chip_ime_SubscribeAttribute_AccountLogin_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_AccountLogin_ClusterRevision.restype = ctypes.c_uint32 - # Cluster AdministratorCommissioning - # Cluster AdministratorCommissioning ReadAttribute ClusterRevision - self._chipLib.chip_ime_ReadAttribute_AdministratorCommissioning_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_AdministratorCommissioning_ClusterRevision.restype = ctypes.c_uint32 - # Cluster AdministratorCommissioning SubscribeAttribute ClusterRevision - self._chipLib.chip_ime_SubscribeAttribute_AdministratorCommissioning_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_AdministratorCommissioning_ClusterRevision.restype = ctypes.c_uint32 - # Cluster ApplicationBasic - # Cluster ApplicationBasic ReadAttribute VendorName - self._chipLib.chip_ime_ReadAttribute_ApplicationBasic_VendorName.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ApplicationBasic_VendorName.restype = ctypes.c_uint32 - # Cluster ApplicationBasic SubscribeAttribute VendorName - self._chipLib.chip_ime_SubscribeAttribute_ApplicationBasic_VendorName.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ApplicationBasic_VendorName.restype = ctypes.c_uint32 - # Cluster ApplicationBasic ReadAttribute VendorId - self._chipLib.chip_ime_ReadAttribute_ApplicationBasic_VendorId.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ApplicationBasic_VendorId.restype = ctypes.c_uint32 - # Cluster ApplicationBasic SubscribeAttribute VendorId - self._chipLib.chip_ime_SubscribeAttribute_ApplicationBasic_VendorId.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ApplicationBasic_VendorId.restype = ctypes.c_uint32 - # Cluster ApplicationBasic ReadAttribute ApplicationName - self._chipLib.chip_ime_ReadAttribute_ApplicationBasic_ApplicationName.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ApplicationBasic_ApplicationName.restype = ctypes.c_uint32 - # Cluster ApplicationBasic SubscribeAttribute ApplicationName - self._chipLib.chip_ime_SubscribeAttribute_ApplicationBasic_ApplicationName.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ApplicationBasic_ApplicationName.restype = ctypes.c_uint32 - # Cluster ApplicationBasic ReadAttribute ProductId - self._chipLib.chip_ime_ReadAttribute_ApplicationBasic_ProductId.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ApplicationBasic_ProductId.restype = ctypes.c_uint32 - # Cluster ApplicationBasic SubscribeAttribute ProductId - self._chipLib.chip_ime_SubscribeAttribute_ApplicationBasic_ProductId.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ApplicationBasic_ProductId.restype = ctypes.c_uint32 - # Cluster ApplicationBasic ReadAttribute ApplicationId - self._chipLib.chip_ime_ReadAttribute_ApplicationBasic_ApplicationId.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ApplicationBasic_ApplicationId.restype = ctypes.c_uint32 - # Cluster ApplicationBasic SubscribeAttribute ApplicationId - self._chipLib.chip_ime_SubscribeAttribute_ApplicationBasic_ApplicationId.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ApplicationBasic_ApplicationId.restype = ctypes.c_uint32 - # Cluster ApplicationBasic ReadAttribute CatalogVendorId - self._chipLib.chip_ime_ReadAttribute_ApplicationBasic_CatalogVendorId.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ApplicationBasic_CatalogVendorId.restype = ctypes.c_uint32 - # Cluster ApplicationBasic SubscribeAttribute CatalogVendorId - self._chipLib.chip_ime_SubscribeAttribute_ApplicationBasic_CatalogVendorId.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ApplicationBasic_CatalogVendorId.restype = ctypes.c_uint32 - # Cluster ApplicationBasic ReadAttribute ApplicationStatus - self._chipLib.chip_ime_ReadAttribute_ApplicationBasic_ApplicationStatus.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ApplicationBasic_ApplicationStatus.restype = ctypes.c_uint32 - # Cluster ApplicationBasic SubscribeAttribute ApplicationStatus - self._chipLib.chip_ime_SubscribeAttribute_ApplicationBasic_ApplicationStatus.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ApplicationBasic_ApplicationStatus.restype = ctypes.c_uint32 - # Cluster ApplicationBasic ReadAttribute ClusterRevision - self._chipLib.chip_ime_ReadAttribute_ApplicationBasic_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ApplicationBasic_ClusterRevision.restype = ctypes.c_uint32 - # Cluster ApplicationBasic SubscribeAttribute ClusterRevision - self._chipLib.chip_ime_SubscribeAttribute_ApplicationBasic_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ApplicationBasic_ClusterRevision.restype = ctypes.c_uint32 - # Cluster ApplicationLauncher - # Cluster ApplicationLauncher ReadAttribute ApplicationLauncherList - self._chipLib.chip_ime_ReadAttribute_ApplicationLauncher_ApplicationLauncherList.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ApplicationLauncher_ApplicationLauncherList.restype = ctypes.c_uint32 - # Cluster ApplicationLauncher ReadAttribute CatalogVendorId - self._chipLib.chip_ime_ReadAttribute_ApplicationLauncher_CatalogVendorId.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ApplicationLauncher_CatalogVendorId.restype = ctypes.c_uint32 - # Cluster ApplicationLauncher SubscribeAttribute CatalogVendorId - self._chipLib.chip_ime_SubscribeAttribute_ApplicationLauncher_CatalogVendorId.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ApplicationLauncher_CatalogVendorId.restype = ctypes.c_uint32 - # Cluster ApplicationLauncher ReadAttribute ApplicationId - self._chipLib.chip_ime_ReadAttribute_ApplicationLauncher_ApplicationId.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ApplicationLauncher_ApplicationId.restype = ctypes.c_uint32 - # Cluster ApplicationLauncher SubscribeAttribute ApplicationId - self._chipLib.chip_ime_SubscribeAttribute_ApplicationLauncher_ApplicationId.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ApplicationLauncher_ApplicationId.restype = ctypes.c_uint32 - # Cluster ApplicationLauncher ReadAttribute ClusterRevision - self._chipLib.chip_ime_ReadAttribute_ApplicationLauncher_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ApplicationLauncher_ClusterRevision.restype = ctypes.c_uint32 - # Cluster ApplicationLauncher SubscribeAttribute ClusterRevision - self._chipLib.chip_ime_SubscribeAttribute_ApplicationLauncher_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ApplicationLauncher_ClusterRevision.restype = ctypes.c_uint32 - # Cluster AudioOutput - # Cluster AudioOutput ReadAttribute AudioOutputList - self._chipLib.chip_ime_ReadAttribute_AudioOutput_AudioOutputList.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_AudioOutput_AudioOutputList.restype = ctypes.c_uint32 - # Cluster AudioOutput ReadAttribute CurrentAudioOutput - self._chipLib.chip_ime_ReadAttribute_AudioOutput_CurrentAudioOutput.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_AudioOutput_CurrentAudioOutput.restype = ctypes.c_uint32 - # Cluster AudioOutput SubscribeAttribute CurrentAudioOutput - self._chipLib.chip_ime_SubscribeAttribute_AudioOutput_CurrentAudioOutput.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_AudioOutput_CurrentAudioOutput.restype = ctypes.c_uint32 - # Cluster AudioOutput ReadAttribute ClusterRevision - self._chipLib.chip_ime_ReadAttribute_AudioOutput_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_AudioOutput_ClusterRevision.restype = ctypes.c_uint32 - # Cluster AudioOutput SubscribeAttribute ClusterRevision - self._chipLib.chip_ime_SubscribeAttribute_AudioOutput_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_AudioOutput_ClusterRevision.restype = ctypes.c_uint32 - # Cluster BarrierControl - # Cluster BarrierControl ReadAttribute BarrierMovingState - self._chipLib.chip_ime_ReadAttribute_BarrierControl_BarrierMovingState.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_BarrierControl_BarrierMovingState.restype = ctypes.c_uint32 - # Cluster BarrierControl SubscribeAttribute BarrierMovingState - self._chipLib.chip_ime_SubscribeAttribute_BarrierControl_BarrierMovingState.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_BarrierControl_BarrierMovingState.restype = ctypes.c_uint32 - # Cluster BarrierControl ReadAttribute BarrierSafetyStatus - self._chipLib.chip_ime_ReadAttribute_BarrierControl_BarrierSafetyStatus.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_BarrierControl_BarrierSafetyStatus.restype = ctypes.c_uint32 - # Cluster BarrierControl SubscribeAttribute BarrierSafetyStatus - self._chipLib.chip_ime_SubscribeAttribute_BarrierControl_BarrierSafetyStatus.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_BarrierControl_BarrierSafetyStatus.restype = ctypes.c_uint32 - # Cluster BarrierControl ReadAttribute BarrierCapabilities - self._chipLib.chip_ime_ReadAttribute_BarrierControl_BarrierCapabilities.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_BarrierControl_BarrierCapabilities.restype = ctypes.c_uint32 - # Cluster BarrierControl SubscribeAttribute BarrierCapabilities - self._chipLib.chip_ime_SubscribeAttribute_BarrierControl_BarrierCapabilities.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_BarrierControl_BarrierCapabilities.restype = ctypes.c_uint32 - # Cluster BarrierControl ReadAttribute BarrierPosition - self._chipLib.chip_ime_ReadAttribute_BarrierControl_BarrierPosition.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_BarrierControl_BarrierPosition.restype = ctypes.c_uint32 - # Cluster BarrierControl SubscribeAttribute BarrierPosition - self._chipLib.chip_ime_SubscribeAttribute_BarrierControl_BarrierPosition.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_BarrierControl_BarrierPosition.restype = ctypes.c_uint32 - # Cluster BarrierControl ReadAttribute ClusterRevision - self._chipLib.chip_ime_ReadAttribute_BarrierControl_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_BarrierControl_ClusterRevision.restype = ctypes.c_uint32 - # Cluster BarrierControl SubscribeAttribute ClusterRevision - self._chipLib.chip_ime_SubscribeAttribute_BarrierControl_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_BarrierControl_ClusterRevision.restype = ctypes.c_uint32 - # Cluster Basic - # Cluster Basic ReadAttribute InteractionModelVersion - self._chipLib.chip_ime_ReadAttribute_Basic_InteractionModelVersion.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_Basic_InteractionModelVersion.restype = ctypes.c_uint32 - # Cluster Basic SubscribeAttribute InteractionModelVersion - self._chipLib.chip_ime_SubscribeAttribute_Basic_InteractionModelVersion.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_Basic_InteractionModelVersion.restype = ctypes.c_uint32 - # Cluster Basic ReadAttribute VendorName - self._chipLib.chip_ime_ReadAttribute_Basic_VendorName.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_Basic_VendorName.restype = ctypes.c_uint32 - # Cluster Basic SubscribeAttribute VendorName - self._chipLib.chip_ime_SubscribeAttribute_Basic_VendorName.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_Basic_VendorName.restype = ctypes.c_uint32 - # Cluster Basic ReadAttribute VendorID - self._chipLib.chip_ime_ReadAttribute_Basic_VendorID.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_Basic_VendorID.restype = ctypes.c_uint32 - # Cluster Basic SubscribeAttribute VendorID - self._chipLib.chip_ime_SubscribeAttribute_Basic_VendorID.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_Basic_VendorID.restype = ctypes.c_uint32 - # Cluster Basic ReadAttribute ProductName - self._chipLib.chip_ime_ReadAttribute_Basic_ProductName.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_Basic_ProductName.restype = ctypes.c_uint32 - # Cluster Basic SubscribeAttribute ProductName - self._chipLib.chip_ime_SubscribeAttribute_Basic_ProductName.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_Basic_ProductName.restype = ctypes.c_uint32 - # Cluster Basic ReadAttribute ProductID - self._chipLib.chip_ime_ReadAttribute_Basic_ProductID.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_Basic_ProductID.restype = ctypes.c_uint32 - # Cluster Basic SubscribeAttribute ProductID - self._chipLib.chip_ime_SubscribeAttribute_Basic_ProductID.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_Basic_ProductID.restype = ctypes.c_uint32 - # Cluster Basic ReadAttribute NodeLabel - self._chipLib.chip_ime_ReadAttribute_Basic_NodeLabel.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_Basic_NodeLabel.restype = ctypes.c_uint32 - # Cluster Basic SubscribeAttribute NodeLabel - self._chipLib.chip_ime_SubscribeAttribute_Basic_NodeLabel.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_Basic_NodeLabel.restype = ctypes.c_uint32 - # Cluster Basic ReadAttribute Location - self._chipLib.chip_ime_ReadAttribute_Basic_Location.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_Basic_Location.restype = ctypes.c_uint32 - # Cluster Basic SubscribeAttribute Location - self._chipLib.chip_ime_SubscribeAttribute_Basic_Location.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_Basic_Location.restype = ctypes.c_uint32 - # Cluster Basic ReadAttribute HardwareVersion - self._chipLib.chip_ime_ReadAttribute_Basic_HardwareVersion.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_Basic_HardwareVersion.restype = ctypes.c_uint32 - # Cluster Basic SubscribeAttribute HardwareVersion - self._chipLib.chip_ime_SubscribeAttribute_Basic_HardwareVersion.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_Basic_HardwareVersion.restype = ctypes.c_uint32 - # Cluster Basic ReadAttribute HardwareVersionString - self._chipLib.chip_ime_ReadAttribute_Basic_HardwareVersionString.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_Basic_HardwareVersionString.restype = ctypes.c_uint32 - # Cluster Basic SubscribeAttribute HardwareVersionString - self._chipLib.chip_ime_SubscribeAttribute_Basic_HardwareVersionString.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_Basic_HardwareVersionString.restype = ctypes.c_uint32 - # Cluster Basic ReadAttribute SoftwareVersion - self._chipLib.chip_ime_ReadAttribute_Basic_SoftwareVersion.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_Basic_SoftwareVersion.restype = ctypes.c_uint32 - # Cluster Basic SubscribeAttribute SoftwareVersion - self._chipLib.chip_ime_SubscribeAttribute_Basic_SoftwareVersion.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_Basic_SoftwareVersion.restype = ctypes.c_uint32 - # Cluster Basic ReadAttribute SoftwareVersionString - self._chipLib.chip_ime_ReadAttribute_Basic_SoftwareVersionString.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_Basic_SoftwareVersionString.restype = ctypes.c_uint32 - # Cluster Basic SubscribeAttribute SoftwareVersionString - self._chipLib.chip_ime_SubscribeAttribute_Basic_SoftwareVersionString.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_Basic_SoftwareVersionString.restype = ctypes.c_uint32 - # Cluster Basic ReadAttribute ManufacturingDate - self._chipLib.chip_ime_ReadAttribute_Basic_ManufacturingDate.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_Basic_ManufacturingDate.restype = ctypes.c_uint32 - # Cluster Basic SubscribeAttribute ManufacturingDate - self._chipLib.chip_ime_SubscribeAttribute_Basic_ManufacturingDate.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_Basic_ManufacturingDate.restype = ctypes.c_uint32 - # Cluster Basic ReadAttribute PartNumber - self._chipLib.chip_ime_ReadAttribute_Basic_PartNumber.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_Basic_PartNumber.restype = ctypes.c_uint32 - # Cluster Basic SubscribeAttribute PartNumber - self._chipLib.chip_ime_SubscribeAttribute_Basic_PartNumber.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_Basic_PartNumber.restype = ctypes.c_uint32 - # Cluster Basic ReadAttribute ProductURL - self._chipLib.chip_ime_ReadAttribute_Basic_ProductURL.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_Basic_ProductURL.restype = ctypes.c_uint32 - # Cluster Basic SubscribeAttribute ProductURL - self._chipLib.chip_ime_SubscribeAttribute_Basic_ProductURL.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_Basic_ProductURL.restype = ctypes.c_uint32 - # Cluster Basic ReadAttribute ProductLabel - self._chipLib.chip_ime_ReadAttribute_Basic_ProductLabel.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_Basic_ProductLabel.restype = ctypes.c_uint32 - # Cluster Basic SubscribeAttribute ProductLabel - self._chipLib.chip_ime_SubscribeAttribute_Basic_ProductLabel.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_Basic_ProductLabel.restype = ctypes.c_uint32 - # Cluster Basic ReadAttribute SerialNumber - self._chipLib.chip_ime_ReadAttribute_Basic_SerialNumber.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_Basic_SerialNumber.restype = ctypes.c_uint32 - # Cluster Basic SubscribeAttribute SerialNumber - self._chipLib.chip_ime_SubscribeAttribute_Basic_SerialNumber.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_Basic_SerialNumber.restype = ctypes.c_uint32 - # Cluster Basic ReadAttribute LocalConfigDisabled - self._chipLib.chip_ime_ReadAttribute_Basic_LocalConfigDisabled.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_Basic_LocalConfigDisabled.restype = ctypes.c_uint32 - # Cluster Basic SubscribeAttribute LocalConfigDisabled - self._chipLib.chip_ime_SubscribeAttribute_Basic_LocalConfigDisabled.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_Basic_LocalConfigDisabled.restype = ctypes.c_uint32 - # Cluster Basic ReadAttribute Reachable - self._chipLib.chip_ime_ReadAttribute_Basic_Reachable.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_Basic_Reachable.restype = ctypes.c_uint32 - # Cluster Basic SubscribeAttribute Reachable - self._chipLib.chip_ime_SubscribeAttribute_Basic_Reachable.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_Basic_Reachable.restype = ctypes.c_uint32 - # Cluster Basic ReadAttribute UniqueID - self._chipLib.chip_ime_ReadAttribute_Basic_UniqueID.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_Basic_UniqueID.restype = ctypes.c_uint32 - # Cluster Basic ReadAttribute ClusterRevision - self._chipLib.chip_ime_ReadAttribute_Basic_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_Basic_ClusterRevision.restype = ctypes.c_uint32 - # Cluster Basic SubscribeAttribute ClusterRevision - self._chipLib.chip_ime_SubscribeAttribute_Basic_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_Basic_ClusterRevision.restype = ctypes.c_uint32 - # Cluster BinaryInputBasic - # Cluster BinaryInputBasic ReadAttribute OutOfService - self._chipLib.chip_ime_ReadAttribute_BinaryInputBasic_OutOfService.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_BinaryInputBasic_OutOfService.restype = ctypes.c_uint32 - # Cluster BinaryInputBasic SubscribeAttribute OutOfService - self._chipLib.chip_ime_SubscribeAttribute_BinaryInputBasic_OutOfService.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_BinaryInputBasic_OutOfService.restype = ctypes.c_uint32 - # Cluster BinaryInputBasic ReadAttribute PresentValue - self._chipLib.chip_ime_ReadAttribute_BinaryInputBasic_PresentValue.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_BinaryInputBasic_PresentValue.restype = ctypes.c_uint32 - # Cluster BinaryInputBasic SubscribeAttribute PresentValue - self._chipLib.chip_ime_SubscribeAttribute_BinaryInputBasic_PresentValue.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_BinaryInputBasic_PresentValue.restype = ctypes.c_uint32 - # Cluster BinaryInputBasic ReadAttribute StatusFlags - self._chipLib.chip_ime_ReadAttribute_BinaryInputBasic_StatusFlags.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_BinaryInputBasic_StatusFlags.restype = ctypes.c_uint32 - # Cluster BinaryInputBasic SubscribeAttribute StatusFlags - self._chipLib.chip_ime_SubscribeAttribute_BinaryInputBasic_StatusFlags.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_BinaryInputBasic_StatusFlags.restype = ctypes.c_uint32 - # Cluster BinaryInputBasic ReadAttribute ClusterRevision - self._chipLib.chip_ime_ReadAttribute_BinaryInputBasic_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_BinaryInputBasic_ClusterRevision.restype = ctypes.c_uint32 - # Cluster BinaryInputBasic SubscribeAttribute ClusterRevision - self._chipLib.chip_ime_SubscribeAttribute_BinaryInputBasic_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_BinaryInputBasic_ClusterRevision.restype = ctypes.c_uint32 - # Cluster Binding - # Cluster Binding ReadAttribute ClusterRevision - self._chipLib.chip_ime_ReadAttribute_Binding_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_Binding_ClusterRevision.restype = ctypes.c_uint32 - # Cluster Binding SubscribeAttribute ClusterRevision - self._chipLib.chip_ime_SubscribeAttribute_Binding_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_Binding_ClusterRevision.restype = ctypes.c_uint32 - # Cluster BooleanState - # Cluster BooleanState ReadAttribute StateValue - self._chipLib.chip_ime_ReadAttribute_BooleanState_StateValue.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_BooleanState_StateValue.restype = ctypes.c_uint32 - # Cluster BooleanState SubscribeAttribute StateValue - self._chipLib.chip_ime_SubscribeAttribute_BooleanState_StateValue.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_BooleanState_StateValue.restype = ctypes.c_uint32 - # Cluster BooleanState ReadAttribute ClusterRevision - self._chipLib.chip_ime_ReadAttribute_BooleanState_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_BooleanState_ClusterRevision.restype = ctypes.c_uint32 - # Cluster BooleanState SubscribeAttribute ClusterRevision - self._chipLib.chip_ime_SubscribeAttribute_BooleanState_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_BooleanState_ClusterRevision.restype = ctypes.c_uint32 - # Cluster BridgedActions - # Cluster BridgedActions ReadAttribute ActionList - self._chipLib.chip_ime_ReadAttribute_BridgedActions_ActionList.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_BridgedActions_ActionList.restype = ctypes.c_uint32 - # Cluster BridgedActions ReadAttribute EndpointList - self._chipLib.chip_ime_ReadAttribute_BridgedActions_EndpointList.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_BridgedActions_EndpointList.restype = ctypes.c_uint32 - # Cluster BridgedActions ReadAttribute SetupUrl - self._chipLib.chip_ime_ReadAttribute_BridgedActions_SetupUrl.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_BridgedActions_SetupUrl.restype = ctypes.c_uint32 - # Cluster BridgedActions SubscribeAttribute SetupUrl - self._chipLib.chip_ime_SubscribeAttribute_BridgedActions_SetupUrl.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_BridgedActions_SetupUrl.restype = ctypes.c_uint32 - # Cluster BridgedActions ReadAttribute ClusterRevision - self._chipLib.chip_ime_ReadAttribute_BridgedActions_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_BridgedActions_ClusterRevision.restype = ctypes.c_uint32 - # Cluster BridgedActions SubscribeAttribute ClusterRevision - self._chipLib.chip_ime_SubscribeAttribute_BridgedActions_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_BridgedActions_ClusterRevision.restype = ctypes.c_uint32 - # Cluster BridgedDeviceBasic - # Cluster BridgedDeviceBasic ReadAttribute VendorName - self._chipLib.chip_ime_ReadAttribute_BridgedDeviceBasic_VendorName.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_BridgedDeviceBasic_VendorName.restype = ctypes.c_uint32 - # Cluster BridgedDeviceBasic SubscribeAttribute VendorName - self._chipLib.chip_ime_SubscribeAttribute_BridgedDeviceBasic_VendorName.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_BridgedDeviceBasic_VendorName.restype = ctypes.c_uint32 - # Cluster BridgedDeviceBasic ReadAttribute VendorID - self._chipLib.chip_ime_ReadAttribute_BridgedDeviceBasic_VendorID.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_BridgedDeviceBasic_VendorID.restype = ctypes.c_uint32 - # Cluster BridgedDeviceBasic SubscribeAttribute VendorID - self._chipLib.chip_ime_SubscribeAttribute_BridgedDeviceBasic_VendorID.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_BridgedDeviceBasic_VendorID.restype = ctypes.c_uint32 - # Cluster BridgedDeviceBasic ReadAttribute ProductName - self._chipLib.chip_ime_ReadAttribute_BridgedDeviceBasic_ProductName.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_BridgedDeviceBasic_ProductName.restype = ctypes.c_uint32 - # Cluster BridgedDeviceBasic SubscribeAttribute ProductName - self._chipLib.chip_ime_SubscribeAttribute_BridgedDeviceBasic_ProductName.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_BridgedDeviceBasic_ProductName.restype = ctypes.c_uint32 - # Cluster BridgedDeviceBasic ReadAttribute NodeLabel - self._chipLib.chip_ime_ReadAttribute_BridgedDeviceBasic_NodeLabel.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_BridgedDeviceBasic_NodeLabel.restype = ctypes.c_uint32 - # Cluster BridgedDeviceBasic SubscribeAttribute NodeLabel - self._chipLib.chip_ime_SubscribeAttribute_BridgedDeviceBasic_NodeLabel.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_BridgedDeviceBasic_NodeLabel.restype = ctypes.c_uint32 - # Cluster BridgedDeviceBasic ReadAttribute HardwareVersion - self._chipLib.chip_ime_ReadAttribute_BridgedDeviceBasic_HardwareVersion.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_BridgedDeviceBasic_HardwareVersion.restype = ctypes.c_uint32 - # Cluster BridgedDeviceBasic SubscribeAttribute HardwareVersion - self._chipLib.chip_ime_SubscribeAttribute_BridgedDeviceBasic_HardwareVersion.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_BridgedDeviceBasic_HardwareVersion.restype = ctypes.c_uint32 - # Cluster BridgedDeviceBasic ReadAttribute HardwareVersionString - self._chipLib.chip_ime_ReadAttribute_BridgedDeviceBasic_HardwareVersionString.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_BridgedDeviceBasic_HardwareVersionString.restype = ctypes.c_uint32 - # Cluster BridgedDeviceBasic SubscribeAttribute HardwareVersionString - self._chipLib.chip_ime_SubscribeAttribute_BridgedDeviceBasic_HardwareVersionString.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_BridgedDeviceBasic_HardwareVersionString.restype = ctypes.c_uint32 - # Cluster BridgedDeviceBasic ReadAttribute SoftwareVersion - self._chipLib.chip_ime_ReadAttribute_BridgedDeviceBasic_SoftwareVersion.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_BridgedDeviceBasic_SoftwareVersion.restype = ctypes.c_uint32 - # Cluster BridgedDeviceBasic SubscribeAttribute SoftwareVersion - self._chipLib.chip_ime_SubscribeAttribute_BridgedDeviceBasic_SoftwareVersion.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_BridgedDeviceBasic_SoftwareVersion.restype = ctypes.c_uint32 - # Cluster BridgedDeviceBasic ReadAttribute SoftwareVersionString - self._chipLib.chip_ime_ReadAttribute_BridgedDeviceBasic_SoftwareVersionString.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_BridgedDeviceBasic_SoftwareVersionString.restype = ctypes.c_uint32 - # Cluster BridgedDeviceBasic SubscribeAttribute SoftwareVersionString - self._chipLib.chip_ime_SubscribeAttribute_BridgedDeviceBasic_SoftwareVersionString.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_BridgedDeviceBasic_SoftwareVersionString.restype = ctypes.c_uint32 - # Cluster BridgedDeviceBasic ReadAttribute ManufacturingDate - self._chipLib.chip_ime_ReadAttribute_BridgedDeviceBasic_ManufacturingDate.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_BridgedDeviceBasic_ManufacturingDate.restype = ctypes.c_uint32 - # Cluster BridgedDeviceBasic SubscribeAttribute ManufacturingDate - self._chipLib.chip_ime_SubscribeAttribute_BridgedDeviceBasic_ManufacturingDate.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_BridgedDeviceBasic_ManufacturingDate.restype = ctypes.c_uint32 - # Cluster BridgedDeviceBasic ReadAttribute PartNumber - self._chipLib.chip_ime_ReadAttribute_BridgedDeviceBasic_PartNumber.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_BridgedDeviceBasic_PartNumber.restype = ctypes.c_uint32 - # Cluster BridgedDeviceBasic SubscribeAttribute PartNumber - self._chipLib.chip_ime_SubscribeAttribute_BridgedDeviceBasic_PartNumber.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_BridgedDeviceBasic_PartNumber.restype = ctypes.c_uint32 - # Cluster BridgedDeviceBasic ReadAttribute ProductURL - self._chipLib.chip_ime_ReadAttribute_BridgedDeviceBasic_ProductURL.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_BridgedDeviceBasic_ProductURL.restype = ctypes.c_uint32 - # Cluster BridgedDeviceBasic SubscribeAttribute ProductURL - self._chipLib.chip_ime_SubscribeAttribute_BridgedDeviceBasic_ProductURL.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_BridgedDeviceBasic_ProductURL.restype = ctypes.c_uint32 - # Cluster BridgedDeviceBasic ReadAttribute ProductLabel - self._chipLib.chip_ime_ReadAttribute_BridgedDeviceBasic_ProductLabel.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_BridgedDeviceBasic_ProductLabel.restype = ctypes.c_uint32 - # Cluster BridgedDeviceBasic SubscribeAttribute ProductLabel - self._chipLib.chip_ime_SubscribeAttribute_BridgedDeviceBasic_ProductLabel.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_BridgedDeviceBasic_ProductLabel.restype = ctypes.c_uint32 - # Cluster BridgedDeviceBasic ReadAttribute SerialNumber - self._chipLib.chip_ime_ReadAttribute_BridgedDeviceBasic_SerialNumber.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_BridgedDeviceBasic_SerialNumber.restype = ctypes.c_uint32 - # Cluster BridgedDeviceBasic SubscribeAttribute SerialNumber - self._chipLib.chip_ime_SubscribeAttribute_BridgedDeviceBasic_SerialNumber.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_BridgedDeviceBasic_SerialNumber.restype = ctypes.c_uint32 - # Cluster BridgedDeviceBasic ReadAttribute Reachable - self._chipLib.chip_ime_ReadAttribute_BridgedDeviceBasic_Reachable.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_BridgedDeviceBasic_Reachable.restype = ctypes.c_uint32 - # Cluster BridgedDeviceBasic SubscribeAttribute Reachable - self._chipLib.chip_ime_SubscribeAttribute_BridgedDeviceBasic_Reachable.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_BridgedDeviceBasic_Reachable.restype = ctypes.c_uint32 - # Cluster BridgedDeviceBasic ReadAttribute ClusterRevision - self._chipLib.chip_ime_ReadAttribute_BridgedDeviceBasic_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_BridgedDeviceBasic_ClusterRevision.restype = ctypes.c_uint32 - # Cluster BridgedDeviceBasic SubscribeAttribute ClusterRevision - self._chipLib.chip_ime_SubscribeAttribute_BridgedDeviceBasic_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_BridgedDeviceBasic_ClusterRevision.restype = ctypes.c_uint32 - # Cluster ColorControl - # Cluster ColorControl ReadAttribute CurrentHue - self._chipLib.chip_ime_ReadAttribute_ColorControl_CurrentHue.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ColorControl_CurrentHue.restype = ctypes.c_uint32 - # Cluster ColorControl SubscribeAttribute CurrentHue - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_CurrentHue.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_CurrentHue.restype = ctypes.c_uint32 - # Cluster ColorControl ReadAttribute CurrentSaturation - self._chipLib.chip_ime_ReadAttribute_ColorControl_CurrentSaturation.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ColorControl_CurrentSaturation.restype = ctypes.c_uint32 - # Cluster ColorControl SubscribeAttribute CurrentSaturation - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_CurrentSaturation.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_CurrentSaturation.restype = ctypes.c_uint32 - # Cluster ColorControl ReadAttribute RemainingTime - self._chipLib.chip_ime_ReadAttribute_ColorControl_RemainingTime.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ColorControl_RemainingTime.restype = ctypes.c_uint32 - # Cluster ColorControl SubscribeAttribute RemainingTime - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_RemainingTime.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_RemainingTime.restype = ctypes.c_uint32 - # Cluster ColorControl ReadAttribute CurrentX - self._chipLib.chip_ime_ReadAttribute_ColorControl_CurrentX.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ColorControl_CurrentX.restype = ctypes.c_uint32 - # Cluster ColorControl SubscribeAttribute CurrentX - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_CurrentX.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_CurrentX.restype = ctypes.c_uint32 - # Cluster ColorControl ReadAttribute CurrentY - self._chipLib.chip_ime_ReadAttribute_ColorControl_CurrentY.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ColorControl_CurrentY.restype = ctypes.c_uint32 - # Cluster ColorControl SubscribeAttribute CurrentY - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_CurrentY.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_CurrentY.restype = ctypes.c_uint32 - # Cluster ColorControl ReadAttribute DriftCompensation - self._chipLib.chip_ime_ReadAttribute_ColorControl_DriftCompensation.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ColorControl_DriftCompensation.restype = ctypes.c_uint32 - # Cluster ColorControl SubscribeAttribute DriftCompensation - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_DriftCompensation.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_DriftCompensation.restype = ctypes.c_uint32 - # Cluster ColorControl ReadAttribute CompensationText - self._chipLib.chip_ime_ReadAttribute_ColorControl_CompensationText.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ColorControl_CompensationText.restype = ctypes.c_uint32 - # Cluster ColorControl SubscribeAttribute CompensationText - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_CompensationText.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_CompensationText.restype = ctypes.c_uint32 - # Cluster ColorControl ReadAttribute ColorTemperature - self._chipLib.chip_ime_ReadAttribute_ColorControl_ColorTemperature.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ColorControl_ColorTemperature.restype = ctypes.c_uint32 - # Cluster ColorControl SubscribeAttribute ColorTemperature - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_ColorTemperature.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_ColorTemperature.restype = ctypes.c_uint32 - # Cluster ColorControl ReadAttribute ColorMode - self._chipLib.chip_ime_ReadAttribute_ColorControl_ColorMode.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ColorControl_ColorMode.restype = ctypes.c_uint32 - # Cluster ColorControl SubscribeAttribute ColorMode - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_ColorMode.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_ColorMode.restype = ctypes.c_uint32 - # Cluster ColorControl ReadAttribute ColorControlOptions - self._chipLib.chip_ime_ReadAttribute_ColorControl_ColorControlOptions.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ColorControl_ColorControlOptions.restype = ctypes.c_uint32 - # Cluster ColorControl SubscribeAttribute ColorControlOptions - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_ColorControlOptions.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_ColorControlOptions.restype = ctypes.c_uint32 - # Cluster ColorControl ReadAttribute NumberOfPrimaries - self._chipLib.chip_ime_ReadAttribute_ColorControl_NumberOfPrimaries.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ColorControl_NumberOfPrimaries.restype = ctypes.c_uint32 - # Cluster ColorControl SubscribeAttribute NumberOfPrimaries - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_NumberOfPrimaries.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_NumberOfPrimaries.restype = ctypes.c_uint32 - # Cluster ColorControl ReadAttribute Primary1X - self._chipLib.chip_ime_ReadAttribute_ColorControl_Primary1X.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ColorControl_Primary1X.restype = ctypes.c_uint32 - # Cluster ColorControl SubscribeAttribute Primary1X - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_Primary1X.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_Primary1X.restype = ctypes.c_uint32 - # Cluster ColorControl ReadAttribute Primary1Y - self._chipLib.chip_ime_ReadAttribute_ColorControl_Primary1Y.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ColorControl_Primary1Y.restype = ctypes.c_uint32 - # Cluster ColorControl SubscribeAttribute Primary1Y - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_Primary1Y.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_Primary1Y.restype = ctypes.c_uint32 - # Cluster ColorControl ReadAttribute Primary1Intensity - self._chipLib.chip_ime_ReadAttribute_ColorControl_Primary1Intensity.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ColorControl_Primary1Intensity.restype = ctypes.c_uint32 - # Cluster ColorControl SubscribeAttribute Primary1Intensity - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_Primary1Intensity.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_Primary1Intensity.restype = ctypes.c_uint32 - # Cluster ColorControl ReadAttribute Primary2X - self._chipLib.chip_ime_ReadAttribute_ColorControl_Primary2X.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ColorControl_Primary2X.restype = ctypes.c_uint32 - # Cluster ColorControl SubscribeAttribute Primary2X - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_Primary2X.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_Primary2X.restype = ctypes.c_uint32 - # Cluster ColorControl ReadAttribute Primary2Y - self._chipLib.chip_ime_ReadAttribute_ColorControl_Primary2Y.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ColorControl_Primary2Y.restype = ctypes.c_uint32 - # Cluster ColorControl SubscribeAttribute Primary2Y - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_Primary2Y.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_Primary2Y.restype = ctypes.c_uint32 - # Cluster ColorControl ReadAttribute Primary2Intensity - self._chipLib.chip_ime_ReadAttribute_ColorControl_Primary2Intensity.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ColorControl_Primary2Intensity.restype = ctypes.c_uint32 - # Cluster ColorControl SubscribeAttribute Primary2Intensity - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_Primary2Intensity.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_Primary2Intensity.restype = ctypes.c_uint32 - # Cluster ColorControl ReadAttribute Primary3X - self._chipLib.chip_ime_ReadAttribute_ColorControl_Primary3X.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ColorControl_Primary3X.restype = ctypes.c_uint32 - # Cluster ColorControl SubscribeAttribute Primary3X - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_Primary3X.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_Primary3X.restype = ctypes.c_uint32 - # Cluster ColorControl ReadAttribute Primary3Y - self._chipLib.chip_ime_ReadAttribute_ColorControl_Primary3Y.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ColorControl_Primary3Y.restype = ctypes.c_uint32 - # Cluster ColorControl SubscribeAttribute Primary3Y - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_Primary3Y.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_Primary3Y.restype = ctypes.c_uint32 - # Cluster ColorControl ReadAttribute Primary3Intensity - self._chipLib.chip_ime_ReadAttribute_ColorControl_Primary3Intensity.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ColorControl_Primary3Intensity.restype = ctypes.c_uint32 - # Cluster ColorControl SubscribeAttribute Primary3Intensity - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_Primary3Intensity.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_Primary3Intensity.restype = ctypes.c_uint32 - # Cluster ColorControl ReadAttribute Primary4X - self._chipLib.chip_ime_ReadAttribute_ColorControl_Primary4X.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ColorControl_Primary4X.restype = ctypes.c_uint32 - # Cluster ColorControl SubscribeAttribute Primary4X - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_Primary4X.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_Primary4X.restype = ctypes.c_uint32 - # Cluster ColorControl ReadAttribute Primary4Y - self._chipLib.chip_ime_ReadAttribute_ColorControl_Primary4Y.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ColorControl_Primary4Y.restype = ctypes.c_uint32 - # Cluster ColorControl SubscribeAttribute Primary4Y - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_Primary4Y.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_Primary4Y.restype = ctypes.c_uint32 - # Cluster ColorControl ReadAttribute Primary4Intensity - self._chipLib.chip_ime_ReadAttribute_ColorControl_Primary4Intensity.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ColorControl_Primary4Intensity.restype = ctypes.c_uint32 - # Cluster ColorControl SubscribeAttribute Primary4Intensity - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_Primary4Intensity.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_Primary4Intensity.restype = ctypes.c_uint32 - # Cluster ColorControl ReadAttribute Primary5X - self._chipLib.chip_ime_ReadAttribute_ColorControl_Primary5X.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ColorControl_Primary5X.restype = ctypes.c_uint32 - # Cluster ColorControl SubscribeAttribute Primary5X - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_Primary5X.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_Primary5X.restype = ctypes.c_uint32 - # Cluster ColorControl ReadAttribute Primary5Y - self._chipLib.chip_ime_ReadAttribute_ColorControl_Primary5Y.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ColorControl_Primary5Y.restype = ctypes.c_uint32 - # Cluster ColorControl SubscribeAttribute Primary5Y - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_Primary5Y.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_Primary5Y.restype = ctypes.c_uint32 - # Cluster ColorControl ReadAttribute Primary5Intensity - self._chipLib.chip_ime_ReadAttribute_ColorControl_Primary5Intensity.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ColorControl_Primary5Intensity.restype = ctypes.c_uint32 - # Cluster ColorControl SubscribeAttribute Primary5Intensity - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_Primary5Intensity.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_Primary5Intensity.restype = ctypes.c_uint32 - # Cluster ColorControl ReadAttribute Primary6X - self._chipLib.chip_ime_ReadAttribute_ColorControl_Primary6X.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ColorControl_Primary6X.restype = ctypes.c_uint32 - # Cluster ColorControl SubscribeAttribute Primary6X - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_Primary6X.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_Primary6X.restype = ctypes.c_uint32 - # Cluster ColorControl ReadAttribute Primary6Y - self._chipLib.chip_ime_ReadAttribute_ColorControl_Primary6Y.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ColorControl_Primary6Y.restype = ctypes.c_uint32 - # Cluster ColorControl SubscribeAttribute Primary6Y - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_Primary6Y.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_Primary6Y.restype = ctypes.c_uint32 - # Cluster ColorControl ReadAttribute Primary6Intensity - self._chipLib.chip_ime_ReadAttribute_ColorControl_Primary6Intensity.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ColorControl_Primary6Intensity.restype = ctypes.c_uint32 - # Cluster ColorControl SubscribeAttribute Primary6Intensity - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_Primary6Intensity.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_Primary6Intensity.restype = ctypes.c_uint32 - # Cluster ColorControl ReadAttribute WhitePointX - self._chipLib.chip_ime_ReadAttribute_ColorControl_WhitePointX.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ColorControl_WhitePointX.restype = ctypes.c_uint32 - # Cluster ColorControl SubscribeAttribute WhitePointX - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_WhitePointX.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_WhitePointX.restype = ctypes.c_uint32 - # Cluster ColorControl ReadAttribute WhitePointY - self._chipLib.chip_ime_ReadAttribute_ColorControl_WhitePointY.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ColorControl_WhitePointY.restype = ctypes.c_uint32 - # Cluster ColorControl SubscribeAttribute WhitePointY - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_WhitePointY.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_WhitePointY.restype = ctypes.c_uint32 - # Cluster ColorControl ReadAttribute ColorPointRX - self._chipLib.chip_ime_ReadAttribute_ColorControl_ColorPointRX.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ColorControl_ColorPointRX.restype = ctypes.c_uint32 - # Cluster ColorControl SubscribeAttribute ColorPointRX - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_ColorPointRX.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_ColorPointRX.restype = ctypes.c_uint32 - # Cluster ColorControl ReadAttribute ColorPointRY - self._chipLib.chip_ime_ReadAttribute_ColorControl_ColorPointRY.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ColorControl_ColorPointRY.restype = ctypes.c_uint32 - # Cluster ColorControl SubscribeAttribute ColorPointRY - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_ColorPointRY.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_ColorPointRY.restype = ctypes.c_uint32 - # Cluster ColorControl ReadAttribute ColorPointRIntensity - self._chipLib.chip_ime_ReadAttribute_ColorControl_ColorPointRIntensity.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ColorControl_ColorPointRIntensity.restype = ctypes.c_uint32 - # Cluster ColorControl SubscribeAttribute ColorPointRIntensity - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_ColorPointRIntensity.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_ColorPointRIntensity.restype = ctypes.c_uint32 - # Cluster ColorControl ReadAttribute ColorPointGX - self._chipLib.chip_ime_ReadAttribute_ColorControl_ColorPointGX.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ColorControl_ColorPointGX.restype = ctypes.c_uint32 - # Cluster ColorControl SubscribeAttribute ColorPointGX - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_ColorPointGX.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_ColorPointGX.restype = ctypes.c_uint32 - # Cluster ColorControl ReadAttribute ColorPointGY - self._chipLib.chip_ime_ReadAttribute_ColorControl_ColorPointGY.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ColorControl_ColorPointGY.restype = ctypes.c_uint32 - # Cluster ColorControl SubscribeAttribute ColorPointGY - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_ColorPointGY.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_ColorPointGY.restype = ctypes.c_uint32 - # Cluster ColorControl ReadAttribute ColorPointGIntensity - self._chipLib.chip_ime_ReadAttribute_ColorControl_ColorPointGIntensity.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ColorControl_ColorPointGIntensity.restype = ctypes.c_uint32 - # Cluster ColorControl SubscribeAttribute ColorPointGIntensity - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_ColorPointGIntensity.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_ColorPointGIntensity.restype = ctypes.c_uint32 - # Cluster ColorControl ReadAttribute ColorPointBX - self._chipLib.chip_ime_ReadAttribute_ColorControl_ColorPointBX.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ColorControl_ColorPointBX.restype = ctypes.c_uint32 - # Cluster ColorControl SubscribeAttribute ColorPointBX - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_ColorPointBX.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_ColorPointBX.restype = ctypes.c_uint32 - # Cluster ColorControl ReadAttribute ColorPointBY - self._chipLib.chip_ime_ReadAttribute_ColorControl_ColorPointBY.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ColorControl_ColorPointBY.restype = ctypes.c_uint32 - # Cluster ColorControl SubscribeAttribute ColorPointBY - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_ColorPointBY.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_ColorPointBY.restype = ctypes.c_uint32 - # Cluster ColorControl ReadAttribute ColorPointBIntensity - self._chipLib.chip_ime_ReadAttribute_ColorControl_ColorPointBIntensity.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ColorControl_ColorPointBIntensity.restype = ctypes.c_uint32 - # Cluster ColorControl SubscribeAttribute ColorPointBIntensity - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_ColorPointBIntensity.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_ColorPointBIntensity.restype = ctypes.c_uint32 - # Cluster ColorControl ReadAttribute EnhancedCurrentHue - self._chipLib.chip_ime_ReadAttribute_ColorControl_EnhancedCurrentHue.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ColorControl_EnhancedCurrentHue.restype = ctypes.c_uint32 - # Cluster ColorControl SubscribeAttribute EnhancedCurrentHue - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_EnhancedCurrentHue.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_EnhancedCurrentHue.restype = ctypes.c_uint32 - # Cluster ColorControl ReadAttribute EnhancedColorMode - self._chipLib.chip_ime_ReadAttribute_ColorControl_EnhancedColorMode.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ColorControl_EnhancedColorMode.restype = ctypes.c_uint32 - # Cluster ColorControl SubscribeAttribute EnhancedColorMode - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_EnhancedColorMode.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_EnhancedColorMode.restype = ctypes.c_uint32 - # Cluster ColorControl ReadAttribute ColorLoopActive - self._chipLib.chip_ime_ReadAttribute_ColorControl_ColorLoopActive.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ColorControl_ColorLoopActive.restype = ctypes.c_uint32 - # Cluster ColorControl SubscribeAttribute ColorLoopActive - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_ColorLoopActive.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_ColorLoopActive.restype = ctypes.c_uint32 - # Cluster ColorControl ReadAttribute ColorLoopDirection - self._chipLib.chip_ime_ReadAttribute_ColorControl_ColorLoopDirection.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ColorControl_ColorLoopDirection.restype = ctypes.c_uint32 - # Cluster ColorControl SubscribeAttribute ColorLoopDirection - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_ColorLoopDirection.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_ColorLoopDirection.restype = ctypes.c_uint32 - # Cluster ColorControl ReadAttribute ColorLoopTime - self._chipLib.chip_ime_ReadAttribute_ColorControl_ColorLoopTime.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ColorControl_ColorLoopTime.restype = ctypes.c_uint32 - # Cluster ColorControl SubscribeAttribute ColorLoopTime - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_ColorLoopTime.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_ColorLoopTime.restype = ctypes.c_uint32 - # Cluster ColorControl ReadAttribute ColorLoopStartEnhancedHue - self._chipLib.chip_ime_ReadAttribute_ColorControl_ColorLoopStartEnhancedHue.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ColorControl_ColorLoopStartEnhancedHue.restype = ctypes.c_uint32 - # Cluster ColorControl SubscribeAttribute ColorLoopStartEnhancedHue - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_ColorLoopStartEnhancedHue.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_ColorLoopStartEnhancedHue.restype = ctypes.c_uint32 - # Cluster ColorControl ReadAttribute ColorLoopStoredEnhancedHue - self._chipLib.chip_ime_ReadAttribute_ColorControl_ColorLoopStoredEnhancedHue.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ColorControl_ColorLoopStoredEnhancedHue.restype = ctypes.c_uint32 - # Cluster ColorControl SubscribeAttribute ColorLoopStoredEnhancedHue - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_ColorLoopStoredEnhancedHue.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_ColorLoopStoredEnhancedHue.restype = ctypes.c_uint32 - # Cluster ColorControl ReadAttribute ColorCapabilities - self._chipLib.chip_ime_ReadAttribute_ColorControl_ColorCapabilities.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ColorControl_ColorCapabilities.restype = ctypes.c_uint32 - # Cluster ColorControl SubscribeAttribute ColorCapabilities - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_ColorCapabilities.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_ColorCapabilities.restype = ctypes.c_uint32 - # Cluster ColorControl ReadAttribute ColorTempPhysicalMin - self._chipLib.chip_ime_ReadAttribute_ColorControl_ColorTempPhysicalMin.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ColorControl_ColorTempPhysicalMin.restype = ctypes.c_uint32 - # Cluster ColorControl SubscribeAttribute ColorTempPhysicalMin - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_ColorTempPhysicalMin.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_ColorTempPhysicalMin.restype = ctypes.c_uint32 - # Cluster ColorControl ReadAttribute ColorTempPhysicalMax - self._chipLib.chip_ime_ReadAttribute_ColorControl_ColorTempPhysicalMax.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ColorControl_ColorTempPhysicalMax.restype = ctypes.c_uint32 - # Cluster ColorControl SubscribeAttribute ColorTempPhysicalMax - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_ColorTempPhysicalMax.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_ColorTempPhysicalMax.restype = ctypes.c_uint32 - # Cluster ColorControl ReadAttribute CoupleColorTempToLevelMinMireds - self._chipLib.chip_ime_ReadAttribute_ColorControl_CoupleColorTempToLevelMinMireds.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ColorControl_CoupleColorTempToLevelMinMireds.restype = ctypes.c_uint32 - # Cluster ColorControl SubscribeAttribute CoupleColorTempToLevelMinMireds - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_CoupleColorTempToLevelMinMireds.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_CoupleColorTempToLevelMinMireds.restype = ctypes.c_uint32 - # Cluster ColorControl ReadAttribute StartUpColorTemperatureMireds - self._chipLib.chip_ime_ReadAttribute_ColorControl_StartUpColorTemperatureMireds.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ColorControl_StartUpColorTemperatureMireds.restype = ctypes.c_uint32 - # Cluster ColorControl SubscribeAttribute StartUpColorTemperatureMireds - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_StartUpColorTemperatureMireds.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_StartUpColorTemperatureMireds.restype = ctypes.c_uint32 - # Cluster ColorControl ReadAttribute ClusterRevision - self._chipLib.chip_ime_ReadAttribute_ColorControl_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ColorControl_ClusterRevision.restype = ctypes.c_uint32 - # Cluster ColorControl SubscribeAttribute ClusterRevision - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ColorControl_ClusterRevision.restype = ctypes.c_uint32 - # Cluster ContentLauncher - # Cluster ContentLauncher ReadAttribute AcceptsHeaderList - self._chipLib.chip_ime_ReadAttribute_ContentLauncher_AcceptsHeaderList.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ContentLauncher_AcceptsHeaderList.restype = ctypes.c_uint32 - # Cluster ContentLauncher ReadAttribute SupportedStreamingTypes - self._chipLib.chip_ime_ReadAttribute_ContentLauncher_SupportedStreamingTypes.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ContentLauncher_SupportedStreamingTypes.restype = ctypes.c_uint32 - # Cluster ContentLauncher ReadAttribute ClusterRevision - self._chipLib.chip_ime_ReadAttribute_ContentLauncher_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ContentLauncher_ClusterRevision.restype = ctypes.c_uint32 - # Cluster ContentLauncher SubscribeAttribute ClusterRevision - self._chipLib.chip_ime_SubscribeAttribute_ContentLauncher_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ContentLauncher_ClusterRevision.restype = ctypes.c_uint32 - # Cluster Descriptor - # Cluster Descriptor ReadAttribute DeviceList - self._chipLib.chip_ime_ReadAttribute_Descriptor_DeviceList.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_Descriptor_DeviceList.restype = ctypes.c_uint32 - # Cluster Descriptor ReadAttribute ServerList - self._chipLib.chip_ime_ReadAttribute_Descriptor_ServerList.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_Descriptor_ServerList.restype = ctypes.c_uint32 - # Cluster Descriptor ReadAttribute ClientList - self._chipLib.chip_ime_ReadAttribute_Descriptor_ClientList.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_Descriptor_ClientList.restype = ctypes.c_uint32 - # Cluster Descriptor ReadAttribute PartsList - self._chipLib.chip_ime_ReadAttribute_Descriptor_PartsList.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_Descriptor_PartsList.restype = ctypes.c_uint32 - # Cluster Descriptor ReadAttribute ClusterRevision - self._chipLib.chip_ime_ReadAttribute_Descriptor_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_Descriptor_ClusterRevision.restype = ctypes.c_uint32 - # Cluster Descriptor SubscribeAttribute ClusterRevision - self._chipLib.chip_ime_SubscribeAttribute_Descriptor_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_Descriptor_ClusterRevision.restype = ctypes.c_uint32 - # Cluster DiagnosticLogs - # Cluster DoorLock - # Cluster DoorLock ReadAttribute LockState - self._chipLib.chip_ime_ReadAttribute_DoorLock_LockState.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_DoorLock_LockState.restype = ctypes.c_uint32 - # Cluster DoorLock SubscribeAttribute LockState - self._chipLib.chip_ime_SubscribeAttribute_DoorLock_LockState.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_DoorLock_LockState.restype = ctypes.c_uint32 - # Cluster DoorLock ReadAttribute LockType - self._chipLib.chip_ime_ReadAttribute_DoorLock_LockType.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_DoorLock_LockType.restype = ctypes.c_uint32 - # Cluster DoorLock SubscribeAttribute LockType - self._chipLib.chip_ime_SubscribeAttribute_DoorLock_LockType.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_DoorLock_LockType.restype = ctypes.c_uint32 - # Cluster DoorLock ReadAttribute ActuatorEnabled - self._chipLib.chip_ime_ReadAttribute_DoorLock_ActuatorEnabled.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_DoorLock_ActuatorEnabled.restype = ctypes.c_uint32 - # Cluster DoorLock SubscribeAttribute ActuatorEnabled - self._chipLib.chip_ime_SubscribeAttribute_DoorLock_ActuatorEnabled.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_DoorLock_ActuatorEnabled.restype = ctypes.c_uint32 - # Cluster DoorLock ReadAttribute ClusterRevision - self._chipLib.chip_ime_ReadAttribute_DoorLock_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_DoorLock_ClusterRevision.restype = ctypes.c_uint32 - # Cluster DoorLock SubscribeAttribute ClusterRevision - self._chipLib.chip_ime_SubscribeAttribute_DoorLock_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_DoorLock_ClusterRevision.restype = ctypes.c_uint32 - # Cluster ElectricalMeasurement - # Cluster ElectricalMeasurement ReadAttribute MeasurementType - self._chipLib.chip_ime_ReadAttribute_ElectricalMeasurement_MeasurementType.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ElectricalMeasurement_MeasurementType.restype = ctypes.c_uint32 - # Cluster ElectricalMeasurement SubscribeAttribute MeasurementType - self._chipLib.chip_ime_SubscribeAttribute_ElectricalMeasurement_MeasurementType.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ElectricalMeasurement_MeasurementType.restype = ctypes.c_uint32 - # Cluster ElectricalMeasurement ReadAttribute TotalActivePower - self._chipLib.chip_ime_ReadAttribute_ElectricalMeasurement_TotalActivePower.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ElectricalMeasurement_TotalActivePower.restype = ctypes.c_uint32 - # Cluster ElectricalMeasurement SubscribeAttribute TotalActivePower - self._chipLib.chip_ime_SubscribeAttribute_ElectricalMeasurement_TotalActivePower.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ElectricalMeasurement_TotalActivePower.restype = ctypes.c_uint32 - # Cluster ElectricalMeasurement ReadAttribute RmsVoltage - self._chipLib.chip_ime_ReadAttribute_ElectricalMeasurement_RmsVoltage.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ElectricalMeasurement_RmsVoltage.restype = ctypes.c_uint32 - # Cluster ElectricalMeasurement SubscribeAttribute RmsVoltage - self._chipLib.chip_ime_SubscribeAttribute_ElectricalMeasurement_RmsVoltage.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ElectricalMeasurement_RmsVoltage.restype = ctypes.c_uint32 - # Cluster ElectricalMeasurement ReadAttribute RmsVoltageMin - self._chipLib.chip_ime_ReadAttribute_ElectricalMeasurement_RmsVoltageMin.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ElectricalMeasurement_RmsVoltageMin.restype = ctypes.c_uint32 - # Cluster ElectricalMeasurement SubscribeAttribute RmsVoltageMin - self._chipLib.chip_ime_SubscribeAttribute_ElectricalMeasurement_RmsVoltageMin.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ElectricalMeasurement_RmsVoltageMin.restype = ctypes.c_uint32 - # Cluster ElectricalMeasurement ReadAttribute RmsVoltageMax - self._chipLib.chip_ime_ReadAttribute_ElectricalMeasurement_RmsVoltageMax.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ElectricalMeasurement_RmsVoltageMax.restype = ctypes.c_uint32 - # Cluster ElectricalMeasurement SubscribeAttribute RmsVoltageMax - self._chipLib.chip_ime_SubscribeAttribute_ElectricalMeasurement_RmsVoltageMax.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ElectricalMeasurement_RmsVoltageMax.restype = ctypes.c_uint32 - # Cluster ElectricalMeasurement ReadAttribute RmsCurrent - self._chipLib.chip_ime_ReadAttribute_ElectricalMeasurement_RmsCurrent.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ElectricalMeasurement_RmsCurrent.restype = ctypes.c_uint32 - # Cluster ElectricalMeasurement SubscribeAttribute RmsCurrent - self._chipLib.chip_ime_SubscribeAttribute_ElectricalMeasurement_RmsCurrent.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ElectricalMeasurement_RmsCurrent.restype = ctypes.c_uint32 - # Cluster ElectricalMeasurement ReadAttribute RmsCurrentMin - self._chipLib.chip_ime_ReadAttribute_ElectricalMeasurement_RmsCurrentMin.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ElectricalMeasurement_RmsCurrentMin.restype = ctypes.c_uint32 - # Cluster ElectricalMeasurement SubscribeAttribute RmsCurrentMin - self._chipLib.chip_ime_SubscribeAttribute_ElectricalMeasurement_RmsCurrentMin.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ElectricalMeasurement_RmsCurrentMin.restype = ctypes.c_uint32 - # Cluster ElectricalMeasurement ReadAttribute RmsCurrentMax - self._chipLib.chip_ime_ReadAttribute_ElectricalMeasurement_RmsCurrentMax.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ElectricalMeasurement_RmsCurrentMax.restype = ctypes.c_uint32 - # Cluster ElectricalMeasurement SubscribeAttribute RmsCurrentMax - self._chipLib.chip_ime_SubscribeAttribute_ElectricalMeasurement_RmsCurrentMax.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ElectricalMeasurement_RmsCurrentMax.restype = ctypes.c_uint32 - # Cluster ElectricalMeasurement ReadAttribute ActivePower - self._chipLib.chip_ime_ReadAttribute_ElectricalMeasurement_ActivePower.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ElectricalMeasurement_ActivePower.restype = ctypes.c_uint32 - # Cluster ElectricalMeasurement SubscribeAttribute ActivePower - self._chipLib.chip_ime_SubscribeAttribute_ElectricalMeasurement_ActivePower.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ElectricalMeasurement_ActivePower.restype = ctypes.c_uint32 - # Cluster ElectricalMeasurement ReadAttribute ActivePowerMin - self._chipLib.chip_ime_ReadAttribute_ElectricalMeasurement_ActivePowerMin.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ElectricalMeasurement_ActivePowerMin.restype = ctypes.c_uint32 - # Cluster ElectricalMeasurement SubscribeAttribute ActivePowerMin - self._chipLib.chip_ime_SubscribeAttribute_ElectricalMeasurement_ActivePowerMin.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ElectricalMeasurement_ActivePowerMin.restype = ctypes.c_uint32 - # Cluster ElectricalMeasurement ReadAttribute ActivePowerMax - self._chipLib.chip_ime_ReadAttribute_ElectricalMeasurement_ActivePowerMax.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ElectricalMeasurement_ActivePowerMax.restype = ctypes.c_uint32 - # Cluster ElectricalMeasurement SubscribeAttribute ActivePowerMax - self._chipLib.chip_ime_SubscribeAttribute_ElectricalMeasurement_ActivePowerMax.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ElectricalMeasurement_ActivePowerMax.restype = ctypes.c_uint32 - # Cluster ElectricalMeasurement ReadAttribute ClusterRevision - self._chipLib.chip_ime_ReadAttribute_ElectricalMeasurement_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ElectricalMeasurement_ClusterRevision.restype = ctypes.c_uint32 - # Cluster ElectricalMeasurement SubscribeAttribute ClusterRevision - self._chipLib.chip_ime_SubscribeAttribute_ElectricalMeasurement_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ElectricalMeasurement_ClusterRevision.restype = ctypes.c_uint32 - # Cluster EthernetNetworkDiagnostics - # Cluster EthernetNetworkDiagnostics ReadAttribute PHYRate - self._chipLib.chip_ime_ReadAttribute_EthernetNetworkDiagnostics_PHYRate.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_EthernetNetworkDiagnostics_PHYRate.restype = ctypes.c_uint32 - # Cluster EthernetNetworkDiagnostics SubscribeAttribute PHYRate - self._chipLib.chip_ime_SubscribeAttribute_EthernetNetworkDiagnostics_PHYRate.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_EthernetNetworkDiagnostics_PHYRate.restype = ctypes.c_uint32 - # Cluster EthernetNetworkDiagnostics ReadAttribute FullDuplex - self._chipLib.chip_ime_ReadAttribute_EthernetNetworkDiagnostics_FullDuplex.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_EthernetNetworkDiagnostics_FullDuplex.restype = ctypes.c_uint32 - # Cluster EthernetNetworkDiagnostics SubscribeAttribute FullDuplex - self._chipLib.chip_ime_SubscribeAttribute_EthernetNetworkDiagnostics_FullDuplex.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_EthernetNetworkDiagnostics_FullDuplex.restype = ctypes.c_uint32 - # Cluster EthernetNetworkDiagnostics ReadAttribute PacketRxCount - self._chipLib.chip_ime_ReadAttribute_EthernetNetworkDiagnostics_PacketRxCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_EthernetNetworkDiagnostics_PacketRxCount.restype = ctypes.c_uint32 - # Cluster EthernetNetworkDiagnostics SubscribeAttribute PacketRxCount - self._chipLib.chip_ime_SubscribeAttribute_EthernetNetworkDiagnostics_PacketRxCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_EthernetNetworkDiagnostics_PacketRxCount.restype = ctypes.c_uint32 - # Cluster EthernetNetworkDiagnostics ReadAttribute PacketTxCount - self._chipLib.chip_ime_ReadAttribute_EthernetNetworkDiagnostics_PacketTxCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_EthernetNetworkDiagnostics_PacketTxCount.restype = ctypes.c_uint32 - # Cluster EthernetNetworkDiagnostics SubscribeAttribute PacketTxCount - self._chipLib.chip_ime_SubscribeAttribute_EthernetNetworkDiagnostics_PacketTxCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_EthernetNetworkDiagnostics_PacketTxCount.restype = ctypes.c_uint32 - # Cluster EthernetNetworkDiagnostics ReadAttribute TxErrCount - self._chipLib.chip_ime_ReadAttribute_EthernetNetworkDiagnostics_TxErrCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_EthernetNetworkDiagnostics_TxErrCount.restype = ctypes.c_uint32 - # Cluster EthernetNetworkDiagnostics SubscribeAttribute TxErrCount - self._chipLib.chip_ime_SubscribeAttribute_EthernetNetworkDiagnostics_TxErrCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_EthernetNetworkDiagnostics_TxErrCount.restype = ctypes.c_uint32 - # Cluster EthernetNetworkDiagnostics ReadAttribute CollisionCount - self._chipLib.chip_ime_ReadAttribute_EthernetNetworkDiagnostics_CollisionCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_EthernetNetworkDiagnostics_CollisionCount.restype = ctypes.c_uint32 - # Cluster EthernetNetworkDiagnostics SubscribeAttribute CollisionCount - self._chipLib.chip_ime_SubscribeAttribute_EthernetNetworkDiagnostics_CollisionCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_EthernetNetworkDiagnostics_CollisionCount.restype = ctypes.c_uint32 - # Cluster EthernetNetworkDiagnostics ReadAttribute OverrunCount - self._chipLib.chip_ime_ReadAttribute_EthernetNetworkDiagnostics_OverrunCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_EthernetNetworkDiagnostics_OverrunCount.restype = ctypes.c_uint32 - # Cluster EthernetNetworkDiagnostics SubscribeAttribute OverrunCount - self._chipLib.chip_ime_SubscribeAttribute_EthernetNetworkDiagnostics_OverrunCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_EthernetNetworkDiagnostics_OverrunCount.restype = ctypes.c_uint32 - # Cluster EthernetNetworkDiagnostics ReadAttribute CarrierDetect - self._chipLib.chip_ime_ReadAttribute_EthernetNetworkDiagnostics_CarrierDetect.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_EthernetNetworkDiagnostics_CarrierDetect.restype = ctypes.c_uint32 - # Cluster EthernetNetworkDiagnostics SubscribeAttribute CarrierDetect - self._chipLib.chip_ime_SubscribeAttribute_EthernetNetworkDiagnostics_CarrierDetect.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_EthernetNetworkDiagnostics_CarrierDetect.restype = ctypes.c_uint32 - # Cluster EthernetNetworkDiagnostics ReadAttribute TimeSinceReset - self._chipLib.chip_ime_ReadAttribute_EthernetNetworkDiagnostics_TimeSinceReset.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_EthernetNetworkDiagnostics_TimeSinceReset.restype = ctypes.c_uint32 - # Cluster EthernetNetworkDiagnostics SubscribeAttribute TimeSinceReset - self._chipLib.chip_ime_SubscribeAttribute_EthernetNetworkDiagnostics_TimeSinceReset.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_EthernetNetworkDiagnostics_TimeSinceReset.restype = ctypes.c_uint32 - # Cluster EthernetNetworkDiagnostics ReadAttribute FeatureMap - self._chipLib.chip_ime_ReadAttribute_EthernetNetworkDiagnostics_FeatureMap.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_EthernetNetworkDiagnostics_FeatureMap.restype = ctypes.c_uint32 - # Cluster EthernetNetworkDiagnostics ReadAttribute ClusterRevision - self._chipLib.chip_ime_ReadAttribute_EthernetNetworkDiagnostics_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_EthernetNetworkDiagnostics_ClusterRevision.restype = ctypes.c_uint32 - # Cluster EthernetNetworkDiagnostics SubscribeAttribute ClusterRevision - self._chipLib.chip_ime_SubscribeAttribute_EthernetNetworkDiagnostics_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_EthernetNetworkDiagnostics_ClusterRevision.restype = ctypes.c_uint32 - # Cluster FixedLabel - # Cluster FixedLabel ReadAttribute LabelList - self._chipLib.chip_ime_ReadAttribute_FixedLabel_LabelList.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_FixedLabel_LabelList.restype = ctypes.c_uint32 - # Cluster FixedLabel ReadAttribute ClusterRevision - self._chipLib.chip_ime_ReadAttribute_FixedLabel_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_FixedLabel_ClusterRevision.restype = ctypes.c_uint32 - # Cluster FixedLabel SubscribeAttribute ClusterRevision - self._chipLib.chip_ime_SubscribeAttribute_FixedLabel_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_FixedLabel_ClusterRevision.restype = ctypes.c_uint32 - # Cluster FlowMeasurement - # Cluster FlowMeasurement ReadAttribute MeasuredValue - self._chipLib.chip_ime_ReadAttribute_FlowMeasurement_MeasuredValue.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_FlowMeasurement_MeasuredValue.restype = ctypes.c_uint32 - # Cluster FlowMeasurement SubscribeAttribute MeasuredValue - self._chipLib.chip_ime_SubscribeAttribute_FlowMeasurement_MeasuredValue.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_FlowMeasurement_MeasuredValue.restype = ctypes.c_uint32 - # Cluster FlowMeasurement ReadAttribute MinMeasuredValue - self._chipLib.chip_ime_ReadAttribute_FlowMeasurement_MinMeasuredValue.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_FlowMeasurement_MinMeasuredValue.restype = ctypes.c_uint32 - # Cluster FlowMeasurement SubscribeAttribute MinMeasuredValue - self._chipLib.chip_ime_SubscribeAttribute_FlowMeasurement_MinMeasuredValue.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_FlowMeasurement_MinMeasuredValue.restype = ctypes.c_uint32 - # Cluster FlowMeasurement ReadAttribute MaxMeasuredValue - self._chipLib.chip_ime_ReadAttribute_FlowMeasurement_MaxMeasuredValue.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_FlowMeasurement_MaxMeasuredValue.restype = ctypes.c_uint32 - # Cluster FlowMeasurement SubscribeAttribute MaxMeasuredValue - self._chipLib.chip_ime_SubscribeAttribute_FlowMeasurement_MaxMeasuredValue.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_FlowMeasurement_MaxMeasuredValue.restype = ctypes.c_uint32 - # Cluster FlowMeasurement ReadAttribute Tolerance - self._chipLib.chip_ime_ReadAttribute_FlowMeasurement_Tolerance.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_FlowMeasurement_Tolerance.restype = ctypes.c_uint32 - # Cluster FlowMeasurement SubscribeAttribute Tolerance - self._chipLib.chip_ime_SubscribeAttribute_FlowMeasurement_Tolerance.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_FlowMeasurement_Tolerance.restype = ctypes.c_uint32 - # Cluster FlowMeasurement ReadAttribute ClusterRevision - self._chipLib.chip_ime_ReadAttribute_FlowMeasurement_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_FlowMeasurement_ClusterRevision.restype = ctypes.c_uint32 - # Cluster FlowMeasurement SubscribeAttribute ClusterRevision - self._chipLib.chip_ime_SubscribeAttribute_FlowMeasurement_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_FlowMeasurement_ClusterRevision.restype = ctypes.c_uint32 - # Cluster GeneralCommissioning - # Cluster GeneralCommissioning ReadAttribute Breadcrumb - self._chipLib.chip_ime_ReadAttribute_GeneralCommissioning_Breadcrumb.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_GeneralCommissioning_Breadcrumb.restype = ctypes.c_uint32 - # Cluster GeneralCommissioning SubscribeAttribute Breadcrumb - self._chipLib.chip_ime_SubscribeAttribute_GeneralCommissioning_Breadcrumb.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_GeneralCommissioning_Breadcrumb.restype = ctypes.c_uint32 - # Cluster GeneralCommissioning ReadAttribute BasicCommissioningInfoList - self._chipLib.chip_ime_ReadAttribute_GeneralCommissioning_BasicCommissioningInfoList.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_GeneralCommissioning_BasicCommissioningInfoList.restype = ctypes.c_uint32 - # Cluster GeneralCommissioning ReadAttribute ClusterRevision - self._chipLib.chip_ime_ReadAttribute_GeneralCommissioning_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_GeneralCommissioning_ClusterRevision.restype = ctypes.c_uint32 - # Cluster GeneralCommissioning SubscribeAttribute ClusterRevision - self._chipLib.chip_ime_SubscribeAttribute_GeneralCommissioning_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_GeneralCommissioning_ClusterRevision.restype = ctypes.c_uint32 - # Cluster GeneralDiagnostics - # Cluster GeneralDiagnostics ReadAttribute NetworkInterfaces - self._chipLib.chip_ime_ReadAttribute_GeneralDiagnostics_NetworkInterfaces.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_GeneralDiagnostics_NetworkInterfaces.restype = ctypes.c_uint32 - # Cluster GeneralDiagnostics ReadAttribute RebootCount - self._chipLib.chip_ime_ReadAttribute_GeneralDiagnostics_RebootCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_GeneralDiagnostics_RebootCount.restype = ctypes.c_uint32 - # Cluster GeneralDiagnostics SubscribeAttribute RebootCount - self._chipLib.chip_ime_SubscribeAttribute_GeneralDiagnostics_RebootCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_GeneralDiagnostics_RebootCount.restype = ctypes.c_uint32 - # Cluster GeneralDiagnostics ReadAttribute UpTime - self._chipLib.chip_ime_ReadAttribute_GeneralDiagnostics_UpTime.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_GeneralDiagnostics_UpTime.restype = ctypes.c_uint32 - # Cluster GeneralDiagnostics SubscribeAttribute UpTime - self._chipLib.chip_ime_SubscribeAttribute_GeneralDiagnostics_UpTime.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_GeneralDiagnostics_UpTime.restype = ctypes.c_uint32 - # Cluster GeneralDiagnostics ReadAttribute TotalOperationalHours - self._chipLib.chip_ime_ReadAttribute_GeneralDiagnostics_TotalOperationalHours.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_GeneralDiagnostics_TotalOperationalHours.restype = ctypes.c_uint32 - # Cluster GeneralDiagnostics SubscribeAttribute TotalOperationalHours - self._chipLib.chip_ime_SubscribeAttribute_GeneralDiagnostics_TotalOperationalHours.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_GeneralDiagnostics_TotalOperationalHours.restype = ctypes.c_uint32 - # Cluster GeneralDiagnostics ReadAttribute BootReasons - self._chipLib.chip_ime_ReadAttribute_GeneralDiagnostics_BootReasons.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_GeneralDiagnostics_BootReasons.restype = ctypes.c_uint32 - # Cluster GeneralDiagnostics SubscribeAttribute BootReasons - self._chipLib.chip_ime_SubscribeAttribute_GeneralDiagnostics_BootReasons.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_GeneralDiagnostics_BootReasons.restype = ctypes.c_uint32 - # Cluster GeneralDiagnostics ReadAttribute ActiveHardwareFaults - self._chipLib.chip_ime_ReadAttribute_GeneralDiagnostics_ActiveHardwareFaults.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_GeneralDiagnostics_ActiveHardwareFaults.restype = ctypes.c_uint32 - # Cluster GeneralDiagnostics ReadAttribute ActiveRadioFaults - self._chipLib.chip_ime_ReadAttribute_GeneralDiagnostics_ActiveRadioFaults.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_GeneralDiagnostics_ActiveRadioFaults.restype = ctypes.c_uint32 - # Cluster GeneralDiagnostics ReadAttribute ActiveNetworkFaults - self._chipLib.chip_ime_ReadAttribute_GeneralDiagnostics_ActiveNetworkFaults.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_GeneralDiagnostics_ActiveNetworkFaults.restype = ctypes.c_uint32 - # Cluster GeneralDiagnostics ReadAttribute ClusterRevision - self._chipLib.chip_ime_ReadAttribute_GeneralDiagnostics_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_GeneralDiagnostics_ClusterRevision.restype = ctypes.c_uint32 - # Cluster GeneralDiagnostics SubscribeAttribute ClusterRevision - self._chipLib.chip_ime_SubscribeAttribute_GeneralDiagnostics_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_GeneralDiagnostics_ClusterRevision.restype = ctypes.c_uint32 - # Cluster GroupKeyManagement - # Cluster GroupKeyManagement ReadAttribute Groups - self._chipLib.chip_ime_ReadAttribute_GroupKeyManagement_Groups.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_GroupKeyManagement_Groups.restype = ctypes.c_uint32 - # Cluster GroupKeyManagement ReadAttribute GroupKeys - self._chipLib.chip_ime_ReadAttribute_GroupKeyManagement_GroupKeys.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_GroupKeyManagement_GroupKeys.restype = ctypes.c_uint32 - # Cluster GroupKeyManagement ReadAttribute ClusterRevision - self._chipLib.chip_ime_ReadAttribute_GroupKeyManagement_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_GroupKeyManagement_ClusterRevision.restype = ctypes.c_uint32 - # Cluster GroupKeyManagement SubscribeAttribute ClusterRevision - self._chipLib.chip_ime_SubscribeAttribute_GroupKeyManagement_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_GroupKeyManagement_ClusterRevision.restype = ctypes.c_uint32 - # Cluster Groups - # Cluster Groups ReadAttribute NameSupport - self._chipLib.chip_ime_ReadAttribute_Groups_NameSupport.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_Groups_NameSupport.restype = ctypes.c_uint32 - # Cluster Groups SubscribeAttribute NameSupport - self._chipLib.chip_ime_SubscribeAttribute_Groups_NameSupport.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_Groups_NameSupport.restype = ctypes.c_uint32 - # Cluster Groups ReadAttribute ClusterRevision - self._chipLib.chip_ime_ReadAttribute_Groups_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_Groups_ClusterRevision.restype = ctypes.c_uint32 - # Cluster Groups SubscribeAttribute ClusterRevision - self._chipLib.chip_ime_SubscribeAttribute_Groups_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_Groups_ClusterRevision.restype = ctypes.c_uint32 - # Cluster Identify - # Cluster Identify ReadAttribute IdentifyTime - self._chipLib.chip_ime_ReadAttribute_Identify_IdentifyTime.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_Identify_IdentifyTime.restype = ctypes.c_uint32 - # Cluster Identify SubscribeAttribute IdentifyTime - self._chipLib.chip_ime_SubscribeAttribute_Identify_IdentifyTime.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_Identify_IdentifyTime.restype = ctypes.c_uint32 - # Cluster Identify ReadAttribute IdentifyType - self._chipLib.chip_ime_ReadAttribute_Identify_IdentifyType.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_Identify_IdentifyType.restype = ctypes.c_uint32 - # Cluster Identify SubscribeAttribute IdentifyType - self._chipLib.chip_ime_SubscribeAttribute_Identify_IdentifyType.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_Identify_IdentifyType.restype = ctypes.c_uint32 - # Cluster Identify ReadAttribute ClusterRevision - self._chipLib.chip_ime_ReadAttribute_Identify_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_Identify_ClusterRevision.restype = ctypes.c_uint32 - # Cluster Identify SubscribeAttribute ClusterRevision - self._chipLib.chip_ime_SubscribeAttribute_Identify_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_Identify_ClusterRevision.restype = ctypes.c_uint32 - # Cluster IlluminanceMeasurement - # Cluster IlluminanceMeasurement ReadAttribute MeasuredValue - self._chipLib.chip_ime_ReadAttribute_IlluminanceMeasurement_MeasuredValue.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_IlluminanceMeasurement_MeasuredValue.restype = ctypes.c_uint32 - # Cluster IlluminanceMeasurement SubscribeAttribute MeasuredValue - self._chipLib.chip_ime_SubscribeAttribute_IlluminanceMeasurement_MeasuredValue.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_IlluminanceMeasurement_MeasuredValue.restype = ctypes.c_uint32 - # Cluster IlluminanceMeasurement ReadAttribute MinMeasuredValue - self._chipLib.chip_ime_ReadAttribute_IlluminanceMeasurement_MinMeasuredValue.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_IlluminanceMeasurement_MinMeasuredValue.restype = ctypes.c_uint32 - # Cluster IlluminanceMeasurement SubscribeAttribute MinMeasuredValue - self._chipLib.chip_ime_SubscribeAttribute_IlluminanceMeasurement_MinMeasuredValue.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_IlluminanceMeasurement_MinMeasuredValue.restype = ctypes.c_uint32 - # Cluster IlluminanceMeasurement ReadAttribute MaxMeasuredValue - self._chipLib.chip_ime_ReadAttribute_IlluminanceMeasurement_MaxMeasuredValue.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_IlluminanceMeasurement_MaxMeasuredValue.restype = ctypes.c_uint32 - # Cluster IlluminanceMeasurement SubscribeAttribute MaxMeasuredValue - self._chipLib.chip_ime_SubscribeAttribute_IlluminanceMeasurement_MaxMeasuredValue.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_IlluminanceMeasurement_MaxMeasuredValue.restype = ctypes.c_uint32 - # Cluster IlluminanceMeasurement ReadAttribute Tolerance - self._chipLib.chip_ime_ReadAttribute_IlluminanceMeasurement_Tolerance.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_IlluminanceMeasurement_Tolerance.restype = ctypes.c_uint32 - # Cluster IlluminanceMeasurement SubscribeAttribute Tolerance - self._chipLib.chip_ime_SubscribeAttribute_IlluminanceMeasurement_Tolerance.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_IlluminanceMeasurement_Tolerance.restype = ctypes.c_uint32 - # Cluster IlluminanceMeasurement ReadAttribute LightSensorType - self._chipLib.chip_ime_ReadAttribute_IlluminanceMeasurement_LightSensorType.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_IlluminanceMeasurement_LightSensorType.restype = ctypes.c_uint32 - # Cluster IlluminanceMeasurement SubscribeAttribute LightSensorType - self._chipLib.chip_ime_SubscribeAttribute_IlluminanceMeasurement_LightSensorType.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_IlluminanceMeasurement_LightSensorType.restype = ctypes.c_uint32 - # Cluster IlluminanceMeasurement ReadAttribute ClusterRevision - self._chipLib.chip_ime_ReadAttribute_IlluminanceMeasurement_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_IlluminanceMeasurement_ClusterRevision.restype = ctypes.c_uint32 - # Cluster IlluminanceMeasurement SubscribeAttribute ClusterRevision - self._chipLib.chip_ime_SubscribeAttribute_IlluminanceMeasurement_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_IlluminanceMeasurement_ClusterRevision.restype = ctypes.c_uint32 - # Cluster KeypadInput - # Cluster KeypadInput ReadAttribute ClusterRevision - self._chipLib.chip_ime_ReadAttribute_KeypadInput_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_KeypadInput_ClusterRevision.restype = ctypes.c_uint32 - # Cluster KeypadInput SubscribeAttribute ClusterRevision - self._chipLib.chip_ime_SubscribeAttribute_KeypadInput_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_KeypadInput_ClusterRevision.restype = ctypes.c_uint32 - # Cluster LevelControl - # Cluster LevelControl ReadAttribute CurrentLevel - self._chipLib.chip_ime_ReadAttribute_LevelControl_CurrentLevel.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_LevelControl_CurrentLevel.restype = ctypes.c_uint32 - # Cluster LevelControl SubscribeAttribute CurrentLevel - self._chipLib.chip_ime_SubscribeAttribute_LevelControl_CurrentLevel.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_LevelControl_CurrentLevel.restype = ctypes.c_uint32 - # Cluster LevelControl ReadAttribute RemainingTime - self._chipLib.chip_ime_ReadAttribute_LevelControl_RemainingTime.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_LevelControl_RemainingTime.restype = ctypes.c_uint32 - # Cluster LevelControl SubscribeAttribute RemainingTime - self._chipLib.chip_ime_SubscribeAttribute_LevelControl_RemainingTime.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_LevelControl_RemainingTime.restype = ctypes.c_uint32 - # Cluster LevelControl ReadAttribute MinLevel - self._chipLib.chip_ime_ReadAttribute_LevelControl_MinLevel.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_LevelControl_MinLevel.restype = ctypes.c_uint32 - # Cluster LevelControl SubscribeAttribute MinLevel - self._chipLib.chip_ime_SubscribeAttribute_LevelControl_MinLevel.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_LevelControl_MinLevel.restype = ctypes.c_uint32 - # Cluster LevelControl ReadAttribute MaxLevel - self._chipLib.chip_ime_ReadAttribute_LevelControl_MaxLevel.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_LevelControl_MaxLevel.restype = ctypes.c_uint32 - # Cluster LevelControl SubscribeAttribute MaxLevel - self._chipLib.chip_ime_SubscribeAttribute_LevelControl_MaxLevel.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_LevelControl_MaxLevel.restype = ctypes.c_uint32 - # Cluster LevelControl ReadAttribute CurrentFrequency - self._chipLib.chip_ime_ReadAttribute_LevelControl_CurrentFrequency.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_LevelControl_CurrentFrequency.restype = ctypes.c_uint32 - # Cluster LevelControl SubscribeAttribute CurrentFrequency - self._chipLib.chip_ime_SubscribeAttribute_LevelControl_CurrentFrequency.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_LevelControl_CurrentFrequency.restype = ctypes.c_uint32 - # Cluster LevelControl ReadAttribute MinFrequency - self._chipLib.chip_ime_ReadAttribute_LevelControl_MinFrequency.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_LevelControl_MinFrequency.restype = ctypes.c_uint32 - # Cluster LevelControl SubscribeAttribute MinFrequency - self._chipLib.chip_ime_SubscribeAttribute_LevelControl_MinFrequency.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_LevelControl_MinFrequency.restype = ctypes.c_uint32 - # Cluster LevelControl ReadAttribute MaxFrequency - self._chipLib.chip_ime_ReadAttribute_LevelControl_MaxFrequency.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_LevelControl_MaxFrequency.restype = ctypes.c_uint32 - # Cluster LevelControl SubscribeAttribute MaxFrequency - self._chipLib.chip_ime_SubscribeAttribute_LevelControl_MaxFrequency.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_LevelControl_MaxFrequency.restype = ctypes.c_uint32 - # Cluster LevelControl ReadAttribute Options - self._chipLib.chip_ime_ReadAttribute_LevelControl_Options.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_LevelControl_Options.restype = ctypes.c_uint32 - # Cluster LevelControl SubscribeAttribute Options - self._chipLib.chip_ime_SubscribeAttribute_LevelControl_Options.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_LevelControl_Options.restype = ctypes.c_uint32 - # Cluster LevelControl ReadAttribute OnOffTransitionTime - self._chipLib.chip_ime_ReadAttribute_LevelControl_OnOffTransitionTime.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_LevelControl_OnOffTransitionTime.restype = ctypes.c_uint32 - # Cluster LevelControl SubscribeAttribute OnOffTransitionTime - self._chipLib.chip_ime_SubscribeAttribute_LevelControl_OnOffTransitionTime.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_LevelControl_OnOffTransitionTime.restype = ctypes.c_uint32 - # Cluster LevelControl ReadAttribute OnLevel - self._chipLib.chip_ime_ReadAttribute_LevelControl_OnLevel.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_LevelControl_OnLevel.restype = ctypes.c_uint32 - # Cluster LevelControl SubscribeAttribute OnLevel - self._chipLib.chip_ime_SubscribeAttribute_LevelControl_OnLevel.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_LevelControl_OnLevel.restype = ctypes.c_uint32 - # Cluster LevelControl ReadAttribute OnTransitionTime - self._chipLib.chip_ime_ReadAttribute_LevelControl_OnTransitionTime.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_LevelControl_OnTransitionTime.restype = ctypes.c_uint32 - # Cluster LevelControl SubscribeAttribute OnTransitionTime - self._chipLib.chip_ime_SubscribeAttribute_LevelControl_OnTransitionTime.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_LevelControl_OnTransitionTime.restype = ctypes.c_uint32 - # Cluster LevelControl ReadAttribute OffTransitionTime - self._chipLib.chip_ime_ReadAttribute_LevelControl_OffTransitionTime.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_LevelControl_OffTransitionTime.restype = ctypes.c_uint32 - # Cluster LevelControl SubscribeAttribute OffTransitionTime - self._chipLib.chip_ime_SubscribeAttribute_LevelControl_OffTransitionTime.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_LevelControl_OffTransitionTime.restype = ctypes.c_uint32 - # Cluster LevelControl ReadAttribute DefaultMoveRate - self._chipLib.chip_ime_ReadAttribute_LevelControl_DefaultMoveRate.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_LevelControl_DefaultMoveRate.restype = ctypes.c_uint32 - # Cluster LevelControl SubscribeAttribute DefaultMoveRate - self._chipLib.chip_ime_SubscribeAttribute_LevelControl_DefaultMoveRate.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_LevelControl_DefaultMoveRate.restype = ctypes.c_uint32 - # Cluster LevelControl ReadAttribute StartUpCurrentLevel - self._chipLib.chip_ime_ReadAttribute_LevelControl_StartUpCurrentLevel.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_LevelControl_StartUpCurrentLevel.restype = ctypes.c_uint32 - # Cluster LevelControl SubscribeAttribute StartUpCurrentLevel - self._chipLib.chip_ime_SubscribeAttribute_LevelControl_StartUpCurrentLevel.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_LevelControl_StartUpCurrentLevel.restype = ctypes.c_uint32 - # Cluster LevelControl ReadAttribute ClusterRevision - self._chipLib.chip_ime_ReadAttribute_LevelControl_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_LevelControl_ClusterRevision.restype = ctypes.c_uint32 - # Cluster LevelControl SubscribeAttribute ClusterRevision - self._chipLib.chip_ime_SubscribeAttribute_LevelControl_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_LevelControl_ClusterRevision.restype = ctypes.c_uint32 - # Cluster LowPower - # Cluster LowPower ReadAttribute ClusterRevision - self._chipLib.chip_ime_ReadAttribute_LowPower_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_LowPower_ClusterRevision.restype = ctypes.c_uint32 - # Cluster LowPower SubscribeAttribute ClusterRevision - self._chipLib.chip_ime_SubscribeAttribute_LowPower_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_LowPower_ClusterRevision.restype = ctypes.c_uint32 - # Cluster MediaInput - # Cluster MediaInput ReadAttribute MediaInputList - self._chipLib.chip_ime_ReadAttribute_MediaInput_MediaInputList.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_MediaInput_MediaInputList.restype = ctypes.c_uint32 - # Cluster MediaInput ReadAttribute CurrentMediaInput - self._chipLib.chip_ime_ReadAttribute_MediaInput_CurrentMediaInput.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_MediaInput_CurrentMediaInput.restype = ctypes.c_uint32 - # Cluster MediaInput SubscribeAttribute CurrentMediaInput - self._chipLib.chip_ime_SubscribeAttribute_MediaInput_CurrentMediaInput.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_MediaInput_CurrentMediaInput.restype = ctypes.c_uint32 - # Cluster MediaInput ReadAttribute ClusterRevision - self._chipLib.chip_ime_ReadAttribute_MediaInput_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_MediaInput_ClusterRevision.restype = ctypes.c_uint32 - # Cluster MediaInput SubscribeAttribute ClusterRevision - self._chipLib.chip_ime_SubscribeAttribute_MediaInput_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_MediaInput_ClusterRevision.restype = ctypes.c_uint32 - # Cluster MediaPlayback - # Cluster MediaPlayback ReadAttribute PlaybackState - self._chipLib.chip_ime_ReadAttribute_MediaPlayback_PlaybackState.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_MediaPlayback_PlaybackState.restype = ctypes.c_uint32 - # Cluster MediaPlayback SubscribeAttribute PlaybackState - self._chipLib.chip_ime_SubscribeAttribute_MediaPlayback_PlaybackState.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_MediaPlayback_PlaybackState.restype = ctypes.c_uint32 - # Cluster MediaPlayback ReadAttribute StartTime - self._chipLib.chip_ime_ReadAttribute_MediaPlayback_StartTime.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_MediaPlayback_StartTime.restype = ctypes.c_uint32 - # Cluster MediaPlayback SubscribeAttribute StartTime - self._chipLib.chip_ime_SubscribeAttribute_MediaPlayback_StartTime.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_MediaPlayback_StartTime.restype = ctypes.c_uint32 - # Cluster MediaPlayback ReadAttribute Duration - self._chipLib.chip_ime_ReadAttribute_MediaPlayback_Duration.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_MediaPlayback_Duration.restype = ctypes.c_uint32 - # Cluster MediaPlayback SubscribeAttribute Duration - self._chipLib.chip_ime_SubscribeAttribute_MediaPlayback_Duration.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_MediaPlayback_Duration.restype = ctypes.c_uint32 - # Cluster MediaPlayback ReadAttribute PositionUpdatedAt - self._chipLib.chip_ime_ReadAttribute_MediaPlayback_PositionUpdatedAt.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_MediaPlayback_PositionUpdatedAt.restype = ctypes.c_uint32 - # Cluster MediaPlayback SubscribeAttribute PositionUpdatedAt - self._chipLib.chip_ime_SubscribeAttribute_MediaPlayback_PositionUpdatedAt.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_MediaPlayback_PositionUpdatedAt.restype = ctypes.c_uint32 - # Cluster MediaPlayback ReadAttribute Position - self._chipLib.chip_ime_ReadAttribute_MediaPlayback_Position.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_MediaPlayback_Position.restype = ctypes.c_uint32 - # Cluster MediaPlayback SubscribeAttribute Position - self._chipLib.chip_ime_SubscribeAttribute_MediaPlayback_Position.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_MediaPlayback_Position.restype = ctypes.c_uint32 - # Cluster MediaPlayback ReadAttribute PlaybackSpeed - self._chipLib.chip_ime_ReadAttribute_MediaPlayback_PlaybackSpeed.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_MediaPlayback_PlaybackSpeed.restype = ctypes.c_uint32 - # Cluster MediaPlayback SubscribeAttribute PlaybackSpeed - self._chipLib.chip_ime_SubscribeAttribute_MediaPlayback_PlaybackSpeed.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_MediaPlayback_PlaybackSpeed.restype = ctypes.c_uint32 - # Cluster MediaPlayback ReadAttribute SeekRangeEnd - self._chipLib.chip_ime_ReadAttribute_MediaPlayback_SeekRangeEnd.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_MediaPlayback_SeekRangeEnd.restype = ctypes.c_uint32 - # Cluster MediaPlayback SubscribeAttribute SeekRangeEnd - self._chipLib.chip_ime_SubscribeAttribute_MediaPlayback_SeekRangeEnd.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_MediaPlayback_SeekRangeEnd.restype = ctypes.c_uint32 - # Cluster MediaPlayback ReadAttribute SeekRangeStart - self._chipLib.chip_ime_ReadAttribute_MediaPlayback_SeekRangeStart.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_MediaPlayback_SeekRangeStart.restype = ctypes.c_uint32 - # Cluster MediaPlayback SubscribeAttribute SeekRangeStart - self._chipLib.chip_ime_SubscribeAttribute_MediaPlayback_SeekRangeStart.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_MediaPlayback_SeekRangeStart.restype = ctypes.c_uint32 - # Cluster MediaPlayback ReadAttribute ClusterRevision - self._chipLib.chip_ime_ReadAttribute_MediaPlayback_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_MediaPlayback_ClusterRevision.restype = ctypes.c_uint32 - # Cluster MediaPlayback SubscribeAttribute ClusterRevision - self._chipLib.chip_ime_SubscribeAttribute_MediaPlayback_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_MediaPlayback_ClusterRevision.restype = ctypes.c_uint32 - # Cluster ModeSelect - # Cluster ModeSelect ReadAttribute CurrentMode - self._chipLib.chip_ime_ReadAttribute_ModeSelect_CurrentMode.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ModeSelect_CurrentMode.restype = ctypes.c_uint32 - # Cluster ModeSelect SubscribeAttribute CurrentMode - self._chipLib.chip_ime_SubscribeAttribute_ModeSelect_CurrentMode.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ModeSelect_CurrentMode.restype = ctypes.c_uint32 - # Cluster ModeSelect ReadAttribute SupportedModes - self._chipLib.chip_ime_ReadAttribute_ModeSelect_SupportedModes.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ModeSelect_SupportedModes.restype = ctypes.c_uint32 - # Cluster ModeSelect ReadAttribute OnMode - self._chipLib.chip_ime_ReadAttribute_ModeSelect_OnMode.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ModeSelect_OnMode.restype = ctypes.c_uint32 - # Cluster ModeSelect SubscribeAttribute OnMode - self._chipLib.chip_ime_SubscribeAttribute_ModeSelect_OnMode.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ModeSelect_OnMode.restype = ctypes.c_uint32 - # Cluster ModeSelect ReadAttribute StartUpMode - self._chipLib.chip_ime_ReadAttribute_ModeSelect_StartUpMode.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ModeSelect_StartUpMode.restype = ctypes.c_uint32 - # Cluster ModeSelect SubscribeAttribute StartUpMode - self._chipLib.chip_ime_SubscribeAttribute_ModeSelect_StartUpMode.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ModeSelect_StartUpMode.restype = ctypes.c_uint32 - # Cluster ModeSelect ReadAttribute Description - self._chipLib.chip_ime_ReadAttribute_ModeSelect_Description.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ModeSelect_Description.restype = ctypes.c_uint32 - # Cluster ModeSelect SubscribeAttribute Description - self._chipLib.chip_ime_SubscribeAttribute_ModeSelect_Description.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ModeSelect_Description.restype = ctypes.c_uint32 - # Cluster ModeSelect ReadAttribute ClusterRevision - self._chipLib.chip_ime_ReadAttribute_ModeSelect_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ModeSelect_ClusterRevision.restype = ctypes.c_uint32 - # Cluster ModeSelect SubscribeAttribute ClusterRevision - self._chipLib.chip_ime_SubscribeAttribute_ModeSelect_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ModeSelect_ClusterRevision.restype = ctypes.c_uint32 - # Cluster NetworkCommissioning - # Cluster NetworkCommissioning ReadAttribute FeatureMap - self._chipLib.chip_ime_ReadAttribute_NetworkCommissioning_FeatureMap.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_NetworkCommissioning_FeatureMap.restype = ctypes.c_uint32 - # Cluster NetworkCommissioning SubscribeAttribute FeatureMap - self._chipLib.chip_ime_SubscribeAttribute_NetworkCommissioning_FeatureMap.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_NetworkCommissioning_FeatureMap.restype = ctypes.c_uint32 - # Cluster NetworkCommissioning ReadAttribute ClusterRevision - self._chipLib.chip_ime_ReadAttribute_NetworkCommissioning_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_NetworkCommissioning_ClusterRevision.restype = ctypes.c_uint32 - # Cluster NetworkCommissioning SubscribeAttribute ClusterRevision - self._chipLib.chip_ime_SubscribeAttribute_NetworkCommissioning_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_NetworkCommissioning_ClusterRevision.restype = ctypes.c_uint32 - # Cluster OtaSoftwareUpdateProvider - # Cluster OtaSoftwareUpdateProvider ReadAttribute ClusterRevision - self._chipLib.chip_ime_ReadAttribute_OtaSoftwareUpdateProvider_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_OtaSoftwareUpdateProvider_ClusterRevision.restype = ctypes.c_uint32 - # Cluster OtaSoftwareUpdateProvider SubscribeAttribute ClusterRevision - self._chipLib.chip_ime_SubscribeAttribute_OtaSoftwareUpdateProvider_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_OtaSoftwareUpdateProvider_ClusterRevision.restype = ctypes.c_uint32 - # Cluster OtaSoftwareUpdateRequestor - # Cluster OtaSoftwareUpdateRequestor ReadAttribute DefaultOtaProvider - self._chipLib.chip_ime_ReadAttribute_OtaSoftwareUpdateRequestor_DefaultOtaProvider.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_OtaSoftwareUpdateRequestor_DefaultOtaProvider.restype = ctypes.c_uint32 - # Cluster OtaSoftwareUpdateRequestor SubscribeAttribute DefaultOtaProvider - self._chipLib.chip_ime_SubscribeAttribute_OtaSoftwareUpdateRequestor_DefaultOtaProvider.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_OtaSoftwareUpdateRequestor_DefaultOtaProvider.restype = ctypes.c_uint32 - # Cluster OtaSoftwareUpdateRequestor ReadAttribute UpdatePossible - self._chipLib.chip_ime_ReadAttribute_OtaSoftwareUpdateRequestor_UpdatePossible.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_OtaSoftwareUpdateRequestor_UpdatePossible.restype = ctypes.c_uint32 - # Cluster OtaSoftwareUpdateRequestor SubscribeAttribute UpdatePossible - self._chipLib.chip_ime_SubscribeAttribute_OtaSoftwareUpdateRequestor_UpdatePossible.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_OtaSoftwareUpdateRequestor_UpdatePossible.restype = ctypes.c_uint32 - # Cluster OtaSoftwareUpdateRequestor ReadAttribute ClusterRevision - self._chipLib.chip_ime_ReadAttribute_OtaSoftwareUpdateRequestor_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_OtaSoftwareUpdateRequestor_ClusterRevision.restype = ctypes.c_uint32 - # Cluster OtaSoftwareUpdateRequestor SubscribeAttribute ClusterRevision - self._chipLib.chip_ime_SubscribeAttribute_OtaSoftwareUpdateRequestor_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_OtaSoftwareUpdateRequestor_ClusterRevision.restype = ctypes.c_uint32 - # Cluster OccupancySensing - # Cluster OccupancySensing ReadAttribute Occupancy - self._chipLib.chip_ime_ReadAttribute_OccupancySensing_Occupancy.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_OccupancySensing_Occupancy.restype = ctypes.c_uint32 - # Cluster OccupancySensing SubscribeAttribute Occupancy - self._chipLib.chip_ime_SubscribeAttribute_OccupancySensing_Occupancy.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_OccupancySensing_Occupancy.restype = ctypes.c_uint32 - # Cluster OccupancySensing ReadAttribute OccupancySensorType - self._chipLib.chip_ime_ReadAttribute_OccupancySensing_OccupancySensorType.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_OccupancySensing_OccupancySensorType.restype = ctypes.c_uint32 - # Cluster OccupancySensing SubscribeAttribute OccupancySensorType - self._chipLib.chip_ime_SubscribeAttribute_OccupancySensing_OccupancySensorType.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_OccupancySensing_OccupancySensorType.restype = ctypes.c_uint32 - # Cluster OccupancySensing ReadAttribute OccupancySensorTypeBitmap - self._chipLib.chip_ime_ReadAttribute_OccupancySensing_OccupancySensorTypeBitmap.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_OccupancySensing_OccupancySensorTypeBitmap.restype = ctypes.c_uint32 - # Cluster OccupancySensing SubscribeAttribute OccupancySensorTypeBitmap - self._chipLib.chip_ime_SubscribeAttribute_OccupancySensing_OccupancySensorTypeBitmap.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_OccupancySensing_OccupancySensorTypeBitmap.restype = ctypes.c_uint32 - # Cluster OccupancySensing ReadAttribute ClusterRevision - self._chipLib.chip_ime_ReadAttribute_OccupancySensing_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_OccupancySensing_ClusterRevision.restype = ctypes.c_uint32 - # Cluster OccupancySensing SubscribeAttribute ClusterRevision - self._chipLib.chip_ime_SubscribeAttribute_OccupancySensing_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_OccupancySensing_ClusterRevision.restype = ctypes.c_uint32 - # Cluster OnOff - # Cluster OnOff ReadAttribute OnOff - self._chipLib.chip_ime_ReadAttribute_OnOff_OnOff.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_OnOff_OnOff.restype = ctypes.c_uint32 - # Cluster OnOff SubscribeAttribute OnOff - self._chipLib.chip_ime_SubscribeAttribute_OnOff_OnOff.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_OnOff_OnOff.restype = ctypes.c_uint32 - # Cluster OnOff ReadAttribute GlobalSceneControl - self._chipLib.chip_ime_ReadAttribute_OnOff_GlobalSceneControl.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_OnOff_GlobalSceneControl.restype = ctypes.c_uint32 - # Cluster OnOff SubscribeAttribute GlobalSceneControl - self._chipLib.chip_ime_SubscribeAttribute_OnOff_GlobalSceneControl.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_OnOff_GlobalSceneControl.restype = ctypes.c_uint32 - # Cluster OnOff ReadAttribute OnTime - self._chipLib.chip_ime_ReadAttribute_OnOff_OnTime.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_OnOff_OnTime.restype = ctypes.c_uint32 - # Cluster OnOff SubscribeAttribute OnTime - self._chipLib.chip_ime_SubscribeAttribute_OnOff_OnTime.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_OnOff_OnTime.restype = ctypes.c_uint32 - # Cluster OnOff ReadAttribute OffWaitTime - self._chipLib.chip_ime_ReadAttribute_OnOff_OffWaitTime.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_OnOff_OffWaitTime.restype = ctypes.c_uint32 - # Cluster OnOff SubscribeAttribute OffWaitTime - self._chipLib.chip_ime_SubscribeAttribute_OnOff_OffWaitTime.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_OnOff_OffWaitTime.restype = ctypes.c_uint32 - # Cluster OnOff ReadAttribute StartUpOnOff - self._chipLib.chip_ime_ReadAttribute_OnOff_StartUpOnOff.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_OnOff_StartUpOnOff.restype = ctypes.c_uint32 - # Cluster OnOff SubscribeAttribute StartUpOnOff - self._chipLib.chip_ime_SubscribeAttribute_OnOff_StartUpOnOff.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_OnOff_StartUpOnOff.restype = ctypes.c_uint32 - # Cluster OnOff ReadAttribute FeatureMap - self._chipLib.chip_ime_ReadAttribute_OnOff_FeatureMap.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_OnOff_FeatureMap.restype = ctypes.c_uint32 - # Cluster OnOff SubscribeAttribute FeatureMap - self._chipLib.chip_ime_SubscribeAttribute_OnOff_FeatureMap.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_OnOff_FeatureMap.restype = ctypes.c_uint32 - # Cluster OnOff ReadAttribute ClusterRevision - self._chipLib.chip_ime_ReadAttribute_OnOff_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_OnOff_ClusterRevision.restype = ctypes.c_uint32 - # Cluster OnOff SubscribeAttribute ClusterRevision - self._chipLib.chip_ime_SubscribeAttribute_OnOff_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_OnOff_ClusterRevision.restype = ctypes.c_uint32 - # Cluster OnOffSwitchConfiguration - # Cluster OnOffSwitchConfiguration ReadAttribute SwitchType - self._chipLib.chip_ime_ReadAttribute_OnOffSwitchConfiguration_SwitchType.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_OnOffSwitchConfiguration_SwitchType.restype = ctypes.c_uint32 - # Cluster OnOffSwitchConfiguration SubscribeAttribute SwitchType - self._chipLib.chip_ime_SubscribeAttribute_OnOffSwitchConfiguration_SwitchType.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_OnOffSwitchConfiguration_SwitchType.restype = ctypes.c_uint32 - # Cluster OnOffSwitchConfiguration ReadAttribute SwitchActions - self._chipLib.chip_ime_ReadAttribute_OnOffSwitchConfiguration_SwitchActions.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_OnOffSwitchConfiguration_SwitchActions.restype = ctypes.c_uint32 - # Cluster OnOffSwitchConfiguration SubscribeAttribute SwitchActions - self._chipLib.chip_ime_SubscribeAttribute_OnOffSwitchConfiguration_SwitchActions.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_OnOffSwitchConfiguration_SwitchActions.restype = ctypes.c_uint32 - # Cluster OnOffSwitchConfiguration ReadAttribute ClusterRevision - self._chipLib.chip_ime_ReadAttribute_OnOffSwitchConfiguration_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_OnOffSwitchConfiguration_ClusterRevision.restype = ctypes.c_uint32 - # Cluster OnOffSwitchConfiguration SubscribeAttribute ClusterRevision - self._chipLib.chip_ime_SubscribeAttribute_OnOffSwitchConfiguration_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_OnOffSwitchConfiguration_ClusterRevision.restype = ctypes.c_uint32 - # Cluster OperationalCredentials - # Cluster OperationalCredentials ReadAttribute FabricsList - self._chipLib.chip_ime_ReadAttribute_OperationalCredentials_FabricsList.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_OperationalCredentials_FabricsList.restype = ctypes.c_uint32 - # Cluster OperationalCredentials ReadAttribute SupportedFabrics - self._chipLib.chip_ime_ReadAttribute_OperationalCredentials_SupportedFabrics.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_OperationalCredentials_SupportedFabrics.restype = ctypes.c_uint32 - # Cluster OperationalCredentials SubscribeAttribute SupportedFabrics - self._chipLib.chip_ime_SubscribeAttribute_OperationalCredentials_SupportedFabrics.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_OperationalCredentials_SupportedFabrics.restype = ctypes.c_uint32 - # Cluster OperationalCredentials ReadAttribute CommissionedFabrics - self._chipLib.chip_ime_ReadAttribute_OperationalCredentials_CommissionedFabrics.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_OperationalCredentials_CommissionedFabrics.restype = ctypes.c_uint32 - # Cluster OperationalCredentials SubscribeAttribute CommissionedFabrics - self._chipLib.chip_ime_SubscribeAttribute_OperationalCredentials_CommissionedFabrics.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_OperationalCredentials_CommissionedFabrics.restype = ctypes.c_uint32 - # Cluster OperationalCredentials ReadAttribute TrustedRootCertificates - self._chipLib.chip_ime_ReadAttribute_OperationalCredentials_TrustedRootCertificates.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_OperationalCredentials_TrustedRootCertificates.restype = ctypes.c_uint32 - # Cluster OperationalCredentials ReadAttribute CurrentFabricIndex - self._chipLib.chip_ime_ReadAttribute_OperationalCredentials_CurrentFabricIndex.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_OperationalCredentials_CurrentFabricIndex.restype = ctypes.c_uint32 - # Cluster OperationalCredentials SubscribeAttribute CurrentFabricIndex - self._chipLib.chip_ime_SubscribeAttribute_OperationalCredentials_CurrentFabricIndex.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_OperationalCredentials_CurrentFabricIndex.restype = ctypes.c_uint32 - # Cluster OperationalCredentials ReadAttribute ClusterRevision - self._chipLib.chip_ime_ReadAttribute_OperationalCredentials_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_OperationalCredentials_ClusterRevision.restype = ctypes.c_uint32 - # Cluster OperationalCredentials SubscribeAttribute ClusterRevision - self._chipLib.chip_ime_SubscribeAttribute_OperationalCredentials_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_OperationalCredentials_ClusterRevision.restype = ctypes.c_uint32 - # Cluster PowerSource - # Cluster PowerSource ReadAttribute Status - self._chipLib.chip_ime_ReadAttribute_PowerSource_Status.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_PowerSource_Status.restype = ctypes.c_uint32 - # Cluster PowerSource SubscribeAttribute Status - self._chipLib.chip_ime_SubscribeAttribute_PowerSource_Status.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_PowerSource_Status.restype = ctypes.c_uint32 - # Cluster PowerSource ReadAttribute Order - self._chipLib.chip_ime_ReadAttribute_PowerSource_Order.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_PowerSource_Order.restype = ctypes.c_uint32 - # Cluster PowerSource SubscribeAttribute Order - self._chipLib.chip_ime_SubscribeAttribute_PowerSource_Order.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_PowerSource_Order.restype = ctypes.c_uint32 - # Cluster PowerSource ReadAttribute Description - self._chipLib.chip_ime_ReadAttribute_PowerSource_Description.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_PowerSource_Description.restype = ctypes.c_uint32 - # Cluster PowerSource SubscribeAttribute Description - self._chipLib.chip_ime_SubscribeAttribute_PowerSource_Description.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_PowerSource_Description.restype = ctypes.c_uint32 - # Cluster PowerSource ReadAttribute BatteryVoltage - self._chipLib.chip_ime_ReadAttribute_PowerSource_BatteryVoltage.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_PowerSource_BatteryVoltage.restype = ctypes.c_uint32 - # Cluster PowerSource SubscribeAttribute BatteryVoltage - self._chipLib.chip_ime_SubscribeAttribute_PowerSource_BatteryVoltage.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_PowerSource_BatteryVoltage.restype = ctypes.c_uint32 - # Cluster PowerSource ReadAttribute BatteryPercentRemaining - self._chipLib.chip_ime_ReadAttribute_PowerSource_BatteryPercentRemaining.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_PowerSource_BatteryPercentRemaining.restype = ctypes.c_uint32 - # Cluster PowerSource SubscribeAttribute BatteryPercentRemaining - self._chipLib.chip_ime_SubscribeAttribute_PowerSource_BatteryPercentRemaining.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_PowerSource_BatteryPercentRemaining.restype = ctypes.c_uint32 - # Cluster PowerSource ReadAttribute BatteryTimeRemaining - self._chipLib.chip_ime_ReadAttribute_PowerSource_BatteryTimeRemaining.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_PowerSource_BatteryTimeRemaining.restype = ctypes.c_uint32 - # Cluster PowerSource SubscribeAttribute BatteryTimeRemaining - self._chipLib.chip_ime_SubscribeAttribute_PowerSource_BatteryTimeRemaining.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_PowerSource_BatteryTimeRemaining.restype = ctypes.c_uint32 - # Cluster PowerSource ReadAttribute BatteryChargeLevel - self._chipLib.chip_ime_ReadAttribute_PowerSource_BatteryChargeLevel.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_PowerSource_BatteryChargeLevel.restype = ctypes.c_uint32 - # Cluster PowerSource SubscribeAttribute BatteryChargeLevel - self._chipLib.chip_ime_SubscribeAttribute_PowerSource_BatteryChargeLevel.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_PowerSource_BatteryChargeLevel.restype = ctypes.c_uint32 - # Cluster PowerSource ReadAttribute ActiveBatteryFaults - self._chipLib.chip_ime_ReadAttribute_PowerSource_ActiveBatteryFaults.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_PowerSource_ActiveBatteryFaults.restype = ctypes.c_uint32 - # Cluster PowerSource ReadAttribute BatteryChargeState - self._chipLib.chip_ime_ReadAttribute_PowerSource_BatteryChargeState.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_PowerSource_BatteryChargeState.restype = ctypes.c_uint32 - # Cluster PowerSource SubscribeAttribute BatteryChargeState - self._chipLib.chip_ime_SubscribeAttribute_PowerSource_BatteryChargeState.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_PowerSource_BatteryChargeState.restype = ctypes.c_uint32 - # Cluster PowerSource ReadAttribute FeatureMap - self._chipLib.chip_ime_ReadAttribute_PowerSource_FeatureMap.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_PowerSource_FeatureMap.restype = ctypes.c_uint32 - # Cluster PowerSource SubscribeAttribute FeatureMap - self._chipLib.chip_ime_SubscribeAttribute_PowerSource_FeatureMap.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_PowerSource_FeatureMap.restype = ctypes.c_uint32 - # Cluster PowerSource ReadAttribute ClusterRevision - self._chipLib.chip_ime_ReadAttribute_PowerSource_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_PowerSource_ClusterRevision.restype = ctypes.c_uint32 - # Cluster PowerSource SubscribeAttribute ClusterRevision - self._chipLib.chip_ime_SubscribeAttribute_PowerSource_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_PowerSource_ClusterRevision.restype = ctypes.c_uint32 - # Cluster PressureMeasurement - # Cluster PressureMeasurement ReadAttribute MeasuredValue - self._chipLib.chip_ime_ReadAttribute_PressureMeasurement_MeasuredValue.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_PressureMeasurement_MeasuredValue.restype = ctypes.c_uint32 - # Cluster PressureMeasurement SubscribeAttribute MeasuredValue - self._chipLib.chip_ime_SubscribeAttribute_PressureMeasurement_MeasuredValue.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_PressureMeasurement_MeasuredValue.restype = ctypes.c_uint32 - # Cluster PressureMeasurement ReadAttribute MinMeasuredValue - self._chipLib.chip_ime_ReadAttribute_PressureMeasurement_MinMeasuredValue.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_PressureMeasurement_MinMeasuredValue.restype = ctypes.c_uint32 - # Cluster PressureMeasurement SubscribeAttribute MinMeasuredValue - self._chipLib.chip_ime_SubscribeAttribute_PressureMeasurement_MinMeasuredValue.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_PressureMeasurement_MinMeasuredValue.restype = ctypes.c_uint32 - # Cluster PressureMeasurement ReadAttribute MaxMeasuredValue - self._chipLib.chip_ime_ReadAttribute_PressureMeasurement_MaxMeasuredValue.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_PressureMeasurement_MaxMeasuredValue.restype = ctypes.c_uint32 - # Cluster PressureMeasurement SubscribeAttribute MaxMeasuredValue - self._chipLib.chip_ime_SubscribeAttribute_PressureMeasurement_MaxMeasuredValue.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_PressureMeasurement_MaxMeasuredValue.restype = ctypes.c_uint32 - # Cluster PressureMeasurement ReadAttribute ClusterRevision - self._chipLib.chip_ime_ReadAttribute_PressureMeasurement_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_PressureMeasurement_ClusterRevision.restype = ctypes.c_uint32 - # Cluster PressureMeasurement SubscribeAttribute ClusterRevision - self._chipLib.chip_ime_SubscribeAttribute_PressureMeasurement_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_PressureMeasurement_ClusterRevision.restype = ctypes.c_uint32 - # Cluster PumpConfigurationAndControl - # Cluster PumpConfigurationAndControl ReadAttribute MaxPressure - self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_MaxPressure.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_MaxPressure.restype = ctypes.c_uint32 - # Cluster PumpConfigurationAndControl SubscribeAttribute MaxPressure - self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_MaxPressure.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_MaxPressure.restype = ctypes.c_uint32 - # Cluster PumpConfigurationAndControl ReadAttribute MaxSpeed - self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_MaxSpeed.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_MaxSpeed.restype = ctypes.c_uint32 - # Cluster PumpConfigurationAndControl SubscribeAttribute MaxSpeed - self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_MaxSpeed.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_MaxSpeed.restype = ctypes.c_uint32 - # Cluster PumpConfigurationAndControl ReadAttribute MaxFlow - self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_MaxFlow.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_MaxFlow.restype = ctypes.c_uint32 - # Cluster PumpConfigurationAndControl SubscribeAttribute MaxFlow - self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_MaxFlow.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_MaxFlow.restype = ctypes.c_uint32 - # Cluster PumpConfigurationAndControl ReadAttribute MinConstPressure - self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_MinConstPressure.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_MinConstPressure.restype = ctypes.c_uint32 - # Cluster PumpConfigurationAndControl SubscribeAttribute MinConstPressure - self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_MinConstPressure.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_MinConstPressure.restype = ctypes.c_uint32 - # Cluster PumpConfigurationAndControl ReadAttribute MaxConstPressure - self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_MaxConstPressure.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_MaxConstPressure.restype = ctypes.c_uint32 - # Cluster PumpConfigurationAndControl SubscribeAttribute MaxConstPressure - self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_MaxConstPressure.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_MaxConstPressure.restype = ctypes.c_uint32 - # Cluster PumpConfigurationAndControl ReadAttribute MinCompPressure - self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_MinCompPressure.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_MinCompPressure.restype = ctypes.c_uint32 - # Cluster PumpConfigurationAndControl SubscribeAttribute MinCompPressure - self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_MinCompPressure.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_MinCompPressure.restype = ctypes.c_uint32 - # Cluster PumpConfigurationAndControl ReadAttribute MaxCompPressure - self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_MaxCompPressure.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_MaxCompPressure.restype = ctypes.c_uint32 - # Cluster PumpConfigurationAndControl SubscribeAttribute MaxCompPressure - self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_MaxCompPressure.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_MaxCompPressure.restype = ctypes.c_uint32 - # Cluster PumpConfigurationAndControl ReadAttribute MinConstSpeed - self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_MinConstSpeed.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_MinConstSpeed.restype = ctypes.c_uint32 - # Cluster PumpConfigurationAndControl SubscribeAttribute MinConstSpeed - self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_MinConstSpeed.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_MinConstSpeed.restype = ctypes.c_uint32 - # Cluster PumpConfigurationAndControl ReadAttribute MaxConstSpeed - self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_MaxConstSpeed.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_MaxConstSpeed.restype = ctypes.c_uint32 - # Cluster PumpConfigurationAndControl SubscribeAttribute MaxConstSpeed - self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_MaxConstSpeed.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_MaxConstSpeed.restype = ctypes.c_uint32 - # Cluster PumpConfigurationAndControl ReadAttribute MinConstFlow - self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_MinConstFlow.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_MinConstFlow.restype = ctypes.c_uint32 - # Cluster PumpConfigurationAndControl SubscribeAttribute MinConstFlow - self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_MinConstFlow.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_MinConstFlow.restype = ctypes.c_uint32 - # Cluster PumpConfigurationAndControl ReadAttribute MaxConstFlow - self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_MaxConstFlow.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_MaxConstFlow.restype = ctypes.c_uint32 - # Cluster PumpConfigurationAndControl SubscribeAttribute MaxConstFlow - self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_MaxConstFlow.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_MaxConstFlow.restype = ctypes.c_uint32 - # Cluster PumpConfigurationAndControl ReadAttribute MinConstTemp - self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_MinConstTemp.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_MinConstTemp.restype = ctypes.c_uint32 - # Cluster PumpConfigurationAndControl SubscribeAttribute MinConstTemp - self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_MinConstTemp.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_MinConstTemp.restype = ctypes.c_uint32 - # Cluster PumpConfigurationAndControl ReadAttribute MaxConstTemp - self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_MaxConstTemp.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_MaxConstTemp.restype = ctypes.c_uint32 - # Cluster PumpConfigurationAndControl SubscribeAttribute MaxConstTemp - self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_MaxConstTemp.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_MaxConstTemp.restype = ctypes.c_uint32 - # Cluster PumpConfigurationAndControl ReadAttribute PumpStatus - self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_PumpStatus.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_PumpStatus.restype = ctypes.c_uint32 - # Cluster PumpConfigurationAndControl SubscribeAttribute PumpStatus - self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_PumpStatus.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_PumpStatus.restype = ctypes.c_uint32 - # Cluster PumpConfigurationAndControl ReadAttribute EffectiveOperationMode - self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_EffectiveOperationMode.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_EffectiveOperationMode.restype = ctypes.c_uint32 - # Cluster PumpConfigurationAndControl SubscribeAttribute EffectiveOperationMode - self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_EffectiveOperationMode.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_EffectiveOperationMode.restype = ctypes.c_uint32 - # Cluster PumpConfigurationAndControl ReadAttribute EffectiveControlMode - self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_EffectiveControlMode.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_EffectiveControlMode.restype = ctypes.c_uint32 - # Cluster PumpConfigurationAndControl SubscribeAttribute EffectiveControlMode - self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_EffectiveControlMode.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_EffectiveControlMode.restype = ctypes.c_uint32 - # Cluster PumpConfigurationAndControl ReadAttribute Capacity - self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_Capacity.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_Capacity.restype = ctypes.c_uint32 - # Cluster PumpConfigurationAndControl SubscribeAttribute Capacity - self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_Capacity.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_Capacity.restype = ctypes.c_uint32 - # Cluster PumpConfigurationAndControl ReadAttribute Speed - self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_Speed.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_Speed.restype = ctypes.c_uint32 - # Cluster PumpConfigurationAndControl SubscribeAttribute Speed - self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_Speed.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_Speed.restype = ctypes.c_uint32 - # Cluster PumpConfigurationAndControl ReadAttribute LifetimeRunningHours - self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_LifetimeRunningHours.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_LifetimeRunningHours.restype = ctypes.c_uint32 - # Cluster PumpConfigurationAndControl SubscribeAttribute LifetimeRunningHours - self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_LifetimeRunningHours.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_LifetimeRunningHours.restype = ctypes.c_uint32 - # Cluster PumpConfigurationAndControl ReadAttribute Power - self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_Power.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_Power.restype = ctypes.c_uint32 - # Cluster PumpConfigurationAndControl SubscribeAttribute Power - self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_Power.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_Power.restype = ctypes.c_uint32 - # Cluster PumpConfigurationAndControl ReadAttribute LifetimeEnergyConsumed - self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_LifetimeEnergyConsumed.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_LifetimeEnergyConsumed.restype = ctypes.c_uint32 - # Cluster PumpConfigurationAndControl SubscribeAttribute LifetimeEnergyConsumed - self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_LifetimeEnergyConsumed.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_LifetimeEnergyConsumed.restype = ctypes.c_uint32 - # Cluster PumpConfigurationAndControl ReadAttribute OperationMode - self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_OperationMode.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_OperationMode.restype = ctypes.c_uint32 - # Cluster PumpConfigurationAndControl SubscribeAttribute OperationMode - self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_OperationMode.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_OperationMode.restype = ctypes.c_uint32 - # Cluster PumpConfigurationAndControl ReadAttribute ControlMode - self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_ControlMode.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_ControlMode.restype = ctypes.c_uint32 - # Cluster PumpConfigurationAndControl SubscribeAttribute ControlMode - self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_ControlMode.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_ControlMode.restype = ctypes.c_uint32 - # Cluster PumpConfigurationAndControl ReadAttribute AlarmMask - self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_AlarmMask.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_AlarmMask.restype = ctypes.c_uint32 - # Cluster PumpConfigurationAndControl SubscribeAttribute AlarmMask - self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_AlarmMask.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_AlarmMask.restype = ctypes.c_uint32 - # Cluster PumpConfigurationAndControl ReadAttribute FeatureMap - self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_FeatureMap.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_FeatureMap.restype = ctypes.c_uint32 - # Cluster PumpConfigurationAndControl SubscribeAttribute FeatureMap - self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_FeatureMap.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_FeatureMap.restype = ctypes.c_uint32 - # Cluster PumpConfigurationAndControl ReadAttribute ClusterRevision - self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_PumpConfigurationAndControl_ClusterRevision.restype = ctypes.c_uint32 - # Cluster PumpConfigurationAndControl SubscribeAttribute ClusterRevision - self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_PumpConfigurationAndControl_ClusterRevision.restype = ctypes.c_uint32 - # Cluster RelativeHumidityMeasurement - # Cluster RelativeHumidityMeasurement ReadAttribute MeasuredValue - self._chipLib.chip_ime_ReadAttribute_RelativeHumidityMeasurement_MeasuredValue.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_RelativeHumidityMeasurement_MeasuredValue.restype = ctypes.c_uint32 - # Cluster RelativeHumidityMeasurement SubscribeAttribute MeasuredValue - self._chipLib.chip_ime_SubscribeAttribute_RelativeHumidityMeasurement_MeasuredValue.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_RelativeHumidityMeasurement_MeasuredValue.restype = ctypes.c_uint32 - # Cluster RelativeHumidityMeasurement ReadAttribute MinMeasuredValue - self._chipLib.chip_ime_ReadAttribute_RelativeHumidityMeasurement_MinMeasuredValue.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_RelativeHumidityMeasurement_MinMeasuredValue.restype = ctypes.c_uint32 - # Cluster RelativeHumidityMeasurement SubscribeAttribute MinMeasuredValue - self._chipLib.chip_ime_SubscribeAttribute_RelativeHumidityMeasurement_MinMeasuredValue.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_RelativeHumidityMeasurement_MinMeasuredValue.restype = ctypes.c_uint32 - # Cluster RelativeHumidityMeasurement ReadAttribute MaxMeasuredValue - self._chipLib.chip_ime_ReadAttribute_RelativeHumidityMeasurement_MaxMeasuredValue.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_RelativeHumidityMeasurement_MaxMeasuredValue.restype = ctypes.c_uint32 - # Cluster RelativeHumidityMeasurement SubscribeAttribute MaxMeasuredValue - self._chipLib.chip_ime_SubscribeAttribute_RelativeHumidityMeasurement_MaxMeasuredValue.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_RelativeHumidityMeasurement_MaxMeasuredValue.restype = ctypes.c_uint32 - # Cluster RelativeHumidityMeasurement ReadAttribute Tolerance - self._chipLib.chip_ime_ReadAttribute_RelativeHumidityMeasurement_Tolerance.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_RelativeHumidityMeasurement_Tolerance.restype = ctypes.c_uint32 - # Cluster RelativeHumidityMeasurement SubscribeAttribute Tolerance - self._chipLib.chip_ime_SubscribeAttribute_RelativeHumidityMeasurement_Tolerance.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_RelativeHumidityMeasurement_Tolerance.restype = ctypes.c_uint32 - # Cluster RelativeHumidityMeasurement ReadAttribute ClusterRevision - self._chipLib.chip_ime_ReadAttribute_RelativeHumidityMeasurement_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_RelativeHumidityMeasurement_ClusterRevision.restype = ctypes.c_uint32 - # Cluster RelativeHumidityMeasurement SubscribeAttribute ClusterRevision - self._chipLib.chip_ime_SubscribeAttribute_RelativeHumidityMeasurement_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_RelativeHumidityMeasurement_ClusterRevision.restype = ctypes.c_uint32 - # Cluster Scenes - # Cluster Scenes ReadAttribute SceneCount - self._chipLib.chip_ime_ReadAttribute_Scenes_SceneCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_Scenes_SceneCount.restype = ctypes.c_uint32 - # Cluster Scenes SubscribeAttribute SceneCount - self._chipLib.chip_ime_SubscribeAttribute_Scenes_SceneCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_Scenes_SceneCount.restype = ctypes.c_uint32 - # Cluster Scenes ReadAttribute CurrentScene - self._chipLib.chip_ime_ReadAttribute_Scenes_CurrentScene.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_Scenes_CurrentScene.restype = ctypes.c_uint32 - # Cluster Scenes SubscribeAttribute CurrentScene - self._chipLib.chip_ime_SubscribeAttribute_Scenes_CurrentScene.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_Scenes_CurrentScene.restype = ctypes.c_uint32 - # Cluster Scenes ReadAttribute CurrentGroup - self._chipLib.chip_ime_ReadAttribute_Scenes_CurrentGroup.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_Scenes_CurrentGroup.restype = ctypes.c_uint32 - # Cluster Scenes SubscribeAttribute CurrentGroup - self._chipLib.chip_ime_SubscribeAttribute_Scenes_CurrentGroup.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_Scenes_CurrentGroup.restype = ctypes.c_uint32 - # Cluster Scenes ReadAttribute SceneValid - self._chipLib.chip_ime_ReadAttribute_Scenes_SceneValid.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_Scenes_SceneValid.restype = ctypes.c_uint32 - # Cluster Scenes SubscribeAttribute SceneValid - self._chipLib.chip_ime_SubscribeAttribute_Scenes_SceneValid.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_Scenes_SceneValid.restype = ctypes.c_uint32 - # Cluster Scenes ReadAttribute NameSupport - self._chipLib.chip_ime_ReadAttribute_Scenes_NameSupport.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_Scenes_NameSupport.restype = ctypes.c_uint32 - # Cluster Scenes SubscribeAttribute NameSupport - self._chipLib.chip_ime_SubscribeAttribute_Scenes_NameSupport.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_Scenes_NameSupport.restype = ctypes.c_uint32 - # Cluster Scenes ReadAttribute ClusterRevision - self._chipLib.chip_ime_ReadAttribute_Scenes_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_Scenes_ClusterRevision.restype = ctypes.c_uint32 - # Cluster Scenes SubscribeAttribute ClusterRevision - self._chipLib.chip_ime_SubscribeAttribute_Scenes_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_Scenes_ClusterRevision.restype = ctypes.c_uint32 - # Cluster SoftwareDiagnostics - # Cluster SoftwareDiagnostics ReadAttribute ThreadMetrics - self._chipLib.chip_ime_ReadAttribute_SoftwareDiagnostics_ThreadMetrics.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_SoftwareDiagnostics_ThreadMetrics.restype = ctypes.c_uint32 - # Cluster SoftwareDiagnostics ReadAttribute CurrentHeapFree - self._chipLib.chip_ime_ReadAttribute_SoftwareDiagnostics_CurrentHeapFree.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_SoftwareDiagnostics_CurrentHeapFree.restype = ctypes.c_uint32 - # Cluster SoftwareDiagnostics SubscribeAttribute CurrentHeapFree - self._chipLib.chip_ime_SubscribeAttribute_SoftwareDiagnostics_CurrentHeapFree.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_SoftwareDiagnostics_CurrentHeapFree.restype = ctypes.c_uint32 - # Cluster SoftwareDiagnostics ReadAttribute CurrentHeapUsed - self._chipLib.chip_ime_ReadAttribute_SoftwareDiagnostics_CurrentHeapUsed.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_SoftwareDiagnostics_CurrentHeapUsed.restype = ctypes.c_uint32 - # Cluster SoftwareDiagnostics SubscribeAttribute CurrentHeapUsed - self._chipLib.chip_ime_SubscribeAttribute_SoftwareDiagnostics_CurrentHeapUsed.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_SoftwareDiagnostics_CurrentHeapUsed.restype = ctypes.c_uint32 - # Cluster SoftwareDiagnostics ReadAttribute CurrentHeapHighWatermark - self._chipLib.chip_ime_ReadAttribute_SoftwareDiagnostics_CurrentHeapHighWatermark.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_SoftwareDiagnostics_CurrentHeapHighWatermark.restype = ctypes.c_uint32 - # Cluster SoftwareDiagnostics SubscribeAttribute CurrentHeapHighWatermark - self._chipLib.chip_ime_SubscribeAttribute_SoftwareDiagnostics_CurrentHeapHighWatermark.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_SoftwareDiagnostics_CurrentHeapHighWatermark.restype = ctypes.c_uint32 - # Cluster SoftwareDiagnostics ReadAttribute FeatureMap - self._chipLib.chip_ime_ReadAttribute_SoftwareDiagnostics_FeatureMap.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_SoftwareDiagnostics_FeatureMap.restype = ctypes.c_uint32 - # Cluster SoftwareDiagnostics ReadAttribute ClusterRevision - self._chipLib.chip_ime_ReadAttribute_SoftwareDiagnostics_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_SoftwareDiagnostics_ClusterRevision.restype = ctypes.c_uint32 - # Cluster SoftwareDiagnostics SubscribeAttribute ClusterRevision - self._chipLib.chip_ime_SubscribeAttribute_SoftwareDiagnostics_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_SoftwareDiagnostics_ClusterRevision.restype = ctypes.c_uint32 - # Cluster Switch - # Cluster Switch ReadAttribute NumberOfPositions - self._chipLib.chip_ime_ReadAttribute_Switch_NumberOfPositions.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_Switch_NumberOfPositions.restype = ctypes.c_uint32 - # Cluster Switch SubscribeAttribute NumberOfPositions - self._chipLib.chip_ime_SubscribeAttribute_Switch_NumberOfPositions.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_Switch_NumberOfPositions.restype = ctypes.c_uint32 - # Cluster Switch ReadAttribute CurrentPosition - self._chipLib.chip_ime_ReadAttribute_Switch_CurrentPosition.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_Switch_CurrentPosition.restype = ctypes.c_uint32 - # Cluster Switch SubscribeAttribute CurrentPosition - self._chipLib.chip_ime_SubscribeAttribute_Switch_CurrentPosition.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_Switch_CurrentPosition.restype = ctypes.c_uint32 - # Cluster Switch ReadAttribute MultiPressMax - self._chipLib.chip_ime_ReadAttribute_Switch_MultiPressMax.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_Switch_MultiPressMax.restype = ctypes.c_uint32 - # Cluster Switch SubscribeAttribute MultiPressMax - self._chipLib.chip_ime_SubscribeAttribute_Switch_MultiPressMax.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_Switch_MultiPressMax.restype = ctypes.c_uint32 - # Cluster Switch ReadAttribute FeatureMap - self._chipLib.chip_ime_ReadAttribute_Switch_FeatureMap.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_Switch_FeatureMap.restype = ctypes.c_uint32 - # Cluster Switch SubscribeAttribute FeatureMap - self._chipLib.chip_ime_SubscribeAttribute_Switch_FeatureMap.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_Switch_FeatureMap.restype = ctypes.c_uint32 - # Cluster Switch ReadAttribute ClusterRevision - self._chipLib.chip_ime_ReadAttribute_Switch_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_Switch_ClusterRevision.restype = ctypes.c_uint32 - # Cluster Switch SubscribeAttribute ClusterRevision - self._chipLib.chip_ime_SubscribeAttribute_Switch_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_Switch_ClusterRevision.restype = ctypes.c_uint32 - # Cluster TvChannel - # Cluster TvChannel ReadAttribute TvChannelList - self._chipLib.chip_ime_ReadAttribute_TvChannel_TvChannelList.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_TvChannel_TvChannelList.restype = ctypes.c_uint32 - # Cluster TvChannel ReadAttribute TvChannelLineup - self._chipLib.chip_ime_ReadAttribute_TvChannel_TvChannelLineup.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_TvChannel_TvChannelLineup.restype = ctypes.c_uint32 - # Cluster TvChannel SubscribeAttribute TvChannelLineup - self._chipLib.chip_ime_SubscribeAttribute_TvChannel_TvChannelLineup.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_TvChannel_TvChannelLineup.restype = ctypes.c_uint32 - # Cluster TvChannel ReadAttribute CurrentTvChannel - self._chipLib.chip_ime_ReadAttribute_TvChannel_CurrentTvChannel.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_TvChannel_CurrentTvChannel.restype = ctypes.c_uint32 - # Cluster TvChannel SubscribeAttribute CurrentTvChannel - self._chipLib.chip_ime_SubscribeAttribute_TvChannel_CurrentTvChannel.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_TvChannel_CurrentTvChannel.restype = ctypes.c_uint32 - # Cluster TvChannel ReadAttribute ClusterRevision - self._chipLib.chip_ime_ReadAttribute_TvChannel_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_TvChannel_ClusterRevision.restype = ctypes.c_uint32 - # Cluster TvChannel SubscribeAttribute ClusterRevision - self._chipLib.chip_ime_SubscribeAttribute_TvChannel_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_TvChannel_ClusterRevision.restype = ctypes.c_uint32 - # Cluster TargetNavigator - # Cluster TargetNavigator ReadAttribute TargetNavigatorList - self._chipLib.chip_ime_ReadAttribute_TargetNavigator_TargetNavigatorList.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_TargetNavigator_TargetNavigatorList.restype = ctypes.c_uint32 - # Cluster TargetNavigator ReadAttribute ClusterRevision - self._chipLib.chip_ime_ReadAttribute_TargetNavigator_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_TargetNavigator_ClusterRevision.restype = ctypes.c_uint32 - # Cluster TargetNavigator SubscribeAttribute ClusterRevision - self._chipLib.chip_ime_SubscribeAttribute_TargetNavigator_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_TargetNavigator_ClusterRevision.restype = ctypes.c_uint32 - # Cluster TemperatureMeasurement - # Cluster TemperatureMeasurement ReadAttribute MeasuredValue - self._chipLib.chip_ime_ReadAttribute_TemperatureMeasurement_MeasuredValue.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_TemperatureMeasurement_MeasuredValue.restype = ctypes.c_uint32 - # Cluster TemperatureMeasurement SubscribeAttribute MeasuredValue - self._chipLib.chip_ime_SubscribeAttribute_TemperatureMeasurement_MeasuredValue.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_TemperatureMeasurement_MeasuredValue.restype = ctypes.c_uint32 - # Cluster TemperatureMeasurement ReadAttribute MinMeasuredValue - self._chipLib.chip_ime_ReadAttribute_TemperatureMeasurement_MinMeasuredValue.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_TemperatureMeasurement_MinMeasuredValue.restype = ctypes.c_uint32 - # Cluster TemperatureMeasurement SubscribeAttribute MinMeasuredValue - self._chipLib.chip_ime_SubscribeAttribute_TemperatureMeasurement_MinMeasuredValue.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_TemperatureMeasurement_MinMeasuredValue.restype = ctypes.c_uint32 - # Cluster TemperatureMeasurement ReadAttribute MaxMeasuredValue - self._chipLib.chip_ime_ReadAttribute_TemperatureMeasurement_MaxMeasuredValue.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_TemperatureMeasurement_MaxMeasuredValue.restype = ctypes.c_uint32 - # Cluster TemperatureMeasurement SubscribeAttribute MaxMeasuredValue - self._chipLib.chip_ime_SubscribeAttribute_TemperatureMeasurement_MaxMeasuredValue.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_TemperatureMeasurement_MaxMeasuredValue.restype = ctypes.c_uint32 - # Cluster TemperatureMeasurement ReadAttribute Tolerance - self._chipLib.chip_ime_ReadAttribute_TemperatureMeasurement_Tolerance.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_TemperatureMeasurement_Tolerance.restype = ctypes.c_uint32 - # Cluster TemperatureMeasurement SubscribeAttribute Tolerance - self._chipLib.chip_ime_SubscribeAttribute_TemperatureMeasurement_Tolerance.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_TemperatureMeasurement_Tolerance.restype = ctypes.c_uint32 - # Cluster TemperatureMeasurement ReadAttribute ClusterRevision - self._chipLib.chip_ime_ReadAttribute_TemperatureMeasurement_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_TemperatureMeasurement_ClusterRevision.restype = ctypes.c_uint32 - # Cluster TemperatureMeasurement SubscribeAttribute ClusterRevision - self._chipLib.chip_ime_SubscribeAttribute_TemperatureMeasurement_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_TemperatureMeasurement_ClusterRevision.restype = ctypes.c_uint32 - # Cluster TestCluster - # Cluster TestCluster ReadAttribute Boolean - self._chipLib.chip_ime_ReadAttribute_TestCluster_Boolean.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_TestCluster_Boolean.restype = ctypes.c_uint32 - # Cluster TestCluster SubscribeAttribute Boolean - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_Boolean.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_Boolean.restype = ctypes.c_uint32 - # Cluster TestCluster ReadAttribute Bitmap8 - self._chipLib.chip_ime_ReadAttribute_TestCluster_Bitmap8.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_TestCluster_Bitmap8.restype = ctypes.c_uint32 - # Cluster TestCluster SubscribeAttribute Bitmap8 - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_Bitmap8.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_Bitmap8.restype = ctypes.c_uint32 - # Cluster TestCluster ReadAttribute Bitmap16 - self._chipLib.chip_ime_ReadAttribute_TestCluster_Bitmap16.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_TestCluster_Bitmap16.restype = ctypes.c_uint32 - # Cluster TestCluster SubscribeAttribute Bitmap16 - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_Bitmap16.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_Bitmap16.restype = ctypes.c_uint32 - # Cluster TestCluster ReadAttribute Bitmap32 - self._chipLib.chip_ime_ReadAttribute_TestCluster_Bitmap32.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_TestCluster_Bitmap32.restype = ctypes.c_uint32 - # Cluster TestCluster SubscribeAttribute Bitmap32 - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_Bitmap32.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_Bitmap32.restype = ctypes.c_uint32 - # Cluster TestCluster ReadAttribute Bitmap64 - self._chipLib.chip_ime_ReadAttribute_TestCluster_Bitmap64.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_TestCluster_Bitmap64.restype = ctypes.c_uint32 - # Cluster TestCluster SubscribeAttribute Bitmap64 - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_Bitmap64.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_Bitmap64.restype = ctypes.c_uint32 - # Cluster TestCluster ReadAttribute Int8u - self._chipLib.chip_ime_ReadAttribute_TestCluster_Int8u.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_TestCluster_Int8u.restype = ctypes.c_uint32 - # Cluster TestCluster SubscribeAttribute Int8u - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_Int8u.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_Int8u.restype = ctypes.c_uint32 - # Cluster TestCluster ReadAttribute Int16u - self._chipLib.chip_ime_ReadAttribute_TestCluster_Int16u.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_TestCluster_Int16u.restype = ctypes.c_uint32 - # Cluster TestCluster SubscribeAttribute Int16u - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_Int16u.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_Int16u.restype = ctypes.c_uint32 - # Cluster TestCluster ReadAttribute Int32u - self._chipLib.chip_ime_ReadAttribute_TestCluster_Int32u.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_TestCluster_Int32u.restype = ctypes.c_uint32 - # Cluster TestCluster SubscribeAttribute Int32u - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_Int32u.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_Int32u.restype = ctypes.c_uint32 - # Cluster TestCluster ReadAttribute Int64u - self._chipLib.chip_ime_ReadAttribute_TestCluster_Int64u.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_TestCluster_Int64u.restype = ctypes.c_uint32 - # Cluster TestCluster SubscribeAttribute Int64u - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_Int64u.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_Int64u.restype = ctypes.c_uint32 - # Cluster TestCluster ReadAttribute Int8s - self._chipLib.chip_ime_ReadAttribute_TestCluster_Int8s.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_TestCluster_Int8s.restype = ctypes.c_uint32 - # Cluster TestCluster SubscribeAttribute Int8s - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_Int8s.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_Int8s.restype = ctypes.c_uint32 - # Cluster TestCluster ReadAttribute Int16s - self._chipLib.chip_ime_ReadAttribute_TestCluster_Int16s.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_TestCluster_Int16s.restype = ctypes.c_uint32 - # Cluster TestCluster SubscribeAttribute Int16s - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_Int16s.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_Int16s.restype = ctypes.c_uint32 - # Cluster TestCluster ReadAttribute Int32s - self._chipLib.chip_ime_ReadAttribute_TestCluster_Int32s.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_TestCluster_Int32s.restype = ctypes.c_uint32 - # Cluster TestCluster SubscribeAttribute Int32s - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_Int32s.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_Int32s.restype = ctypes.c_uint32 - # Cluster TestCluster ReadAttribute Int64s - self._chipLib.chip_ime_ReadAttribute_TestCluster_Int64s.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_TestCluster_Int64s.restype = ctypes.c_uint32 - # Cluster TestCluster SubscribeAttribute Int64s - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_Int64s.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_Int64s.restype = ctypes.c_uint32 - # Cluster TestCluster ReadAttribute Enum8 - self._chipLib.chip_ime_ReadAttribute_TestCluster_Enum8.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_TestCluster_Enum8.restype = ctypes.c_uint32 - # Cluster TestCluster SubscribeAttribute Enum8 - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_Enum8.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_Enum8.restype = ctypes.c_uint32 - # Cluster TestCluster ReadAttribute Enum16 - self._chipLib.chip_ime_ReadAttribute_TestCluster_Enum16.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_TestCluster_Enum16.restype = ctypes.c_uint32 - # Cluster TestCluster SubscribeAttribute Enum16 - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_Enum16.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_Enum16.restype = ctypes.c_uint32 - # Cluster TestCluster ReadAttribute OctetString - self._chipLib.chip_ime_ReadAttribute_TestCluster_OctetString.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_TestCluster_OctetString.restype = ctypes.c_uint32 - # Cluster TestCluster SubscribeAttribute OctetString - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_OctetString.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_OctetString.restype = ctypes.c_uint32 - # Cluster TestCluster ReadAttribute ListInt8u - self._chipLib.chip_ime_ReadAttribute_TestCluster_ListInt8u.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_TestCluster_ListInt8u.restype = ctypes.c_uint32 - # Cluster TestCluster ReadAttribute ListOctetString - self._chipLib.chip_ime_ReadAttribute_TestCluster_ListOctetString.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_TestCluster_ListOctetString.restype = ctypes.c_uint32 - # Cluster TestCluster ReadAttribute ListStructOctetString - self._chipLib.chip_ime_ReadAttribute_TestCluster_ListStructOctetString.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_TestCluster_ListStructOctetString.restype = ctypes.c_uint32 - # Cluster TestCluster ReadAttribute LongOctetString - self._chipLib.chip_ime_ReadAttribute_TestCluster_LongOctetString.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_TestCluster_LongOctetString.restype = ctypes.c_uint32 - # Cluster TestCluster SubscribeAttribute LongOctetString - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_LongOctetString.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_LongOctetString.restype = ctypes.c_uint32 - # Cluster TestCluster ReadAttribute CharString - self._chipLib.chip_ime_ReadAttribute_TestCluster_CharString.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_TestCluster_CharString.restype = ctypes.c_uint32 - # Cluster TestCluster SubscribeAttribute CharString - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_CharString.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_CharString.restype = ctypes.c_uint32 - # Cluster TestCluster ReadAttribute LongCharString - self._chipLib.chip_ime_ReadAttribute_TestCluster_LongCharString.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_TestCluster_LongCharString.restype = ctypes.c_uint32 - # Cluster TestCluster SubscribeAttribute LongCharString - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_LongCharString.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_LongCharString.restype = ctypes.c_uint32 - # Cluster TestCluster ReadAttribute EpochUs - self._chipLib.chip_ime_ReadAttribute_TestCluster_EpochUs.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_TestCluster_EpochUs.restype = ctypes.c_uint32 - # Cluster TestCluster SubscribeAttribute EpochUs - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_EpochUs.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_EpochUs.restype = ctypes.c_uint32 - # Cluster TestCluster ReadAttribute EpochS - self._chipLib.chip_ime_ReadAttribute_TestCluster_EpochS.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_TestCluster_EpochS.restype = ctypes.c_uint32 - # Cluster TestCluster SubscribeAttribute EpochS - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_EpochS.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_EpochS.restype = ctypes.c_uint32 - # Cluster TestCluster ReadAttribute VendorId - self._chipLib.chip_ime_ReadAttribute_TestCluster_VendorId.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_TestCluster_VendorId.restype = ctypes.c_uint32 - # Cluster TestCluster SubscribeAttribute VendorId - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_VendorId.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_VendorId.restype = ctypes.c_uint32 - # Cluster TestCluster ReadAttribute ListNullablesAndOptionalsStruct - self._chipLib.chip_ime_ReadAttribute_TestCluster_ListNullablesAndOptionalsStruct.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_TestCluster_ListNullablesAndOptionalsStruct.restype = ctypes.c_uint32 - # Cluster TestCluster ReadAttribute Unsupported - self._chipLib.chip_ime_ReadAttribute_TestCluster_Unsupported.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_TestCluster_Unsupported.restype = ctypes.c_uint32 - # Cluster TestCluster SubscribeAttribute Unsupported - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_Unsupported.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_Unsupported.restype = ctypes.c_uint32 - # Cluster TestCluster ReadAttribute NullableBoolean - self._chipLib.chip_ime_ReadAttribute_TestCluster_NullableBoolean.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_TestCluster_NullableBoolean.restype = ctypes.c_uint32 - # Cluster TestCluster SubscribeAttribute NullableBoolean - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_NullableBoolean.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_NullableBoolean.restype = ctypes.c_uint32 - # Cluster TestCluster ReadAttribute NullableBitmap8 - self._chipLib.chip_ime_ReadAttribute_TestCluster_NullableBitmap8.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_TestCluster_NullableBitmap8.restype = ctypes.c_uint32 - # Cluster TestCluster SubscribeAttribute NullableBitmap8 - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_NullableBitmap8.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_NullableBitmap8.restype = ctypes.c_uint32 - # Cluster TestCluster ReadAttribute NullableBitmap16 - self._chipLib.chip_ime_ReadAttribute_TestCluster_NullableBitmap16.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_TestCluster_NullableBitmap16.restype = ctypes.c_uint32 - # Cluster TestCluster SubscribeAttribute NullableBitmap16 - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_NullableBitmap16.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_NullableBitmap16.restype = ctypes.c_uint32 - # Cluster TestCluster ReadAttribute NullableBitmap32 - self._chipLib.chip_ime_ReadAttribute_TestCluster_NullableBitmap32.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_TestCluster_NullableBitmap32.restype = ctypes.c_uint32 - # Cluster TestCluster SubscribeAttribute NullableBitmap32 - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_NullableBitmap32.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_NullableBitmap32.restype = ctypes.c_uint32 - # Cluster TestCluster ReadAttribute NullableBitmap64 - self._chipLib.chip_ime_ReadAttribute_TestCluster_NullableBitmap64.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_TestCluster_NullableBitmap64.restype = ctypes.c_uint32 - # Cluster TestCluster SubscribeAttribute NullableBitmap64 - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_NullableBitmap64.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_NullableBitmap64.restype = ctypes.c_uint32 - # Cluster TestCluster ReadAttribute NullableInt8u - self._chipLib.chip_ime_ReadAttribute_TestCluster_NullableInt8u.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_TestCluster_NullableInt8u.restype = ctypes.c_uint32 - # Cluster TestCluster SubscribeAttribute NullableInt8u - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_NullableInt8u.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_NullableInt8u.restype = ctypes.c_uint32 - # Cluster TestCluster ReadAttribute NullableInt16u - self._chipLib.chip_ime_ReadAttribute_TestCluster_NullableInt16u.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_TestCluster_NullableInt16u.restype = ctypes.c_uint32 - # Cluster TestCluster SubscribeAttribute NullableInt16u - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_NullableInt16u.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_NullableInt16u.restype = ctypes.c_uint32 - # Cluster TestCluster ReadAttribute NullableInt32u - self._chipLib.chip_ime_ReadAttribute_TestCluster_NullableInt32u.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_TestCluster_NullableInt32u.restype = ctypes.c_uint32 - # Cluster TestCluster SubscribeAttribute NullableInt32u - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_NullableInt32u.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_NullableInt32u.restype = ctypes.c_uint32 - # Cluster TestCluster ReadAttribute NullableInt64u - self._chipLib.chip_ime_ReadAttribute_TestCluster_NullableInt64u.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_TestCluster_NullableInt64u.restype = ctypes.c_uint32 - # Cluster TestCluster SubscribeAttribute NullableInt64u - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_NullableInt64u.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_NullableInt64u.restype = ctypes.c_uint32 - # Cluster TestCluster ReadAttribute NullableInt8s - self._chipLib.chip_ime_ReadAttribute_TestCluster_NullableInt8s.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_TestCluster_NullableInt8s.restype = ctypes.c_uint32 - # Cluster TestCluster SubscribeAttribute NullableInt8s - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_NullableInt8s.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_NullableInt8s.restype = ctypes.c_uint32 - # Cluster TestCluster ReadAttribute NullableInt16s - self._chipLib.chip_ime_ReadAttribute_TestCluster_NullableInt16s.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_TestCluster_NullableInt16s.restype = ctypes.c_uint32 - # Cluster TestCluster SubscribeAttribute NullableInt16s - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_NullableInt16s.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_NullableInt16s.restype = ctypes.c_uint32 - # Cluster TestCluster ReadAttribute NullableInt32s - self._chipLib.chip_ime_ReadAttribute_TestCluster_NullableInt32s.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_TestCluster_NullableInt32s.restype = ctypes.c_uint32 - # Cluster TestCluster SubscribeAttribute NullableInt32s - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_NullableInt32s.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_NullableInt32s.restype = ctypes.c_uint32 - # Cluster TestCluster ReadAttribute NullableInt64s - self._chipLib.chip_ime_ReadAttribute_TestCluster_NullableInt64s.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_TestCluster_NullableInt64s.restype = ctypes.c_uint32 - # Cluster TestCluster SubscribeAttribute NullableInt64s - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_NullableInt64s.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_NullableInt64s.restype = ctypes.c_uint32 - # Cluster TestCluster ReadAttribute NullableEnum8 - self._chipLib.chip_ime_ReadAttribute_TestCluster_NullableEnum8.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_TestCluster_NullableEnum8.restype = ctypes.c_uint32 - # Cluster TestCluster SubscribeAttribute NullableEnum8 - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_NullableEnum8.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_NullableEnum8.restype = ctypes.c_uint32 - # Cluster TestCluster ReadAttribute NullableEnum16 - self._chipLib.chip_ime_ReadAttribute_TestCluster_NullableEnum16.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_TestCluster_NullableEnum16.restype = ctypes.c_uint32 - # Cluster TestCluster SubscribeAttribute NullableEnum16 - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_NullableEnum16.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_NullableEnum16.restype = ctypes.c_uint32 - # Cluster TestCluster ReadAttribute NullableOctetString - self._chipLib.chip_ime_ReadAttribute_TestCluster_NullableOctetString.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_TestCluster_NullableOctetString.restype = ctypes.c_uint32 - # Cluster TestCluster SubscribeAttribute NullableOctetString - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_NullableOctetString.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_NullableOctetString.restype = ctypes.c_uint32 - # Cluster TestCluster ReadAttribute NullableCharString - self._chipLib.chip_ime_ReadAttribute_TestCluster_NullableCharString.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_TestCluster_NullableCharString.restype = ctypes.c_uint32 - # Cluster TestCluster SubscribeAttribute NullableCharString - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_NullableCharString.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_NullableCharString.restype = ctypes.c_uint32 - # Cluster TestCluster ReadAttribute ClusterRevision - self._chipLib.chip_ime_ReadAttribute_TestCluster_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_TestCluster_ClusterRevision.restype = ctypes.c_uint32 - # Cluster TestCluster SubscribeAttribute ClusterRevision - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_TestCluster_ClusterRevision.restype = ctypes.c_uint32 - # Cluster Thermostat - # Cluster Thermostat ReadAttribute LocalTemperature - self._chipLib.chip_ime_ReadAttribute_Thermostat_LocalTemperature.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_Thermostat_LocalTemperature.restype = ctypes.c_uint32 - # Cluster Thermostat SubscribeAttribute LocalTemperature - self._chipLib.chip_ime_SubscribeAttribute_Thermostat_LocalTemperature.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_Thermostat_LocalTemperature.restype = ctypes.c_uint32 - # Cluster Thermostat ReadAttribute AbsMinHeatSetpointLimit - self._chipLib.chip_ime_ReadAttribute_Thermostat_AbsMinHeatSetpointLimit.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_Thermostat_AbsMinHeatSetpointLimit.restype = ctypes.c_uint32 - # Cluster Thermostat SubscribeAttribute AbsMinHeatSetpointLimit - self._chipLib.chip_ime_SubscribeAttribute_Thermostat_AbsMinHeatSetpointLimit.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_Thermostat_AbsMinHeatSetpointLimit.restype = ctypes.c_uint32 - # Cluster Thermostat ReadAttribute AbsMaxHeatSetpointLimit - self._chipLib.chip_ime_ReadAttribute_Thermostat_AbsMaxHeatSetpointLimit.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_Thermostat_AbsMaxHeatSetpointLimit.restype = ctypes.c_uint32 - # Cluster Thermostat SubscribeAttribute AbsMaxHeatSetpointLimit - self._chipLib.chip_ime_SubscribeAttribute_Thermostat_AbsMaxHeatSetpointLimit.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_Thermostat_AbsMaxHeatSetpointLimit.restype = ctypes.c_uint32 - # Cluster Thermostat ReadAttribute AbsMinCoolSetpointLimit - self._chipLib.chip_ime_ReadAttribute_Thermostat_AbsMinCoolSetpointLimit.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_Thermostat_AbsMinCoolSetpointLimit.restype = ctypes.c_uint32 - # Cluster Thermostat SubscribeAttribute AbsMinCoolSetpointLimit - self._chipLib.chip_ime_SubscribeAttribute_Thermostat_AbsMinCoolSetpointLimit.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_Thermostat_AbsMinCoolSetpointLimit.restype = ctypes.c_uint32 - # Cluster Thermostat ReadAttribute AbsMaxCoolSetpointLimit - self._chipLib.chip_ime_ReadAttribute_Thermostat_AbsMaxCoolSetpointLimit.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_Thermostat_AbsMaxCoolSetpointLimit.restype = ctypes.c_uint32 - # Cluster Thermostat SubscribeAttribute AbsMaxCoolSetpointLimit - self._chipLib.chip_ime_SubscribeAttribute_Thermostat_AbsMaxCoolSetpointLimit.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_Thermostat_AbsMaxCoolSetpointLimit.restype = ctypes.c_uint32 - # Cluster Thermostat ReadAttribute OccupiedCoolingSetpoint - self._chipLib.chip_ime_ReadAttribute_Thermostat_OccupiedCoolingSetpoint.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_Thermostat_OccupiedCoolingSetpoint.restype = ctypes.c_uint32 - # Cluster Thermostat SubscribeAttribute OccupiedCoolingSetpoint - self._chipLib.chip_ime_SubscribeAttribute_Thermostat_OccupiedCoolingSetpoint.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_Thermostat_OccupiedCoolingSetpoint.restype = ctypes.c_uint32 - # Cluster Thermostat ReadAttribute OccupiedHeatingSetpoint - self._chipLib.chip_ime_ReadAttribute_Thermostat_OccupiedHeatingSetpoint.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_Thermostat_OccupiedHeatingSetpoint.restype = ctypes.c_uint32 - # Cluster Thermostat SubscribeAttribute OccupiedHeatingSetpoint - self._chipLib.chip_ime_SubscribeAttribute_Thermostat_OccupiedHeatingSetpoint.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_Thermostat_OccupiedHeatingSetpoint.restype = ctypes.c_uint32 - # Cluster Thermostat ReadAttribute MinHeatSetpointLimit - self._chipLib.chip_ime_ReadAttribute_Thermostat_MinHeatSetpointLimit.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_Thermostat_MinHeatSetpointLimit.restype = ctypes.c_uint32 - # Cluster Thermostat SubscribeAttribute MinHeatSetpointLimit - self._chipLib.chip_ime_SubscribeAttribute_Thermostat_MinHeatSetpointLimit.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_Thermostat_MinHeatSetpointLimit.restype = ctypes.c_uint32 - # Cluster Thermostat ReadAttribute MaxHeatSetpointLimit - self._chipLib.chip_ime_ReadAttribute_Thermostat_MaxHeatSetpointLimit.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_Thermostat_MaxHeatSetpointLimit.restype = ctypes.c_uint32 - # Cluster Thermostat SubscribeAttribute MaxHeatSetpointLimit - self._chipLib.chip_ime_SubscribeAttribute_Thermostat_MaxHeatSetpointLimit.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_Thermostat_MaxHeatSetpointLimit.restype = ctypes.c_uint32 - # Cluster Thermostat ReadAttribute MinCoolSetpointLimit - self._chipLib.chip_ime_ReadAttribute_Thermostat_MinCoolSetpointLimit.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_Thermostat_MinCoolSetpointLimit.restype = ctypes.c_uint32 - # Cluster Thermostat SubscribeAttribute MinCoolSetpointLimit - self._chipLib.chip_ime_SubscribeAttribute_Thermostat_MinCoolSetpointLimit.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_Thermostat_MinCoolSetpointLimit.restype = ctypes.c_uint32 - # Cluster Thermostat ReadAttribute MaxCoolSetpointLimit - self._chipLib.chip_ime_ReadAttribute_Thermostat_MaxCoolSetpointLimit.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_Thermostat_MaxCoolSetpointLimit.restype = ctypes.c_uint32 - # Cluster Thermostat SubscribeAttribute MaxCoolSetpointLimit - self._chipLib.chip_ime_SubscribeAttribute_Thermostat_MaxCoolSetpointLimit.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_Thermostat_MaxCoolSetpointLimit.restype = ctypes.c_uint32 - # Cluster Thermostat ReadAttribute MinSetpointDeadBand - self._chipLib.chip_ime_ReadAttribute_Thermostat_MinSetpointDeadBand.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_Thermostat_MinSetpointDeadBand.restype = ctypes.c_uint32 - # Cluster Thermostat SubscribeAttribute MinSetpointDeadBand - self._chipLib.chip_ime_SubscribeAttribute_Thermostat_MinSetpointDeadBand.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_Thermostat_MinSetpointDeadBand.restype = ctypes.c_uint32 - # Cluster Thermostat ReadAttribute ControlSequenceOfOperation - self._chipLib.chip_ime_ReadAttribute_Thermostat_ControlSequenceOfOperation.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_Thermostat_ControlSequenceOfOperation.restype = ctypes.c_uint32 - # Cluster Thermostat SubscribeAttribute ControlSequenceOfOperation - self._chipLib.chip_ime_SubscribeAttribute_Thermostat_ControlSequenceOfOperation.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_Thermostat_ControlSequenceOfOperation.restype = ctypes.c_uint32 - # Cluster Thermostat ReadAttribute SystemMode - self._chipLib.chip_ime_ReadAttribute_Thermostat_SystemMode.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_Thermostat_SystemMode.restype = ctypes.c_uint32 - # Cluster Thermostat SubscribeAttribute SystemMode - self._chipLib.chip_ime_SubscribeAttribute_Thermostat_SystemMode.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_Thermostat_SystemMode.restype = ctypes.c_uint32 - # Cluster Thermostat ReadAttribute StartOfWeek - self._chipLib.chip_ime_ReadAttribute_Thermostat_StartOfWeek.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_Thermostat_StartOfWeek.restype = ctypes.c_uint32 - # Cluster Thermostat SubscribeAttribute StartOfWeek - self._chipLib.chip_ime_SubscribeAttribute_Thermostat_StartOfWeek.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_Thermostat_StartOfWeek.restype = ctypes.c_uint32 - # Cluster Thermostat ReadAttribute NumberOfWeeklyTransitions - self._chipLib.chip_ime_ReadAttribute_Thermostat_NumberOfWeeklyTransitions.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_Thermostat_NumberOfWeeklyTransitions.restype = ctypes.c_uint32 - # Cluster Thermostat SubscribeAttribute NumberOfWeeklyTransitions - self._chipLib.chip_ime_SubscribeAttribute_Thermostat_NumberOfWeeklyTransitions.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_Thermostat_NumberOfWeeklyTransitions.restype = ctypes.c_uint32 - # Cluster Thermostat ReadAttribute NumberOfDailyTransitions - self._chipLib.chip_ime_ReadAttribute_Thermostat_NumberOfDailyTransitions.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_Thermostat_NumberOfDailyTransitions.restype = ctypes.c_uint32 - # Cluster Thermostat SubscribeAttribute NumberOfDailyTransitions - self._chipLib.chip_ime_SubscribeAttribute_Thermostat_NumberOfDailyTransitions.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_Thermostat_NumberOfDailyTransitions.restype = ctypes.c_uint32 - # Cluster Thermostat ReadAttribute FeatureMap - self._chipLib.chip_ime_ReadAttribute_Thermostat_FeatureMap.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_Thermostat_FeatureMap.restype = ctypes.c_uint32 - # Cluster Thermostat SubscribeAttribute FeatureMap - self._chipLib.chip_ime_SubscribeAttribute_Thermostat_FeatureMap.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_Thermostat_FeatureMap.restype = ctypes.c_uint32 - # Cluster Thermostat ReadAttribute ClusterRevision - self._chipLib.chip_ime_ReadAttribute_Thermostat_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_Thermostat_ClusterRevision.restype = ctypes.c_uint32 - # Cluster Thermostat SubscribeAttribute ClusterRevision - self._chipLib.chip_ime_SubscribeAttribute_Thermostat_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_Thermostat_ClusterRevision.restype = ctypes.c_uint32 - # Cluster ThermostatUserInterfaceConfiguration - # Cluster ThermostatUserInterfaceConfiguration ReadAttribute TemperatureDisplayMode - self._chipLib.chip_ime_ReadAttribute_ThermostatUserInterfaceConfiguration_TemperatureDisplayMode.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ThermostatUserInterfaceConfiguration_TemperatureDisplayMode.restype = ctypes.c_uint32 - # Cluster ThermostatUserInterfaceConfiguration SubscribeAttribute TemperatureDisplayMode - self._chipLib.chip_ime_SubscribeAttribute_ThermostatUserInterfaceConfiguration_TemperatureDisplayMode.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ThermostatUserInterfaceConfiguration_TemperatureDisplayMode.restype = ctypes.c_uint32 - # Cluster ThermostatUserInterfaceConfiguration ReadAttribute KeypadLockout - self._chipLib.chip_ime_ReadAttribute_ThermostatUserInterfaceConfiguration_KeypadLockout.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ThermostatUserInterfaceConfiguration_KeypadLockout.restype = ctypes.c_uint32 - # Cluster ThermostatUserInterfaceConfiguration SubscribeAttribute KeypadLockout - self._chipLib.chip_ime_SubscribeAttribute_ThermostatUserInterfaceConfiguration_KeypadLockout.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ThermostatUserInterfaceConfiguration_KeypadLockout.restype = ctypes.c_uint32 - # Cluster ThermostatUserInterfaceConfiguration ReadAttribute ScheduleProgrammingVisibility - self._chipLib.chip_ime_ReadAttribute_ThermostatUserInterfaceConfiguration_ScheduleProgrammingVisibility.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ThermostatUserInterfaceConfiguration_ScheduleProgrammingVisibility.restype = ctypes.c_uint32 - # Cluster ThermostatUserInterfaceConfiguration SubscribeAttribute ScheduleProgrammingVisibility - self._chipLib.chip_ime_SubscribeAttribute_ThermostatUserInterfaceConfiguration_ScheduleProgrammingVisibility.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ThermostatUserInterfaceConfiguration_ScheduleProgrammingVisibility.restype = ctypes.c_uint32 - # Cluster ThermostatUserInterfaceConfiguration ReadAttribute ClusterRevision - self._chipLib.chip_ime_ReadAttribute_ThermostatUserInterfaceConfiguration_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ThermostatUserInterfaceConfiguration_ClusterRevision.restype = ctypes.c_uint32 - # Cluster ThermostatUserInterfaceConfiguration SubscribeAttribute ClusterRevision - self._chipLib.chip_ime_SubscribeAttribute_ThermostatUserInterfaceConfiguration_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ThermostatUserInterfaceConfiguration_ClusterRevision.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics - # Cluster ThreadNetworkDiagnostics ReadAttribute Channel - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_Channel.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_Channel.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics SubscribeAttribute Channel - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_Channel.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_Channel.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics ReadAttribute RoutingRole - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RoutingRole.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RoutingRole.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics SubscribeAttribute RoutingRole - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RoutingRole.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RoutingRole.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics ReadAttribute NetworkName - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_NetworkName.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_NetworkName.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics SubscribeAttribute NetworkName - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_NetworkName.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_NetworkName.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics ReadAttribute PanId - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_PanId.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_PanId.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics SubscribeAttribute PanId - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_PanId.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_PanId.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics ReadAttribute ExtendedPanId - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_ExtendedPanId.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_ExtendedPanId.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics SubscribeAttribute ExtendedPanId - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_ExtendedPanId.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_ExtendedPanId.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics ReadAttribute MeshLocalPrefix - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_MeshLocalPrefix.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_MeshLocalPrefix.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics SubscribeAttribute MeshLocalPrefix - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_MeshLocalPrefix.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_MeshLocalPrefix.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics ReadAttribute OverrunCount - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_OverrunCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_OverrunCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics SubscribeAttribute OverrunCount - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_OverrunCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_OverrunCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics ReadAttribute NeighborTableList - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_NeighborTableList.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_NeighborTableList.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics ReadAttribute RouteTableList - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RouteTableList.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RouteTableList.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics ReadAttribute PartitionId - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_PartitionId.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_PartitionId.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics SubscribeAttribute PartitionId - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_PartitionId.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_PartitionId.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics ReadAttribute Weighting - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_Weighting.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_Weighting.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics SubscribeAttribute Weighting - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_Weighting.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_Weighting.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics ReadAttribute DataVersion - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_DataVersion.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_DataVersion.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics SubscribeAttribute DataVersion - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_DataVersion.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_DataVersion.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics ReadAttribute StableDataVersion - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_StableDataVersion.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_StableDataVersion.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics SubscribeAttribute StableDataVersion - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_StableDataVersion.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_StableDataVersion.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics ReadAttribute LeaderRouterId - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_LeaderRouterId.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_LeaderRouterId.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics SubscribeAttribute LeaderRouterId - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_LeaderRouterId.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_LeaderRouterId.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics ReadAttribute DetachedRoleCount - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_DetachedRoleCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_DetachedRoleCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics SubscribeAttribute DetachedRoleCount - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_DetachedRoleCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_DetachedRoleCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics ReadAttribute ChildRoleCount - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_ChildRoleCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_ChildRoleCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics SubscribeAttribute ChildRoleCount - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_ChildRoleCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_ChildRoleCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics ReadAttribute RouterRoleCount - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RouterRoleCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RouterRoleCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics SubscribeAttribute RouterRoleCount - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RouterRoleCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RouterRoleCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics ReadAttribute LeaderRoleCount - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_LeaderRoleCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_LeaderRoleCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics SubscribeAttribute LeaderRoleCount - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_LeaderRoleCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_LeaderRoleCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics ReadAttribute AttachAttemptCount - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_AttachAttemptCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_AttachAttemptCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics SubscribeAttribute AttachAttemptCount - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_AttachAttemptCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_AttachAttemptCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics ReadAttribute PartitionIdChangeCount - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_PartitionIdChangeCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_PartitionIdChangeCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics SubscribeAttribute PartitionIdChangeCount - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_PartitionIdChangeCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_PartitionIdChangeCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics ReadAttribute BetterPartitionAttachAttemptCount - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_BetterPartitionAttachAttemptCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_BetterPartitionAttachAttemptCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics SubscribeAttribute BetterPartitionAttachAttemptCount - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_BetterPartitionAttachAttemptCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_BetterPartitionAttachAttemptCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics ReadAttribute ParentChangeCount - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_ParentChangeCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_ParentChangeCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics SubscribeAttribute ParentChangeCount - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_ParentChangeCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_ParentChangeCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics ReadAttribute TxTotalCount - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_TxTotalCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_TxTotalCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics SubscribeAttribute TxTotalCount - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_TxTotalCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_TxTotalCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics ReadAttribute TxUnicastCount - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_TxUnicastCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_TxUnicastCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics SubscribeAttribute TxUnicastCount - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_TxUnicastCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_TxUnicastCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics ReadAttribute TxBroadcastCount - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_TxBroadcastCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_TxBroadcastCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics SubscribeAttribute TxBroadcastCount - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_TxBroadcastCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_TxBroadcastCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics ReadAttribute TxAckRequestedCount - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_TxAckRequestedCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_TxAckRequestedCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics SubscribeAttribute TxAckRequestedCount - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_TxAckRequestedCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_TxAckRequestedCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics ReadAttribute TxAckedCount - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_TxAckedCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_TxAckedCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics SubscribeAttribute TxAckedCount - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_TxAckedCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_TxAckedCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics ReadAttribute TxNoAckRequestedCount - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_TxNoAckRequestedCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_TxNoAckRequestedCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics SubscribeAttribute TxNoAckRequestedCount - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_TxNoAckRequestedCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_TxNoAckRequestedCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics ReadAttribute TxDataCount - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_TxDataCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_TxDataCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics SubscribeAttribute TxDataCount - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_TxDataCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_TxDataCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics ReadAttribute TxDataPollCount - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_TxDataPollCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_TxDataPollCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics SubscribeAttribute TxDataPollCount - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_TxDataPollCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_TxDataPollCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics ReadAttribute TxBeaconCount - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_TxBeaconCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_TxBeaconCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics SubscribeAttribute TxBeaconCount - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_TxBeaconCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_TxBeaconCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics ReadAttribute TxBeaconRequestCount - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_TxBeaconRequestCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_TxBeaconRequestCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics SubscribeAttribute TxBeaconRequestCount - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_TxBeaconRequestCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_TxBeaconRequestCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics ReadAttribute TxOtherCount - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_TxOtherCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_TxOtherCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics SubscribeAttribute TxOtherCount - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_TxOtherCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_TxOtherCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics ReadAttribute TxRetryCount - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_TxRetryCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_TxRetryCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics SubscribeAttribute TxRetryCount - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_TxRetryCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_TxRetryCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics ReadAttribute TxDirectMaxRetryExpiryCount - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_TxDirectMaxRetryExpiryCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_TxDirectMaxRetryExpiryCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics SubscribeAttribute TxDirectMaxRetryExpiryCount - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_TxDirectMaxRetryExpiryCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_TxDirectMaxRetryExpiryCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics ReadAttribute TxIndirectMaxRetryExpiryCount - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_TxIndirectMaxRetryExpiryCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_TxIndirectMaxRetryExpiryCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics SubscribeAttribute TxIndirectMaxRetryExpiryCount - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_TxIndirectMaxRetryExpiryCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_TxIndirectMaxRetryExpiryCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics ReadAttribute TxErrCcaCount - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_TxErrCcaCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_TxErrCcaCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics SubscribeAttribute TxErrCcaCount - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_TxErrCcaCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_TxErrCcaCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics ReadAttribute TxErrAbortCount - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_TxErrAbortCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_TxErrAbortCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics SubscribeAttribute TxErrAbortCount - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_TxErrAbortCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_TxErrAbortCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics ReadAttribute TxErrBusyChannelCount - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_TxErrBusyChannelCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_TxErrBusyChannelCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics SubscribeAttribute TxErrBusyChannelCount - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_TxErrBusyChannelCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_TxErrBusyChannelCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics ReadAttribute RxTotalCount - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RxTotalCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RxTotalCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics SubscribeAttribute RxTotalCount - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RxTotalCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RxTotalCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics ReadAttribute RxUnicastCount - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RxUnicastCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RxUnicastCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics SubscribeAttribute RxUnicastCount - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RxUnicastCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RxUnicastCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics ReadAttribute RxBroadcastCount - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RxBroadcastCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RxBroadcastCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics SubscribeAttribute RxBroadcastCount - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RxBroadcastCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RxBroadcastCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics ReadAttribute RxDataCount - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RxDataCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RxDataCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics SubscribeAttribute RxDataCount - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RxDataCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RxDataCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics ReadAttribute RxDataPollCount - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RxDataPollCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RxDataPollCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics SubscribeAttribute RxDataPollCount - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RxDataPollCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RxDataPollCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics ReadAttribute RxBeaconCount - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RxBeaconCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RxBeaconCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics SubscribeAttribute RxBeaconCount - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RxBeaconCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RxBeaconCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics ReadAttribute RxBeaconRequestCount - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RxBeaconRequestCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RxBeaconRequestCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics SubscribeAttribute RxBeaconRequestCount - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RxBeaconRequestCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RxBeaconRequestCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics ReadAttribute RxOtherCount - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RxOtherCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RxOtherCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics SubscribeAttribute RxOtherCount - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RxOtherCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RxOtherCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics ReadAttribute RxAddressFilteredCount - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RxAddressFilteredCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RxAddressFilteredCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics SubscribeAttribute RxAddressFilteredCount - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RxAddressFilteredCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RxAddressFilteredCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics ReadAttribute RxDestAddrFilteredCount - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RxDestAddrFilteredCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RxDestAddrFilteredCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics SubscribeAttribute RxDestAddrFilteredCount - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RxDestAddrFilteredCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RxDestAddrFilteredCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics ReadAttribute RxDuplicatedCount - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RxDuplicatedCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RxDuplicatedCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics SubscribeAttribute RxDuplicatedCount - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RxDuplicatedCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RxDuplicatedCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics ReadAttribute RxErrNoFrameCount - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RxErrNoFrameCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RxErrNoFrameCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics SubscribeAttribute RxErrNoFrameCount - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RxErrNoFrameCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RxErrNoFrameCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics ReadAttribute RxErrUnknownNeighborCount - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RxErrUnknownNeighborCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RxErrUnknownNeighborCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics SubscribeAttribute RxErrUnknownNeighborCount - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RxErrUnknownNeighborCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RxErrUnknownNeighborCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics ReadAttribute RxErrInvalidSrcAddrCount - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RxErrInvalidSrcAddrCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RxErrInvalidSrcAddrCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics SubscribeAttribute RxErrInvalidSrcAddrCount - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RxErrInvalidSrcAddrCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RxErrInvalidSrcAddrCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics ReadAttribute RxErrSecCount - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RxErrSecCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RxErrSecCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics SubscribeAttribute RxErrSecCount - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RxErrSecCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RxErrSecCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics ReadAttribute RxErrFcsCount - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RxErrFcsCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RxErrFcsCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics SubscribeAttribute RxErrFcsCount - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RxErrFcsCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RxErrFcsCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics ReadAttribute RxErrOtherCount - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RxErrOtherCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_RxErrOtherCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics SubscribeAttribute RxErrOtherCount - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RxErrOtherCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_RxErrOtherCount.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics ReadAttribute ActiveTimestamp - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_ActiveTimestamp.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_ActiveTimestamp.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics SubscribeAttribute ActiveTimestamp - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_ActiveTimestamp.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_ActiveTimestamp.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics ReadAttribute PendingTimestamp - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_PendingTimestamp.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_PendingTimestamp.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics SubscribeAttribute PendingTimestamp - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_PendingTimestamp.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_PendingTimestamp.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics ReadAttribute Delay - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_Delay.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_Delay.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics SubscribeAttribute Delay - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_Delay.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_Delay.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics ReadAttribute SecurityPolicy - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_SecurityPolicy.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_SecurityPolicy.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics ReadAttribute ChannelMask - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_ChannelMask.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_ChannelMask.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics SubscribeAttribute ChannelMask - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_ChannelMask.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_ChannelMask.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics ReadAttribute OperationalDatasetComponents - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_OperationalDatasetComponents.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_OperationalDatasetComponents.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics ReadAttribute ActiveNetworkFaultsList - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_ActiveNetworkFaultsList.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_ActiveNetworkFaultsList.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics ReadAttribute ClusterRevision - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_ThreadNetworkDiagnostics_ClusterRevision.restype = ctypes.c_uint32 - # Cluster ThreadNetworkDiagnostics SubscribeAttribute ClusterRevision - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_ThreadNetworkDiagnostics_ClusterRevision.restype = ctypes.c_uint32 - # Cluster WakeOnLan - # Cluster WakeOnLan ReadAttribute WakeOnLanMacAddress - self._chipLib.chip_ime_ReadAttribute_WakeOnLan_WakeOnLanMacAddress.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_WakeOnLan_WakeOnLanMacAddress.restype = ctypes.c_uint32 - # Cluster WakeOnLan SubscribeAttribute WakeOnLanMacAddress - self._chipLib.chip_ime_SubscribeAttribute_WakeOnLan_WakeOnLanMacAddress.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_WakeOnLan_WakeOnLanMacAddress.restype = ctypes.c_uint32 - # Cluster WakeOnLan ReadAttribute ClusterRevision - self._chipLib.chip_ime_ReadAttribute_WakeOnLan_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_WakeOnLan_ClusterRevision.restype = ctypes.c_uint32 - # Cluster WakeOnLan SubscribeAttribute ClusterRevision - self._chipLib.chip_ime_SubscribeAttribute_WakeOnLan_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_WakeOnLan_ClusterRevision.restype = ctypes.c_uint32 - # Cluster WiFiNetworkDiagnostics - # Cluster WiFiNetworkDiagnostics ReadAttribute Bssid - self._chipLib.chip_ime_ReadAttribute_WiFiNetworkDiagnostics_Bssid.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_WiFiNetworkDiagnostics_Bssid.restype = ctypes.c_uint32 - # Cluster WiFiNetworkDiagnostics SubscribeAttribute Bssid - self._chipLib.chip_ime_SubscribeAttribute_WiFiNetworkDiagnostics_Bssid.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_WiFiNetworkDiagnostics_Bssid.restype = ctypes.c_uint32 - # Cluster WiFiNetworkDiagnostics ReadAttribute SecurityType - self._chipLib.chip_ime_ReadAttribute_WiFiNetworkDiagnostics_SecurityType.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_WiFiNetworkDiagnostics_SecurityType.restype = ctypes.c_uint32 - # Cluster WiFiNetworkDiagnostics SubscribeAttribute SecurityType - self._chipLib.chip_ime_SubscribeAttribute_WiFiNetworkDiagnostics_SecurityType.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_WiFiNetworkDiagnostics_SecurityType.restype = ctypes.c_uint32 - # Cluster WiFiNetworkDiagnostics ReadAttribute WiFiVersion - self._chipLib.chip_ime_ReadAttribute_WiFiNetworkDiagnostics_WiFiVersion.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_WiFiNetworkDiagnostics_WiFiVersion.restype = ctypes.c_uint32 - # Cluster WiFiNetworkDiagnostics SubscribeAttribute WiFiVersion - self._chipLib.chip_ime_SubscribeAttribute_WiFiNetworkDiagnostics_WiFiVersion.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_WiFiNetworkDiagnostics_WiFiVersion.restype = ctypes.c_uint32 - # Cluster WiFiNetworkDiagnostics ReadAttribute ChannelNumber - self._chipLib.chip_ime_ReadAttribute_WiFiNetworkDiagnostics_ChannelNumber.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_WiFiNetworkDiagnostics_ChannelNumber.restype = ctypes.c_uint32 - # Cluster WiFiNetworkDiagnostics SubscribeAttribute ChannelNumber - self._chipLib.chip_ime_SubscribeAttribute_WiFiNetworkDiagnostics_ChannelNumber.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_WiFiNetworkDiagnostics_ChannelNumber.restype = ctypes.c_uint32 - # Cluster WiFiNetworkDiagnostics ReadAttribute Rssi - self._chipLib.chip_ime_ReadAttribute_WiFiNetworkDiagnostics_Rssi.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_WiFiNetworkDiagnostics_Rssi.restype = ctypes.c_uint32 - # Cluster WiFiNetworkDiagnostics SubscribeAttribute Rssi - self._chipLib.chip_ime_SubscribeAttribute_WiFiNetworkDiagnostics_Rssi.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_WiFiNetworkDiagnostics_Rssi.restype = ctypes.c_uint32 - # Cluster WiFiNetworkDiagnostics ReadAttribute BeaconLostCount - self._chipLib.chip_ime_ReadAttribute_WiFiNetworkDiagnostics_BeaconLostCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_WiFiNetworkDiagnostics_BeaconLostCount.restype = ctypes.c_uint32 - # Cluster WiFiNetworkDiagnostics SubscribeAttribute BeaconLostCount - self._chipLib.chip_ime_SubscribeAttribute_WiFiNetworkDiagnostics_BeaconLostCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_WiFiNetworkDiagnostics_BeaconLostCount.restype = ctypes.c_uint32 - # Cluster WiFiNetworkDiagnostics ReadAttribute BeaconRxCount - self._chipLib.chip_ime_ReadAttribute_WiFiNetworkDiagnostics_BeaconRxCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_WiFiNetworkDiagnostics_BeaconRxCount.restype = ctypes.c_uint32 - # Cluster WiFiNetworkDiagnostics SubscribeAttribute BeaconRxCount - self._chipLib.chip_ime_SubscribeAttribute_WiFiNetworkDiagnostics_BeaconRxCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_WiFiNetworkDiagnostics_BeaconRxCount.restype = ctypes.c_uint32 - # Cluster WiFiNetworkDiagnostics ReadAttribute PacketMulticastRxCount - self._chipLib.chip_ime_ReadAttribute_WiFiNetworkDiagnostics_PacketMulticastRxCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_WiFiNetworkDiagnostics_PacketMulticastRxCount.restype = ctypes.c_uint32 - # Cluster WiFiNetworkDiagnostics SubscribeAttribute PacketMulticastRxCount - self._chipLib.chip_ime_SubscribeAttribute_WiFiNetworkDiagnostics_PacketMulticastRxCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_WiFiNetworkDiagnostics_PacketMulticastRxCount.restype = ctypes.c_uint32 - # Cluster WiFiNetworkDiagnostics ReadAttribute PacketMulticastTxCount - self._chipLib.chip_ime_ReadAttribute_WiFiNetworkDiagnostics_PacketMulticastTxCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_WiFiNetworkDiagnostics_PacketMulticastTxCount.restype = ctypes.c_uint32 - # Cluster WiFiNetworkDiagnostics SubscribeAttribute PacketMulticastTxCount - self._chipLib.chip_ime_SubscribeAttribute_WiFiNetworkDiagnostics_PacketMulticastTxCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_WiFiNetworkDiagnostics_PacketMulticastTxCount.restype = ctypes.c_uint32 - # Cluster WiFiNetworkDiagnostics ReadAttribute PacketUnicastRxCount - self._chipLib.chip_ime_ReadAttribute_WiFiNetworkDiagnostics_PacketUnicastRxCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_WiFiNetworkDiagnostics_PacketUnicastRxCount.restype = ctypes.c_uint32 - # Cluster WiFiNetworkDiagnostics SubscribeAttribute PacketUnicastRxCount - self._chipLib.chip_ime_SubscribeAttribute_WiFiNetworkDiagnostics_PacketUnicastRxCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_WiFiNetworkDiagnostics_PacketUnicastRxCount.restype = ctypes.c_uint32 - # Cluster WiFiNetworkDiagnostics ReadAttribute PacketUnicastTxCount - self._chipLib.chip_ime_ReadAttribute_WiFiNetworkDiagnostics_PacketUnicastTxCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_WiFiNetworkDiagnostics_PacketUnicastTxCount.restype = ctypes.c_uint32 - # Cluster WiFiNetworkDiagnostics SubscribeAttribute PacketUnicastTxCount - self._chipLib.chip_ime_SubscribeAttribute_WiFiNetworkDiagnostics_PacketUnicastTxCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_WiFiNetworkDiagnostics_PacketUnicastTxCount.restype = ctypes.c_uint32 - # Cluster WiFiNetworkDiagnostics ReadAttribute CurrentMaxRate - self._chipLib.chip_ime_ReadAttribute_WiFiNetworkDiagnostics_CurrentMaxRate.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_WiFiNetworkDiagnostics_CurrentMaxRate.restype = ctypes.c_uint32 - # Cluster WiFiNetworkDiagnostics SubscribeAttribute CurrentMaxRate - self._chipLib.chip_ime_SubscribeAttribute_WiFiNetworkDiagnostics_CurrentMaxRate.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_WiFiNetworkDiagnostics_CurrentMaxRate.restype = ctypes.c_uint32 - # Cluster WiFiNetworkDiagnostics ReadAttribute OverrunCount - self._chipLib.chip_ime_ReadAttribute_WiFiNetworkDiagnostics_OverrunCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_WiFiNetworkDiagnostics_OverrunCount.restype = ctypes.c_uint32 - # Cluster WiFiNetworkDiagnostics SubscribeAttribute OverrunCount - self._chipLib.chip_ime_SubscribeAttribute_WiFiNetworkDiagnostics_OverrunCount.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_WiFiNetworkDiagnostics_OverrunCount.restype = ctypes.c_uint32 - # Cluster WiFiNetworkDiagnostics ReadAttribute FeatureMap - self._chipLib.chip_ime_ReadAttribute_WiFiNetworkDiagnostics_FeatureMap.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_WiFiNetworkDiagnostics_FeatureMap.restype = ctypes.c_uint32 - # Cluster WiFiNetworkDiagnostics ReadAttribute ClusterRevision - self._chipLib.chip_ime_ReadAttribute_WiFiNetworkDiagnostics_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_WiFiNetworkDiagnostics_ClusterRevision.restype = ctypes.c_uint32 - # Cluster WiFiNetworkDiagnostics SubscribeAttribute ClusterRevision - self._chipLib.chip_ime_SubscribeAttribute_WiFiNetworkDiagnostics_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_WiFiNetworkDiagnostics_ClusterRevision.restype = ctypes.c_uint32 - # Cluster WindowCovering - # Cluster WindowCovering ReadAttribute Type - self._chipLib.chip_ime_ReadAttribute_WindowCovering_Type.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_WindowCovering_Type.restype = ctypes.c_uint32 - # Cluster WindowCovering SubscribeAttribute Type - self._chipLib.chip_ime_SubscribeAttribute_WindowCovering_Type.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_WindowCovering_Type.restype = ctypes.c_uint32 - # Cluster WindowCovering ReadAttribute CurrentPositionLift - self._chipLib.chip_ime_ReadAttribute_WindowCovering_CurrentPositionLift.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_WindowCovering_CurrentPositionLift.restype = ctypes.c_uint32 - # Cluster WindowCovering SubscribeAttribute CurrentPositionLift - self._chipLib.chip_ime_SubscribeAttribute_WindowCovering_CurrentPositionLift.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_WindowCovering_CurrentPositionLift.restype = ctypes.c_uint32 - # Cluster WindowCovering ReadAttribute CurrentPositionTilt - self._chipLib.chip_ime_ReadAttribute_WindowCovering_CurrentPositionTilt.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_WindowCovering_CurrentPositionTilt.restype = ctypes.c_uint32 - # Cluster WindowCovering SubscribeAttribute CurrentPositionTilt - self._chipLib.chip_ime_SubscribeAttribute_WindowCovering_CurrentPositionTilt.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_WindowCovering_CurrentPositionTilt.restype = ctypes.c_uint32 - # Cluster WindowCovering ReadAttribute ConfigStatus - self._chipLib.chip_ime_ReadAttribute_WindowCovering_ConfigStatus.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_WindowCovering_ConfigStatus.restype = ctypes.c_uint32 - # Cluster WindowCovering SubscribeAttribute ConfigStatus - self._chipLib.chip_ime_SubscribeAttribute_WindowCovering_ConfigStatus.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_WindowCovering_ConfigStatus.restype = ctypes.c_uint32 - # Cluster WindowCovering ReadAttribute CurrentPositionLiftPercentage - self._chipLib.chip_ime_ReadAttribute_WindowCovering_CurrentPositionLiftPercentage.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_WindowCovering_CurrentPositionLiftPercentage.restype = ctypes.c_uint32 - # Cluster WindowCovering SubscribeAttribute CurrentPositionLiftPercentage - self._chipLib.chip_ime_SubscribeAttribute_WindowCovering_CurrentPositionLiftPercentage.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_WindowCovering_CurrentPositionLiftPercentage.restype = ctypes.c_uint32 - # Cluster WindowCovering ReadAttribute CurrentPositionTiltPercentage - self._chipLib.chip_ime_ReadAttribute_WindowCovering_CurrentPositionTiltPercentage.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_WindowCovering_CurrentPositionTiltPercentage.restype = ctypes.c_uint32 - # Cluster WindowCovering SubscribeAttribute CurrentPositionTiltPercentage - self._chipLib.chip_ime_SubscribeAttribute_WindowCovering_CurrentPositionTiltPercentage.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_WindowCovering_CurrentPositionTiltPercentage.restype = ctypes.c_uint32 - # Cluster WindowCovering ReadAttribute OperationalStatus - self._chipLib.chip_ime_ReadAttribute_WindowCovering_OperationalStatus.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_WindowCovering_OperationalStatus.restype = ctypes.c_uint32 - # Cluster WindowCovering SubscribeAttribute OperationalStatus - self._chipLib.chip_ime_SubscribeAttribute_WindowCovering_OperationalStatus.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_WindowCovering_OperationalStatus.restype = ctypes.c_uint32 - # Cluster WindowCovering ReadAttribute TargetPositionLiftPercent100ths - self._chipLib.chip_ime_ReadAttribute_WindowCovering_TargetPositionLiftPercent100ths.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_WindowCovering_TargetPositionLiftPercent100ths.restype = ctypes.c_uint32 - # Cluster WindowCovering SubscribeAttribute TargetPositionLiftPercent100ths - self._chipLib.chip_ime_SubscribeAttribute_WindowCovering_TargetPositionLiftPercent100ths.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_WindowCovering_TargetPositionLiftPercent100ths.restype = ctypes.c_uint32 - # Cluster WindowCovering ReadAttribute TargetPositionTiltPercent100ths - self._chipLib.chip_ime_ReadAttribute_WindowCovering_TargetPositionTiltPercent100ths.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_WindowCovering_TargetPositionTiltPercent100ths.restype = ctypes.c_uint32 - # Cluster WindowCovering SubscribeAttribute TargetPositionTiltPercent100ths - self._chipLib.chip_ime_SubscribeAttribute_WindowCovering_TargetPositionTiltPercent100ths.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_WindowCovering_TargetPositionTiltPercent100ths.restype = ctypes.c_uint32 - # Cluster WindowCovering ReadAttribute EndProductType - self._chipLib.chip_ime_ReadAttribute_WindowCovering_EndProductType.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_WindowCovering_EndProductType.restype = ctypes.c_uint32 - # Cluster WindowCovering SubscribeAttribute EndProductType - self._chipLib.chip_ime_SubscribeAttribute_WindowCovering_EndProductType.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_WindowCovering_EndProductType.restype = ctypes.c_uint32 - # Cluster WindowCovering ReadAttribute CurrentPositionLiftPercent100ths - self._chipLib.chip_ime_ReadAttribute_WindowCovering_CurrentPositionLiftPercent100ths.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_WindowCovering_CurrentPositionLiftPercent100ths.restype = ctypes.c_uint32 - # Cluster WindowCovering SubscribeAttribute CurrentPositionLiftPercent100ths - self._chipLib.chip_ime_SubscribeAttribute_WindowCovering_CurrentPositionLiftPercent100ths.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_WindowCovering_CurrentPositionLiftPercent100ths.restype = ctypes.c_uint32 - # Cluster WindowCovering ReadAttribute CurrentPositionTiltPercent100ths - self._chipLib.chip_ime_ReadAttribute_WindowCovering_CurrentPositionTiltPercent100ths.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_WindowCovering_CurrentPositionTiltPercent100ths.restype = ctypes.c_uint32 - # Cluster WindowCovering SubscribeAttribute CurrentPositionTiltPercent100ths - self._chipLib.chip_ime_SubscribeAttribute_WindowCovering_CurrentPositionTiltPercent100ths.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_WindowCovering_CurrentPositionTiltPercent100ths.restype = ctypes.c_uint32 - # Cluster WindowCovering ReadAttribute InstalledOpenLimitLift - self._chipLib.chip_ime_ReadAttribute_WindowCovering_InstalledOpenLimitLift.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_WindowCovering_InstalledOpenLimitLift.restype = ctypes.c_uint32 - # Cluster WindowCovering SubscribeAttribute InstalledOpenLimitLift - self._chipLib.chip_ime_SubscribeAttribute_WindowCovering_InstalledOpenLimitLift.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_WindowCovering_InstalledOpenLimitLift.restype = ctypes.c_uint32 - # Cluster WindowCovering ReadAttribute InstalledClosedLimitLift - self._chipLib.chip_ime_ReadAttribute_WindowCovering_InstalledClosedLimitLift.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_WindowCovering_InstalledClosedLimitLift.restype = ctypes.c_uint32 - # Cluster WindowCovering SubscribeAttribute InstalledClosedLimitLift - self._chipLib.chip_ime_SubscribeAttribute_WindowCovering_InstalledClosedLimitLift.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_WindowCovering_InstalledClosedLimitLift.restype = ctypes.c_uint32 - # Cluster WindowCovering ReadAttribute InstalledOpenLimitTilt - self._chipLib.chip_ime_ReadAttribute_WindowCovering_InstalledOpenLimitTilt.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_WindowCovering_InstalledOpenLimitTilt.restype = ctypes.c_uint32 - # Cluster WindowCovering SubscribeAttribute InstalledOpenLimitTilt - self._chipLib.chip_ime_SubscribeAttribute_WindowCovering_InstalledOpenLimitTilt.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_WindowCovering_InstalledOpenLimitTilt.restype = ctypes.c_uint32 - # Cluster WindowCovering ReadAttribute InstalledClosedLimitTilt - self._chipLib.chip_ime_ReadAttribute_WindowCovering_InstalledClosedLimitTilt.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_WindowCovering_InstalledClosedLimitTilt.restype = ctypes.c_uint32 - # Cluster WindowCovering SubscribeAttribute InstalledClosedLimitTilt - self._chipLib.chip_ime_SubscribeAttribute_WindowCovering_InstalledClosedLimitTilt.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_WindowCovering_InstalledClosedLimitTilt.restype = ctypes.c_uint32 - # Cluster WindowCovering ReadAttribute Mode - self._chipLib.chip_ime_ReadAttribute_WindowCovering_Mode.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_WindowCovering_Mode.restype = ctypes.c_uint32 - # Cluster WindowCovering SubscribeAttribute Mode - self._chipLib.chip_ime_SubscribeAttribute_WindowCovering_Mode.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_WindowCovering_Mode.restype = ctypes.c_uint32 - # Cluster WindowCovering ReadAttribute SafetyStatus - self._chipLib.chip_ime_ReadAttribute_WindowCovering_SafetyStatus.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_WindowCovering_SafetyStatus.restype = ctypes.c_uint32 - # Cluster WindowCovering SubscribeAttribute SafetyStatus - self._chipLib.chip_ime_SubscribeAttribute_WindowCovering_SafetyStatus.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_WindowCovering_SafetyStatus.restype = ctypes.c_uint32 - # Cluster WindowCovering ReadAttribute FeatureMap - self._chipLib.chip_ime_ReadAttribute_WindowCovering_FeatureMap.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_WindowCovering_FeatureMap.restype = ctypes.c_uint32 - # Cluster WindowCovering SubscribeAttribute FeatureMap - self._chipLib.chip_ime_SubscribeAttribute_WindowCovering_FeatureMap.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_WindowCovering_FeatureMap.restype = ctypes.c_uint32 - # Cluster WindowCovering ReadAttribute ClusterRevision - self._chipLib.chip_ime_ReadAttribute_WindowCovering_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_WindowCovering_ClusterRevision.restype = ctypes.c_uint32 - # Cluster WindowCovering SubscribeAttribute ClusterRevision - self._chipLib.chip_ime_SubscribeAttribute_WindowCovering_ClusterRevision.argtypes = [ - ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_WindowCovering_ClusterRevision.restype = ctypes.c_uint32 - # Init response delegates - - def HandleSuccess(): - self._ChipStack.callbackRes = 0 - self._ChipStack.completeEvent.set() - - def HandleFailure(status): - self._ChipStack.callbackRes = status - self._ChipStack.completeEvent.set() - - self._HandleSuccess = ChipClusters.SUCCESS_DELEGATE(HandleSuccess) - self._HandleFailure = ChipClusters.FAILURE_DELEGATE(HandleFailure) - self._chipLib.chip_ime_SetSuccessResponseDelegate(self._HandleSuccess) - self._chipLib.chip_ime_SetFailureResponseDelegate(self._HandleFailure) diff --git a/src/controller/python/chip/clusters/attribute.cpp b/src/controller/python/chip/clusters/attribute.cpp index 00267d25038578..ff46592fafec99 100644 --- a/src/controller/python/chip/clusters/attribute.cpp +++ b/src/controller/python/chip/clusters/attribute.cpp @@ -35,7 +35,8 @@ using PyObject = void; extern "C" { // Encodes n attribute write requests, follows 3 * n arguments, in the (AttributeWritePath*=void *, uint8_t*, size_t) order. chip::ChipError::StorageType pychip_WriteClient_WriteAttributes(void * appContext, DeviceProxy * device, size_t n, ...); -chip::ChipError::StorageType pychip_ReadClient_ReadAttributes(void * appContext, DeviceProxy * device, size_t n, ...); +chip::ChipError::StorageType pychip_ReadClient_ReadAttributes(void * appContext, DeviceProxy * device, bool isSubscription, + uint32_t minInterval, uint32_t maxInterval, size_t n, ...); } namespace chip { @@ -48,16 +49,18 @@ struct __attribute__((packed)) AttributePath chip::AttributeId attributeId; }; -using OnReadAttributeDataCallback = void (*)(PyObject * appContext, chip::EndpointId endpointId, chip::ClusterId clusterId, +using OnReadAttributeDataCallback = void (*)(PyObject * appContext, chip::EndpointId endpointId, chip::ClusterId clusterId, chip::AttributeId attributeId, std::underlying_type_t imstatus, uint8_t * data, uint32_t dataLen); -using OnReadErrorCallback = void (*)(PyObject * appContext, uint32_t chiperror); -using OnReadDoneCallback = void (*)(PyObject * appContext); +using OnSubscriptionEstablishedCallback = void (*)(PyObject * appContext, uint64_t subscriptionId); +using OnReadErrorCallback = void (*)(PyObject * appContext, uint32_t chiperror); +using OnReadDoneCallback = void (*)(PyObject * appContext); -OnReadAttributeDataCallback gOnReadAttributeDataCallback = nullptr; -OnReadErrorCallback gOnReadErrorCallback = nullptr; -OnReadDoneCallback gOnReadDoneCallback = nullptr; +OnReadAttributeDataCallback gOnReadAttributeDataCallback = nullptr; +OnSubscriptionEstablishedCallback gOnSubscriptionEstablishedCallback = nullptr; +OnReadErrorCallback gOnReadErrorCallback = nullptr; +OnReadDoneCallback gOnReadDoneCallback = nullptr; class ReadClientCallback : public ReadClient::Callback { @@ -99,6 +102,11 @@ class ReadClientCallback : public ReadClient::Callback to_underlying(aStatus.mStatus), buffer, size); } + void OnSubscriptionEstablished(const ReadClient * apReadClient) override + { + gOnSubscriptionEstablishedCallback(mAppContext, apReadClient->GetSubscriptionId().ValueOr(0)); + } + void OnError(const ReadClient * apReadClient, CHIP_ERROR aError) override { gOnReadErrorCallback(mAppContext, aError.AsInteger()); @@ -167,11 +175,13 @@ void pychip_WriteClient_InitCallbacks(OnWriteResponseCallback onWriteResponseCal } void pychip_ReadClient_InitCallbacks(OnReadAttributeDataCallback onReadAttributeDataCallback, + OnSubscriptionEstablishedCallback onSubscriptionEstablishedCallback, OnReadErrorCallback onReadErrorCallback, OnReadDoneCallback onReadDoneCallback) { - gOnReadAttributeDataCallback = onReadAttributeDataCallback; - gOnReadErrorCallback = onReadErrorCallback; - gOnReadDoneCallback = onReadDoneCallback; + gOnReadAttributeDataCallback = onReadAttributeDataCallback; + gOnSubscriptionEstablishedCallback = onSubscriptionEstablishedCallback; + gOnReadErrorCallback = onReadErrorCallback; + gOnReadDoneCallback = onReadDoneCallback; } chip::ChipError::StorageType pychip_WriteClient_WriteAttributes(void * appContext, DeviceProxy * device, size_t n, ...) @@ -222,7 +232,8 @@ chip::ChipError::StorageType pychip_WriteClient_WriteAttributes(void * appContex return err.AsInteger(); } -chip::ChipError::StorageType pychip_ReadClient_ReadAttributes(void * appContext, DeviceProxy * device, size_t n, ...) +chip::ChipError::StorageType pychip_ReadClient_ReadAttributes(void * appContext, DeviceProxy * device, bool isSubscription, + uint32_t minInterval, uint32_t maxInterval, size_t n, ...) { CHIP_ERROR err = CHIP_NO_ERROR; @@ -250,12 +261,25 @@ chip::ChipError::StorageType pychip_ReadClient_ReadAttributes(void * appContext, VerifyOrExit(session.HasValue(), err = CHIP_ERROR_NOT_CONNECTED); { - app::InteractionModelEngine::GetInstance()->NewReadClient(&readClient, ReadClient::InteractionType::Read, callback.get()); + app::InteractionModelEngine::GetInstance()->NewReadClient( + &readClient, isSubscription ? ReadClient::InteractionType::Subscribe : ReadClient::InteractionType::Read, + callback.get()); ReadPrepareParams params(session.Value()); params.mpAttributePathParamsList = readPaths.get(); params.mAttributePathParamsListSize = n; - err = readClient->SendReadRequest(params); + if (isSubscription) + { + params.mMinIntervalFloorSeconds = minInterval; + params.mMaxIntervalCeilingSeconds = maxInterval; + + err = readClient->SendSubscribeRequest(params); + } + else + { + err = readClient->SendReadRequest(params); + } + if (err != CHIP_NO_ERROR) { readClient->Shutdown(); diff --git a/src/controller/python/templates/python-CHIPClusters-cpp.zapt b/src/controller/python/templates/python-CHIPClusters-cpp.zapt deleted file mode 100644 index 5ba06ea7836f03..00000000000000 --- a/src/controller/python/templates/python-CHIPClusters-cpp.zapt +++ /dev/null @@ -1,168 +0,0 @@ -{{> header}} - -#include -#include -#include -#include -#include -#include - -#include - -#include -#include - -using namespace chip; -using namespace chip::app; - -namespace { - -// Define pointers for external ZCL response delegates. - -using SuccessResponseDelegate = void(*)(); -using FailureResponseDelegate = void(*)(uint8_t); -SuccessResponseDelegate gSuccessResponseDelegate; -FailureResponseDelegate gFailureResponseDelegate; - -// Define callbacks for ZCL commands and attribute requests. - -#if CHIP_PROGRESS_LOGGING -std::string ByteSpanToString(chip::ByteSpan value) -{ - std::string strValue = ""; - for (size_t i = 0; i < value.size(); i++) - { - strValue += ' '; - strValue += std::to_string(value.data()[i]); - } - return strValue; -} -#endif - -void OnDefaultSuccessResponse(void * /* context */) -{ - if (gSuccessResponseDelegate != nullptr) - gSuccessResponseDelegate(); -} - -void OnDefaultFailureResponse(void * /* context */, uint8_t status) -{ - if (gFailureResponseDelegate != nullptr) - gFailureResponseDelegate(status); -} - - -template -void OnAttributeResponse(void * /* context */, AttributeType value) -{ - std::string strValue = std::to_string(value); - ChipLogProgress(Zcl, " attributeValue: %s", strValue.c_str()); - if (gSuccessResponseDelegate != nullptr) - gSuccessResponseDelegate(); -} - -template <> -void OnAttributeResponse(void * /* context */, chip::ByteSpan value) -{ - ChipLogProgress(Zcl, " attributeValue: (span of length %zd) %s", value.size(), ByteSpanToString(value).c_str()); - if (gSuccessResponseDelegate != nullptr) - gSuccessResponseDelegate(); -} - -template <> -void OnAttributeResponse(void * /* context */, chip::CharSpan value) -{ - ChipLogProgress(Zcl, " attributeValue: '%.*s'", static_cast(value.size()), value.data()); - if (gSuccessResponseDelegate != nullptr) - gSuccessResponseDelegate(); -} - -template <> -void OnAttributeResponse(void * /* context */, bool value) -{ - ChipLogProgress(Zcl, " attributeValue: %s", value ? "true" : "false"); - if (gSuccessResponseDelegate != nullptr) - gSuccessResponseDelegate(); -} - -{{#chip_client_clusters}} -{{#chip_server_cluster_attributes}} -{{#if isList}} -static void On{{asUpperCamelCase parent.name}}{{asUpperCamelCase name}}ListAttributeResponse(void * context, {{zapTypeToDecodableClusterObjectType type ns=parent.name isArgument=true}} list) -{ - {{! TODO: implementation }} - if (gSuccessResponseDelegate != nullptr) - gSuccessResponseDelegate(); -} -chip::Callback::Callback<{{asUpperCamelCase parent.name}}{{asUpperCamelCase name}}ListAttributeCallback> g{{asUpperCamelCase parent.name}}{{asUpperCamelCase name}}ListAttributeCallback{On{{asUpperCamelCase parent.name}}{{asUpperCamelCase name}}ListAttributeResponse, nullptr}; -{{/if}} -{{/chip_server_cluster_attributes}} -{{/chip_client_clusters}} - -chip::Callback::Callback gDefaultSuccessCallback{OnDefaultSuccessResponse, nullptr}; -chip::Callback::Callback gDefaultFailureCallback{OnDefaultFailureResponse, nullptr}; -chip::Callback::Callback gBooleanAttributeCallback{OnAttributeResponse, nullptr}; -chip::Callback::Callback gInt8uAttributeCallback{OnAttributeResponse, nullptr}; -chip::Callback::Callback gInt8sAttributeCallback{OnAttributeResponse, nullptr}; -chip::Callback::Callback gInt16uAttributeCallback{OnAttributeResponse, nullptr}; -chip::Callback::Callback gInt16sAttributeCallback{OnAttributeResponse, nullptr}; -chip::Callback::Callback gInt32uAttributeCallback{OnAttributeResponse, nullptr}; -chip::Callback::Callback gInt32sAttributeCallback{OnAttributeResponse, nullptr}; -chip::Callback::Callback gInt64uAttributeCallback{OnAttributeResponse, nullptr}; -chip::Callback::Callback gInt64sAttributeCallback{OnAttributeResponse, nullptr}; -chip::Callback::Callback gOctetStringAttributeCallback{OnAttributeResponse, nullptr}; -chip::Callback::Callback gCharStringAttributeCallback{OnAttributeResponse, nullptr}; - -} // namespace - -extern "C" { - -void chip_ime_SetSuccessResponseDelegate(SuccessResponseDelegate delegate) -{ - gSuccessResponseDelegate = delegate; -} - -void chip_ime_SetFailureResponseDelegate(FailureResponseDelegate delegate) -{ - gFailureResponseDelegate = delegate; -} - -{{#chip_client_clusters}} -// Cluster {{asUpperCamelCase name}} - -{{#chip_server_cluster_attributes}} -chip::ChipError::StorageType chip_ime_ReadAttribute_{{asUpperCamelCase parent.name}}_{{asUpperCamelCase name}}(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, chip::GroupId /* ZCLgroupId */) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::{{asUpperCamelCase parent.name}}Cluster cluster; - cluster.Associate(device, ZCLendpointId); -{{#if isList}} - return cluster.ReadAttribute{{asUpperCamelCase name}}(g{{asUpperCamelCase parent.name}}{{asUpperCamelCase name}}ListAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -{{else}} - return cluster.ReadAttribute{{asUpperCamelCase name}}(g{{chipCallback.name}}AttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger(); -{{/if}} -} - -{{#if isReportableAttribute}} -{{#unless isList}} -chip::ChipError::StorageType chip_ime_SubscribeAttribute_{{asUpperCamelCase parent.name}}_{{asUpperCamelCase name}}(chip::DeviceProxy * device, chip::EndpointId ZCLendpointId, uint16_t minInterval, uint16_t maxInterval) -{ - VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger()); - chip::Controller::{{asUpperCamelCase parent.name}}Cluster cluster; - cluster.Associate(device, ZCLendpointId); -{{#if isList}} - chip::Callback::Callback<{{asUpperCamelCase parent.name}}{{asUpperCamelCase name}}ListAttributeCallback> * onSuccessCallback = new chip::Callback::Callback<{{asUpperCamelCase parent.name}}{{asUpperCamelCase name}}ListAttributeCallback>(On{{asUpperCamelCase parent.name}}{{asUpperCamelCase name}}ListAttributeResponse, nullptr); - return cluster.SubscribeAttribute{{asUpperCamelCase name}}(onSuccessCallback->Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval).AsInteger(); -{{else}} - return cluster.SubscribeAttribute{{asUpperCamelCase name}}(g{{chipCallback.name}}AttributeCallback.Cancel(), gDefaultFailureCallback.Cancel(), minInterval, maxInterval).AsInteger(); -{{/if}} -} -{{/unless}} -{{/if}} - -{{/chip_server_cluster_attributes}} - -// End of Cluster {{asUpperCamelCase name}} -{{/chip_client_clusters}} - -} diff --git a/src/controller/python/templates/python-CHIPClusters-py.zapt b/src/controller/python/templates/python-CHIPClusters-py.zapt index e22568b10ba1e2..baf1a695e92962 100644 --- a/src/controller/python/templates/python-CHIPClusters-py.zapt +++ b/src/controller/python/templates/python-CHIPClusters-py.zapt @@ -81,89 +81,7 @@ class ChipClusters: attribute["attributeName"]: attribute for attribute in clusterInfo["attributes"].values() } for clusterName, clusterInfo in ChipClusters._CLUSTER_NAME_DICT.items() } - def SendCommand(self, device: ctypes.c_void_p, cluster: str, command: str, endpoint: int, groupid: int, args, imEnabled): - func = getattr(self, "Cluster{}_Command{}".format(cluster, command), None) - if not func: - raise UnknownCommand(cluster, command) - funcCaller = self._ChipStack.Call if imEnabled else self._ChipStack.CallAsync - res = funcCaller(lambda: func(device, endpoint, groupid, **args)) - if res != 0: - raise self._ChipStack.ErrorToException(res) - - def ReadAttribute(self, device: ctypes.c_void_p, cluster: str, attribute: str, endpoint: int, groupid: int, imEnabled): - func = getattr(self, "Cluster{}_ReadAttribute{}".format(cluster, attribute), None) - if not func: - raise UnknownAttribute(cluster, attribute) - funcCaller = self._ChipStack.Call if imEnabled else self._ChipStack.CallAsync - res = funcCaller(lambda: func(device, endpoint, groupid)) - if res != 0: - raise self._ChipStack.ErrorToException(res) - - def SubscribeAttribute(self, device: ctypes.c_void_p, cluster: str, attribute: str, endpoint: int, minInterval: int, maxInterval: int, imEnabled): - func = getattr(self, "Cluster{}_SubscribeAttribute{}".format(cluster, attribute), None) - if not func: - raise UnknownAttribute(cluster, attribute) - funcCaller = self._ChipStack.Call if imEnabled else self._ChipStack.CallAsync - funcCaller(lambda: func(device, endpoint, minInterval, maxInterval)) - - def WriteAttribute(self, device: ctypes.c_void_p, cluster: str, attribute: str, endpoint: int, groupid: int, value, imEnabled): - func = getattr(self, "Cluster{}_WriteAttribute{}".format(cluster, attribute), None) - if not func: - raise UnknownAttribute(cluster, attribute) - funcCaller = self._ChipStack.Call if imEnabled else self._ChipStack.CallAsync - res = funcCaller(lambda: func(device, endpoint, groupid, value)) - if res != 0: - raise self._ChipStack.ErrorToException(res) - - # Cluster attributes - -{{#chip_client_clusters}} -{{#chip_server_cluster_attributes}} - def Cluster{{asUpperCamelCase parent.name}}_ReadAttribute{{asUpperCamelCase name}}(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_{{asUpperCamelCase parent.name}}_{{asUpperCamelCase name}}(device, ZCLendpoint, ZCLgroupid) -{{#if isReportableAttribute}} -{{#unless isList}} - def Cluster{{asUpperCamelCase parent.name}}_SubscribeAttribute{{asUpperCamelCase name}}(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int): - return self._chipLib.chip_ime_SubscribeAttribute_{{asUpperCamelCase parent.name}}_{{asUpperCamelCase name}}(device, ZCLendpoint, minInterval, maxInterval) -{{/unless}} -{{/if}} -{{/chip_server_cluster_attributes}} -{{/chip_client_clusters}} - # Init native functions def InitLib(self, chipLib): self._chipLib = chipLib - # Response delegate setters - self._chipLib.chip_ime_SetSuccessResponseDelegate.argtypes = [ChipClusters.SUCCESS_DELEGATE] - self._chipLib.chip_ime_SetSuccessResponseDelegate.restype = None - self._chipLib.chip_ime_SetFailureResponseDelegate.argtypes = [ChipClusters.FAILURE_DELEGATE] - self._chipLib.chip_ime_SetFailureResponseDelegate.res = None -{{#chip_client_clusters}} - # Cluster {{asUpperCamelCase name}} -{{#chip_server_cluster_attributes}} - # Cluster {{asUpperCamelCase parent.name}} ReadAttribute {{asUpperCamelCase name}} - self._chipLib.chip_ime_ReadAttribute_{{asUpperCamelCase parent.name}}_{{asUpperCamelCase name}}.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_{{asUpperCamelCase parent.name}}_{{asUpperCamelCase name}}.restype = ctypes.c_uint32 -{{#if isReportableAttribute}} -{{#unless isList}} - # Cluster {{asUpperCamelCase parent.name}} SubscribeAttribute {{asUpperCamelCase name}} - self._chipLib.chip_ime_SubscribeAttribute_{{asUpperCamelCase parent.name}}_{{asUpperCamelCase name}}.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16] - self._chipLib.chip_ime_SubscribeAttribute_{{asUpperCamelCase parent.name}}_{{asUpperCamelCase name}}.restype = ctypes.c_uint32 -{{/unless}} -{{/if}} -{{/chip_server_cluster_attributes}} -{{/chip_client_clusters}} - # Init response delegates - def HandleSuccess(): - self._ChipStack.callbackRes = 0 - self._ChipStack.completeEvent.set() - - def HandleFailure(status): - self._ChipStack.callbackRes = status - self._ChipStack.completeEvent.set() - - self._HandleSuccess = ChipClusters.SUCCESS_DELEGATE(HandleSuccess) - self._HandleFailure = ChipClusters.FAILURE_DELEGATE(HandleFailure) - self._chipLib.chip_ime_SetSuccessResponseDelegate(self._HandleSuccess) - self._chipLib.chip_ime_SetFailureResponseDelegate(self._HandleFailure) diff --git a/src/controller/python/templates/templates.json b/src/controller/python/templates/templates.json index c77a2aaf4e8709..859c98ad22b619 100644 --- a/src/controller/python/templates/templates.json +++ b/src/controller/python/templates/templates.json @@ -24,11 +24,6 @@ } ], "templates": [ - { - "path": "python-CHIPClusters-cpp.zapt", - "name": "CHIP ZCL API for Python (native code)", - "output": "src/controller/python/chip/clusters/CHIPClusters.cpp" - }, { "path": "python-CHIPClusters-py.zapt", "name": "CHIP ZCL API for Python", diff --git a/src/controller/python/test/test_scripts/base.py b/src/controller/python/test/test_scripts/base.py index 076c6427e061a3..b8e13681b03e95 100644 --- a/src/controller/python/test/test_scripts/base.py +++ b/src/controller/python/test/test_scripts/base.py @@ -16,6 +16,7 @@ # from dataclasses import dataclass +from inspect import Attribute from typing import Any import typing from chip import ChipDeviceCtrl @@ -315,23 +316,20 @@ class AttributeWriteRequest: return True def TestSubscription(self, nodeid: int, endpoint: int): - class _subscriptionHandler(IM.OnSubscriptionReport): - def __init__(self, path: IM.AttributePath, logger: logging.Logger): - super(_subscriptionHandler, self).__init__() - self.subscriptionReceived = 0 - self.path = path - self.countLock = threading.Lock() - self.cv = threading.Condition(self.countLock) - self.logger = logger - - def OnData(self, path: IM.AttributePath, subscriptionId: int, data: typing.Any) -> None: - if path != self.path: - return - logger.info( - f"Received report from server: path: {path}, value: {data}, subscriptionId: {subscriptionId}") - with self.countLock: - self.subscriptionReceived += 1 - self.cv.notify_all() + desiredPath = None + receivedUpdate = 0 + updateLock = threading.Lock() + updateCv = threading.Condition(updateLock) + + def OnValueChange(path: Clusters.Attribute.AttributePath, data: typing.Any) -> None: + nonlocal desiredPath, updateCv, updateLock, receivedUpdate + if path != desiredPath: + return + logger.info( + f"Received report from server: path: {path}, value: {data}") + with updateLock: + receivedUpdate += 1 + updateCv.notify_all() class _conductAttributeChange(threading.Thread): def __init__(self, devCtrl: ChipDeviceCtrl.ChipDeviceController, nodeid: int, endpoint: int): @@ -347,24 +345,22 @@ def run(self): "OnOff", "Toggle", self.nodeid, self.endpoint, 0, {}) try: - subscribedPath = IM.AttributePath( - nodeId=nodeid, endpointId=endpoint, clusterId=6, attributeId=0) + desiredPath = Clusters.Attribute.AttributePath( + EndpointId=1, ClusterId=6, AttributeId=0) # OnOff Cluster, OnOff Attribute - handler = _subscriptionHandler(subscribedPath, self.logger) - IM.SetAttributeReportCallback(subscribedPath, handler) - self.devCtrl.ZCLSubscribeAttribute( + subscription = self.devCtrl.ZCLSubscribeAttribute( "OnOff", "OnOff", nodeid, endpoint, 1, 10) + subscription.SetAttributeUpdateCallback(OnValueChange) changeThread = _conductAttributeChange( self.devCtrl, nodeid, endpoint) # Reset the number of subscriptions received as subscribing causes a callback. - handler.subscriptionReceived = 0 changeThread.start() - with handler.cv: - while handler.subscriptionReceived < 5: + with updateCv: + while receivedUpdate < 5: # We should observe 5 attribute changes # The changing thread will change the value after 3 seconds. If we're waiting more than 10, assume something # is really wrong and bail out here with some information. - if not handler.cv.wait(10.0): + if not updateCv.wait(10.0): self.logger.error( f"Failed to receive subscription update") break @@ -375,7 +371,7 @@ def run(self): # Thread join timed out self.logger.error(f"Failed to join change thread") return False - return True if handler.subscriptionReceived == 5 else False + return True if receivedUpdate == 5 else False except Exception as ex: self.logger.exception(f"Failed to finish API test: {ex}") diff --git a/src/controller/python/test/test_scripts/cluster_objects.py b/src/controller/python/test/test_scripts/cluster_objects.py index c1d1f584bea585..850fdb41632014 100644 --- a/src/controller/python/test/test_scripts/cluster_objects.py +++ b/src/controller/python/test/test_scripts/cluster_objects.py @@ -20,6 +20,7 @@ import logging from chip.clusters.Attribute import AttributePath, AttributeReadResult, AttributeStatus import chip.interaction_model +import asyncio logger = logging.getLogger('PythonMatterControllerTEST') logger.setLevel(logging.INFO) @@ -95,6 +96,28 @@ async def SendWriteRequest(cls, devCtrl): f"Item {i} is not expected, expect {expectedRes[i]} got {res[i]}") raise AssertionError("Read returned unexpected result.") + @classmethod + async def TestSubscribeAttribute(cls, devCtrl): + logger.info("Test Subscription") + sub = await devCtrl.ReadAttribute(nodeid=NODE_ID, attributes=[(1, Clusters.OnOff.Attributes.OnOff)], reportInterval=(3, 10)) + updated = False + + def subUpdate(path, value): + nonlocal updated + logger.info( + f"Received attribute update path {path}, New value {value}") + updated = True + sub.SetAttributeUpdateCallback(subUpdate) + req = Clusters.OnOff.Commands.On() + await devCtrl.SendCommand(nodeid=NODE_ID, endpoint=1, payload=req) + await asyncio.sleep(5) + req = Clusters.OnOff.Commands.Off() + await devCtrl.SendCommand(nodeid=NODE_ID, endpoint=1, payload=req) + await asyncio.sleep(5) + + if not updated: + raise AssertionError("Did not receive updated attribute") + @classmethod async def TestReadRequests(cls, devCtrl): ''' @@ -155,6 +178,7 @@ async def RunTest(cls, devCtrl): await cls.SendCommandWithResponse(devCtrl) await cls.SendWriteRequest(devCtrl) await cls.TestReadRequests(devCtrl) + await cls.TestSubscribeAttribute(devCtrl) except Exception as ex: logger.error( f"Unexpected error occurred when running tests: {ex}")