diff --git a/.restyled.yaml b/.restyled.yaml index 176c2498fedc5b..e8ab21cb5be4ae 100644 --- a/.restyled.yaml +++ b/.restyled.yaml @@ -67,6 +67,7 @@ exclude: - "third_party/nanopb/repo/**/*" - "src/android/CHIPTool/gradlew" # gradle wrapper generated file - "third_party/android_deps/gradlew" # gradle wrapper generated file + - "src/controller/python/chip/clusters/Objects.py" # generated file, no point to restyle changed_paths: diff --git a/src/controller/python/chip/clusters/Objects.py b/src/controller/python/chip/clusters/Objects.py index 4dd12e6053b06d..084ed1d4f7fa02 100644 --- a/src/controller/python/chip/clusters/Objects.py +++ b/src/controller/python/chip/clusters/Objects.py @@ -32,11 +32,13 @@ from .ClusterObjects import ClusterObject, ClusterObjectDescriptor, ClusterObjectFieldDescriptor, ClusterCommand, ClusterAttributeDescriptor, Cluster, ClusterEventDescriptor from .Types import Nullable, NullValue - @dataclass class PowerConfiguration(Cluster): id: typing.ClassVar[int] = 0x0001 + + + class Attributes: @dataclass class MainsVoltage(ClusterAttributeDescriptor): @@ -983,10 +985,14 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class DeviceTemperatureConfiguration(Cluster): id: typing.ClassVar[int] = 0x0002 + + + class Attributes: @dataclass class CurrentTemperature(ClusterAttributeDescriptor): @@ -1165,6 +1171,7 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class Identify(Cluster): id: typing.ClassVar[int] = 0x0003 @@ -1189,6 +1196,8 @@ class IdentifyIdentifyType(IntEnum): kDisplay = 0x04 kActuator = 0x05 + + class Commands: @dataclass class Identify(ClusterCommand): @@ -1199,9 +1208,8 @@ class Identify(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="identifyTime", Tag=0, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="identifyTime", Tag=0, Type=uint), ]) identifyTime: 'uint' = 0 @@ -1215,9 +1223,8 @@ class IdentifyQueryResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="timeout", Tag=0, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="timeout", Tag=0, Type=uint), ]) timeout: 'uint' = 0 @@ -1231,9 +1238,10 @@ class IdentifyQuery(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class TriggerEffect(ClusterCommand): cluster_id: typing.ClassVar[int] = 0x0003 @@ -1243,16 +1251,15 @@ class TriggerEffect(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="effectIdentifier", Tag=0, Type=Identify.Enums.IdentifyEffectIdentifier), - ClusterObjectFieldDescriptor( - Label="effectVariant", Tag=1, Type=Identify.Enums.IdentifyEffectVariant), + Fields = [ + ClusterObjectFieldDescriptor(Label="effectIdentifier", Tag=0, Type=Identify.Enums.IdentifyEffectIdentifier), + ClusterObjectFieldDescriptor(Label="effectVariant", Tag=1, Type=Identify.Enums.IdentifyEffectVariant), ]) effectIdentifier: 'Identify.Enums.IdentifyEffectIdentifier' = 0 effectVariant: 'Identify.Enums.IdentifyEffectVariant' = 0 + class Attributes: @dataclass class IdentifyTime(ClusterAttributeDescriptor): @@ -1319,10 +1326,13 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class Groups(Cluster): id: typing.ClassVar[int] = 0x0004 + + class Commands: @dataclass class AddGroup(ClusterCommand): @@ -1333,11 +1343,9 @@ class AddGroup(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="groupId", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="groupName", Tag=1, Type=str), + Fields = [ + ClusterObjectFieldDescriptor(Label="groupId", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="groupName", Tag=1, Type=str), ]) groupId: 'uint' = 0 @@ -1352,11 +1360,9 @@ class AddGroupResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="status", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="groupId", Tag=1, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="status", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="groupId", Tag=1, Type=uint), ]) status: 'uint' = 0 @@ -1371,9 +1377,8 @@ class ViewGroup(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="groupId", Tag=0, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="groupId", Tag=0, Type=uint), ]) groupId: 'uint' = 0 @@ -1387,13 +1392,10 @@ class ViewGroupResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="status", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="groupId", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="groupName", Tag=2, Type=str), + Fields = [ + ClusterObjectFieldDescriptor(Label="status", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="groupId", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="groupName", Tag=2, Type=str), ]) status: 'uint' = 0 @@ -1409,9 +1411,8 @@ class GetGroupMembership(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="groupList", Tag=0, Type=typing.List[uint]), + Fields = [ + ClusterObjectFieldDescriptor(Label="groupList", Tag=0, Type=typing.List[uint]), ]) groupList: 'typing.List[uint]' = field(default_factory=lambda: []) @@ -1425,11 +1426,9 @@ class GetGroupMembershipResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="capacity", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="groupList", Tag=1, Type=typing.List[uint]), + Fields = [ + ClusterObjectFieldDescriptor(Label="capacity", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="groupList", Tag=1, Type=typing.List[uint]), ]) capacity: 'uint' = 0 @@ -1444,9 +1443,8 @@ class RemoveGroup(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="groupId", Tag=0, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="groupId", Tag=0, Type=uint), ]) groupId: 'uint' = 0 @@ -1460,11 +1458,9 @@ class RemoveGroupResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="status", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="groupId", Tag=1, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="status", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="groupId", Tag=1, Type=uint), ]) status: 'uint' = 0 @@ -1479,9 +1475,10 @@ class RemoveAllGroups(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class AddGroupIfIdentifying(ClusterCommand): cluster_id: typing.ClassVar[int] = 0x0004 @@ -1491,16 +1488,15 @@ class AddGroupIfIdentifying(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="groupId", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="groupName", Tag=1, Type=str), + Fields = [ + ClusterObjectFieldDescriptor(Label="groupId", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="groupName", Tag=1, Type=str), ]) groupId: 'uint' = 0 groupName: 'str' = "" + class Attributes: @dataclass class NameSupport(ClusterAttributeDescriptor): @@ -1551,29 +1547,30 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class Scenes(Cluster): id: typing.ClassVar[int] = 0x0005 + class Structs: @dataclass class SceneExtensionFieldSet(ClusterObject): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="clusterId", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="length", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="value", Tag=3, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="clusterId", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="length", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="value", Tag=3, Type=uint), ]) clusterId: 'uint' = 0 length: 'uint' = 0 value: 'uint' = 0 + + class Commands: @dataclass class AddScene(ClusterCommand): @@ -1584,25 +1581,19 @@ class AddScene(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="groupId", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="sceneId", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="transitionTime", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="sceneName", Tag=3, Type=str), - ClusterObjectFieldDescriptor( - Label="extensionFieldSets", Tag=4, Type=typing.List[Scenes.Structs.SceneExtensionFieldSet]), + Fields = [ + ClusterObjectFieldDescriptor(Label="groupId", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="sceneId", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="transitionTime", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="sceneName", Tag=3, Type=str), + ClusterObjectFieldDescriptor(Label="extensionFieldSets", Tag=4, Type=typing.List[Scenes.Structs.SceneExtensionFieldSet]), ]) groupId: 'uint' = 0 sceneId: 'uint' = 0 transitionTime: 'uint' = 0 sceneName: 'str' = "" - extensionFieldSets: 'typing.List[Scenes.Structs.SceneExtensionFieldSet]' = field( - default_factory=lambda: []) + extensionFieldSets: 'typing.List[Scenes.Structs.SceneExtensionFieldSet]' = field(default_factory=lambda: []) @dataclass class AddSceneResponse(ClusterCommand): @@ -1613,13 +1604,10 @@ class AddSceneResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="status", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="groupId", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="sceneId", Tag=2, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="status", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="groupId", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="sceneId", Tag=2, Type=uint), ]) status: 'uint' = 0 @@ -1635,11 +1623,9 @@ class ViewScene(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="groupId", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="sceneId", Tag=1, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="groupId", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="sceneId", Tag=1, Type=uint), ]) groupId: 'uint' = 0 @@ -1654,19 +1640,13 @@ class ViewSceneResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="status", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="groupId", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="sceneId", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="transitionTime", Tag=3, Type=uint), - ClusterObjectFieldDescriptor( - Label="sceneName", Tag=4, Type=str), - ClusterObjectFieldDescriptor( - Label="extensionFieldSets", Tag=5, Type=typing.List[Scenes.Structs.SceneExtensionFieldSet]), + Fields = [ + ClusterObjectFieldDescriptor(Label="status", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="groupId", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="sceneId", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="transitionTime", Tag=3, Type=uint), + ClusterObjectFieldDescriptor(Label="sceneName", Tag=4, Type=str), + ClusterObjectFieldDescriptor(Label="extensionFieldSets", Tag=5, Type=typing.List[Scenes.Structs.SceneExtensionFieldSet]), ]) status: 'uint' = 0 @@ -1674,8 +1654,7 @@ def descriptor(cls) -> ClusterObjectDescriptor: sceneId: 'uint' = 0 transitionTime: 'uint' = 0 sceneName: 'str' = "" - extensionFieldSets: 'typing.List[Scenes.Structs.SceneExtensionFieldSet]' = field( - default_factory=lambda: []) + extensionFieldSets: 'typing.List[Scenes.Structs.SceneExtensionFieldSet]' = field(default_factory=lambda: []) @dataclass class RemoveScene(ClusterCommand): @@ -1686,11 +1665,9 @@ class RemoveScene(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="groupId", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="sceneId", Tag=1, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="groupId", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="sceneId", Tag=1, Type=uint), ]) groupId: 'uint' = 0 @@ -1705,13 +1682,10 @@ class RemoveSceneResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="status", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="groupId", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="sceneId", Tag=2, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="status", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="groupId", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="sceneId", Tag=2, Type=uint), ]) status: 'uint' = 0 @@ -1727,9 +1701,8 @@ class RemoveAllScenes(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="groupId", Tag=0, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="groupId", Tag=0, Type=uint), ]) groupId: 'uint' = 0 @@ -1743,11 +1716,9 @@ class RemoveAllScenesResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="status", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="groupId", Tag=1, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="status", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="groupId", Tag=1, Type=uint), ]) status: 'uint' = 0 @@ -1762,11 +1733,9 @@ class StoreScene(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="groupId", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="sceneId", Tag=1, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="groupId", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="sceneId", Tag=1, Type=uint), ]) groupId: 'uint' = 0 @@ -1781,13 +1750,10 @@ class StoreSceneResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="status", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="groupId", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="sceneId", Tag=2, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="status", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="groupId", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="sceneId", Tag=2, Type=uint), ]) status: 'uint' = 0 @@ -1803,13 +1769,10 @@ class RecallScene(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="groupId", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="sceneId", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="transitionTime", Tag=2, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="groupId", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="sceneId", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="transitionTime", Tag=2, Type=uint), ]) groupId: 'uint' = 0 @@ -1825,9 +1788,8 @@ class GetSceneMembership(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="groupId", Tag=0, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="groupId", Tag=0, Type=uint), ]) groupId: 'uint' = 0 @@ -1841,17 +1803,12 @@ class GetSceneMembershipResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="status", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="capacity", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="groupId", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="sceneCount", Tag=3, Type=uint), - ClusterObjectFieldDescriptor( - Label="sceneList", Tag=4, Type=typing.List[uint]), + Fields = [ + ClusterObjectFieldDescriptor(Label="status", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="capacity", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="groupId", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="sceneCount", Tag=3, Type=uint), + ClusterObjectFieldDescriptor(Label="sceneList", Tag=4, Type=typing.List[uint]), ]) status: 'uint' = 0 @@ -1869,25 +1826,19 @@ class EnhancedAddScene(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="groupId", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="sceneId", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="transitionTime", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="sceneName", Tag=3, Type=str), - ClusterObjectFieldDescriptor( - Label="extensionFieldSets", Tag=4, Type=typing.List[Scenes.Structs.SceneExtensionFieldSet]), + Fields = [ + ClusterObjectFieldDescriptor(Label="groupId", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="sceneId", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="transitionTime", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="sceneName", Tag=3, Type=str), + ClusterObjectFieldDescriptor(Label="extensionFieldSets", Tag=4, Type=typing.List[Scenes.Structs.SceneExtensionFieldSet]), ]) groupId: 'uint' = 0 sceneId: 'uint' = 0 transitionTime: 'uint' = 0 sceneName: 'str' = "" - extensionFieldSets: 'typing.List[Scenes.Structs.SceneExtensionFieldSet]' = field( - default_factory=lambda: []) + extensionFieldSets: 'typing.List[Scenes.Structs.SceneExtensionFieldSet]' = field(default_factory=lambda: []) @dataclass class EnhancedAddSceneResponse(ClusterCommand): @@ -1898,13 +1849,10 @@ class EnhancedAddSceneResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="status", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="groupId", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="sceneId", Tag=2, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="status", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="groupId", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="sceneId", Tag=2, Type=uint), ]) status: 'uint' = 0 @@ -1920,11 +1868,9 @@ class EnhancedViewScene(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="groupId", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="sceneId", Tag=1, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="groupId", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="sceneId", Tag=1, Type=uint), ]) groupId: 'uint' = 0 @@ -1939,19 +1885,13 @@ class EnhancedViewSceneResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="status", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="groupId", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="sceneId", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="transitionTime", Tag=3, Type=uint), - ClusterObjectFieldDescriptor( - Label="sceneName", Tag=4, Type=str), - ClusterObjectFieldDescriptor( - Label="extensionFieldSets", Tag=5, Type=typing.List[Scenes.Structs.SceneExtensionFieldSet]), + Fields = [ + ClusterObjectFieldDescriptor(Label="status", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="groupId", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="sceneId", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="transitionTime", Tag=3, Type=uint), + ClusterObjectFieldDescriptor(Label="sceneName", Tag=4, Type=str), + ClusterObjectFieldDescriptor(Label="extensionFieldSets", Tag=5, Type=typing.List[Scenes.Structs.SceneExtensionFieldSet]), ]) status: 'uint' = 0 @@ -1959,8 +1899,7 @@ def descriptor(cls) -> ClusterObjectDescriptor: sceneId: 'uint' = 0 transitionTime: 'uint' = 0 sceneName: 'str' = "" - extensionFieldSets: 'typing.List[Scenes.Structs.SceneExtensionFieldSet]' = field( - default_factory=lambda: []) + extensionFieldSets: 'typing.List[Scenes.Structs.SceneExtensionFieldSet]' = field(default_factory=lambda: []) @dataclass class CopyScene(ClusterCommand): @@ -1971,17 +1910,12 @@ class CopyScene(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="mode", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="groupIdFrom", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="sceneIdFrom", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="groupIdTo", Tag=3, Type=uint), - ClusterObjectFieldDescriptor( - Label="sceneIdTo", Tag=4, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="mode", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="groupIdFrom", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="sceneIdFrom", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="groupIdTo", Tag=3, Type=uint), + ClusterObjectFieldDescriptor(Label="sceneIdTo", Tag=4, Type=uint), ]) mode: 'uint' = 0 @@ -1999,19 +1933,17 @@ class CopySceneResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="status", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="groupIdFrom", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="sceneIdFrom", Tag=2, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="status", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="groupIdFrom", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="sceneIdFrom", Tag=2, Type=uint), ]) status: 'uint' = 0 groupIdFrom: 'uint' = 0 sceneIdFrom: 'uint' = 0 + class Attributes: @dataclass class SceneCount(ClusterAttributeDescriptor): @@ -2142,6 +2074,7 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class OnOff(Cluster): id: typing.ClassVar[int] = 0x0006 @@ -2159,6 +2092,8 @@ class OnOffEffectIdentifier(IntEnum): kDelayedAllOff = 0x00 kDyingLight = 0x01 + + class Commands: @dataclass class Off(ClusterCommand): @@ -2169,9 +2104,10 @@ class Off(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class On(ClusterCommand): cluster_id: typing.ClassVar[int] = 0x0006 @@ -2181,9 +2117,10 @@ class On(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class Toggle(ClusterCommand): cluster_id: typing.ClassVar[int] = 0x0006 @@ -2193,9 +2130,10 @@ class Toggle(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class OffWithEffect(ClusterCommand): cluster_id: typing.ClassVar[int] = 0x0006 @@ -2205,11 +2143,9 @@ class OffWithEffect(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="effectId", Tag=0, Type=OnOff.Enums.OnOffEffectIdentifier), - ClusterObjectFieldDescriptor( - Label="effectVariant", Tag=1, Type=OnOff.Enums.OnOffDelayedAllOffEffectVariant), + Fields = [ + ClusterObjectFieldDescriptor(Label="effectId", Tag=0, Type=OnOff.Enums.OnOffEffectIdentifier), + ClusterObjectFieldDescriptor(Label="effectVariant", Tag=1, Type=OnOff.Enums.OnOffDelayedAllOffEffectVariant), ]) effectId: 'OnOff.Enums.OnOffEffectIdentifier' = 0 @@ -2224,9 +2160,10 @@ class OnWithRecallGlobalScene(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class OnWithTimedOff(ClusterCommand): cluster_id: typing.ClassVar[int] = 0x0006 @@ -2236,19 +2173,17 @@ class OnWithTimedOff(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="onOffControl", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="onTime", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="offWaitTime", Tag=2, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="onOffControl", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="onTime", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="offWaitTime", Tag=2, Type=uint), ]) onOffControl: 'uint' = 0 onTime: 'uint' = 0 offWaitTime: 'uint' = 0 + class Attributes: @dataclass class OnOff(ClusterAttributeDescriptor): @@ -2363,10 +2298,14 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class OnOffSwitchConfiguration(Cluster): id: typing.ClassVar[int] = 0x0007 + + + class Attributes: @dataclass class SwitchType(ClusterAttributeDescriptor): @@ -2433,6 +2372,7 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class LevelControl(Cluster): id: typing.ClassVar[int] = 0x0008 @@ -2446,6 +2386,8 @@ class StepMode(IntEnum): kUp = 0x00 kDown = 0x01 + + class Commands: @dataclass class MoveToLevel(ClusterCommand): @@ -2456,15 +2398,11 @@ class MoveToLevel(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="level", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="transitionTime", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="optionMask", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="optionOverride", Tag=3, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="level", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="transitionTime", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="optionMask", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="optionOverride", Tag=3, Type=uint), ]) level: 'uint' = 0 @@ -2481,15 +2419,11 @@ class Move(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="moveMode", Tag=0, Type=LevelControl.Enums.MoveMode), - ClusterObjectFieldDescriptor( - Label="rate", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="optionMask", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="optionOverride", Tag=3, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="moveMode", Tag=0, Type=LevelControl.Enums.MoveMode), + ClusterObjectFieldDescriptor(Label="rate", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="optionMask", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="optionOverride", Tag=3, Type=uint), ]) moveMode: 'LevelControl.Enums.MoveMode' = 0 @@ -2506,17 +2440,12 @@ class Step(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="stepMode", Tag=0, Type=LevelControl.Enums.StepMode), - ClusterObjectFieldDescriptor( - Label="stepSize", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="transitionTime", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="optionMask", Tag=3, Type=uint), - ClusterObjectFieldDescriptor( - Label="optionOverride", Tag=4, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="stepMode", Tag=0, Type=LevelControl.Enums.StepMode), + ClusterObjectFieldDescriptor(Label="stepSize", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="transitionTime", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="optionMask", Tag=3, Type=uint), + ClusterObjectFieldDescriptor(Label="optionOverride", Tag=4, Type=uint), ]) stepMode: 'LevelControl.Enums.StepMode' = 0 @@ -2534,11 +2463,9 @@ class Stop(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="optionMask", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="optionOverride", Tag=1, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="optionMask", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="optionOverride", Tag=1, Type=uint), ]) optionMask: 'uint' = 0 @@ -2553,11 +2480,9 @@ class MoveToLevelWithOnOff(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="level", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="transitionTime", Tag=1, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="level", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="transitionTime", Tag=1, Type=uint), ]) level: 'uint' = 0 @@ -2572,11 +2497,9 @@ class MoveWithOnOff(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="moveMode", Tag=0, Type=LevelControl.Enums.MoveMode), - ClusterObjectFieldDescriptor( - Label="rate", Tag=1, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="moveMode", Tag=0, Type=LevelControl.Enums.MoveMode), + ClusterObjectFieldDescriptor(Label="rate", Tag=1, Type=uint), ]) moveMode: 'LevelControl.Enums.MoveMode' = 0 @@ -2591,13 +2514,10 @@ class StepWithOnOff(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="stepMode", Tag=0, Type=LevelControl.Enums.StepMode), - ClusterObjectFieldDescriptor( - Label="stepSize", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="transitionTime", Tag=2, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="stepMode", Tag=0, Type=LevelControl.Enums.StepMode), + ClusterObjectFieldDescriptor(Label="stepSize", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="transitionTime", Tag=2, Type=uint), ]) stepMode: 'LevelControl.Enums.StepMode' = 0 @@ -2613,9 +2533,11 @@ class StopWithOnOff(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + + class Attributes: @dataclass class CurrentLevel(ClusterAttributeDescriptor): @@ -2874,10 +2796,13 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class Alarms(Cluster): id: typing.ClassVar[int] = 0x0009 + + class Commands: @dataclass class ResetAlarm(ClusterCommand): @@ -2888,11 +2813,9 @@ class ResetAlarm(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="alarmCode", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="clusterId", Tag=1, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="alarmCode", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="clusterId", Tag=1, Type=uint), ]) alarmCode: 'uint' = 0 @@ -2907,11 +2830,9 @@ class Alarm(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="alarmCode", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="clusterId", Tag=1, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="alarmCode", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="clusterId", Tag=1, Type=uint), ]) alarmCode: 'uint' = 0 @@ -2926,9 +2847,10 @@ class ResetAllAlarms(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class GetAlarmResponse(ClusterCommand): cluster_id: typing.ClassVar[int] = 0x0009 @@ -2938,15 +2860,11 @@ class GetAlarmResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="status", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="alarmCode", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="clusterId", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="timeStamp", Tag=3, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="status", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="alarmCode", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="clusterId", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="timeStamp", Tag=3, Type=uint), ]) status: 'uint' = 0 @@ -2963,9 +2881,10 @@ class GetAlarm(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class ResetAlarmLog(ClusterCommand): cluster_id: typing.ClassVar[int] = 0x0009 @@ -2975,9 +2894,11 @@ class ResetAlarmLog(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + + class Attributes: @dataclass class AlarmCount(ClusterAttributeDescriptor): @@ -3028,10 +2949,14 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class Time(Cluster): id: typing.ClassVar[int] = 0x000A + + + class Attributes: @dataclass class Time(ClusterAttributeDescriptor): @@ -3226,10 +3151,14 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class BinaryInputBasic(Cluster): id: typing.ClassVar[int] = 0x000F + + + class Attributes: @dataclass class ActiveText(ClusterAttributeDescriptor): @@ -3408,25 +3337,23 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class PowerProfile(Cluster): id: typing.ClassVar[int] = 0x001A + class Structs: @dataclass class PowerProfileRecord(ClusterObject): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="powerProfileId", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="energyPhaseId", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="powerProfileRemoteControl", Tag=3, Type=bool), - ClusterObjectFieldDescriptor( - Label="powerProfileState", Tag=4, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="powerProfileId", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="energyPhaseId", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="powerProfileRemoteControl", Tag=3, Type=bool), + ClusterObjectFieldDescriptor(Label="powerProfileState", Tag=4, Type=uint), ]) powerProfileId: 'uint' = 0 @@ -3439,11 +3366,9 @@ class ScheduledPhase(ClusterObject): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="energyPhaseId", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="scheduledTime", Tag=2, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="energyPhaseId", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="scheduledTime", Tag=2, Type=uint), ]) energyPhaseId: 'uint' = 0 @@ -3454,19 +3379,13 @@ class TransferredPhase(ClusterObject): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="energyPhaseId", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="macroPhaseId", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="expectedDuration", Tag=3, Type=uint), - ClusterObjectFieldDescriptor( - Label="peakPower", Tag=4, Type=uint), - ClusterObjectFieldDescriptor( - Label="energy", Tag=5, Type=uint), - ClusterObjectFieldDescriptor( - Label="maxActivationDelay", Tag=6, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="energyPhaseId", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="macroPhaseId", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="expectedDuration", Tag=3, Type=uint), + ClusterObjectFieldDescriptor(Label="peakPower", Tag=4, Type=uint), + ClusterObjectFieldDescriptor(Label="energy", Tag=5, Type=uint), + ClusterObjectFieldDescriptor(Label="maxActivationDelay", Tag=6, Type=uint), ]) energyPhaseId: 'uint' = 0 @@ -3476,6 +3395,8 @@ def descriptor(cls) -> ClusterObjectDescriptor: energy: 'uint' = 0 maxActivationDelay: 'uint' = 0 + + class Commands: @dataclass class PowerProfileRequest(ClusterCommand): @@ -3486,9 +3407,8 @@ class PowerProfileRequest(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="powerProfileId", Tag=0, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="powerProfileId", Tag=0, Type=uint), ]) powerProfileId: 'uint' = 0 @@ -3502,22 +3422,17 @@ class PowerProfileNotification(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="totalProfileNum", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="powerProfileId", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="numOfTransferredPhases", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="transferredPhases", Tag=3, Type=typing.List[PowerProfile.Structs.TransferredPhase]), + Fields = [ + ClusterObjectFieldDescriptor(Label="totalProfileNum", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="powerProfileId", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="numOfTransferredPhases", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="transferredPhases", Tag=3, Type=typing.List[PowerProfile.Structs.TransferredPhase]), ]) totalProfileNum: 'uint' = 0 powerProfileId: 'uint' = 0 numOfTransferredPhases: 'uint' = 0 - transferredPhases: 'typing.List[PowerProfile.Structs.TransferredPhase]' = field( - default_factory=lambda: []) + transferredPhases: 'typing.List[PowerProfile.Structs.TransferredPhase]' = field(default_factory=lambda: []) @dataclass class PowerProfileStateRequest(ClusterCommand): @@ -3528,9 +3443,10 @@ class PowerProfileStateRequest(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class PowerProfileResponse(ClusterCommand): cluster_id: typing.ClassVar[int] = 0x001A @@ -3540,22 +3456,17 @@ class PowerProfileResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="totalProfileNum", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="powerProfileId", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="numOfTransferredPhases", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="transferredPhases", Tag=3, Type=typing.List[PowerProfile.Structs.TransferredPhase]), + Fields = [ + ClusterObjectFieldDescriptor(Label="totalProfileNum", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="powerProfileId", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="numOfTransferredPhases", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="transferredPhases", Tag=3, Type=typing.List[PowerProfile.Structs.TransferredPhase]), ]) totalProfileNum: 'uint' = 0 powerProfileId: 'uint' = 0 numOfTransferredPhases: 'uint' = 0 - transferredPhases: 'typing.List[PowerProfile.Structs.TransferredPhase]' = field( - default_factory=lambda: []) + transferredPhases: 'typing.List[PowerProfile.Structs.TransferredPhase]' = field(default_factory=lambda: []) @dataclass class GetPowerProfilePriceResponse(ClusterCommand): @@ -3566,15 +3477,11 @@ class GetPowerProfilePriceResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="powerProfileId", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="currency", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="price", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="priceTrailingDigit", Tag=3, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="powerProfileId", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="currency", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="price", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="priceTrailingDigit", Tag=3, Type=uint), ]) powerProfileId: 'uint' = 0 @@ -3591,16 +3498,13 @@ class PowerProfileStateResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="powerProfileCount", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="powerProfileRecords", Tag=1, Type=typing.List[PowerProfile.Structs.PowerProfileRecord]), + Fields = [ + ClusterObjectFieldDescriptor(Label="powerProfileCount", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="powerProfileRecords", Tag=1, Type=typing.List[PowerProfile.Structs.PowerProfileRecord]), ]) powerProfileCount: 'uint' = 0 - powerProfileRecords: 'typing.List[PowerProfile.Structs.PowerProfileRecord]' = field( - default_factory=lambda: []) + powerProfileRecords: 'typing.List[PowerProfile.Structs.PowerProfileRecord]' = field(default_factory=lambda: []) @dataclass class GetOverallSchedulePriceResponse(ClusterCommand): @@ -3611,13 +3515,10 @@ class GetOverallSchedulePriceResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="currency", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="price", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="priceTrailingDigit", Tag=2, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="currency", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="price", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="priceTrailingDigit", Tag=2, Type=uint), ]) currency: 'uint' = 0 @@ -3633,9 +3534,8 @@ class GetPowerProfilePrice(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="powerProfileId", Tag=0, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="powerProfileId", Tag=0, Type=uint), ]) powerProfileId: 'uint' = 0 @@ -3649,19 +3549,15 @@ class EnergyPhasesScheduleNotification(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="powerProfileId", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="numOfScheduledPhases", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="scheduledPhases", Tag=2, Type=typing.List[PowerProfile.Structs.ScheduledPhase]), + Fields = [ + ClusterObjectFieldDescriptor(Label="powerProfileId", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="numOfScheduledPhases", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="scheduledPhases", Tag=2, Type=typing.List[PowerProfile.Structs.ScheduledPhase]), ]) powerProfileId: 'uint' = 0 numOfScheduledPhases: 'uint' = 0 - scheduledPhases: 'typing.List[PowerProfile.Structs.ScheduledPhase]' = field( - default_factory=lambda: []) + scheduledPhases: 'typing.List[PowerProfile.Structs.ScheduledPhase]' = field(default_factory=lambda: []) @dataclass class PowerProfilesStateNotification(ClusterCommand): @@ -3672,16 +3568,13 @@ class PowerProfilesStateNotification(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="powerProfileCount", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="powerProfileRecords", Tag=1, Type=typing.List[PowerProfile.Structs.PowerProfileRecord]), + Fields = [ + ClusterObjectFieldDescriptor(Label="powerProfileCount", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="powerProfileRecords", Tag=1, Type=typing.List[PowerProfile.Structs.PowerProfileRecord]), ]) powerProfileCount: 'uint' = 0 - powerProfileRecords: 'typing.List[PowerProfile.Structs.PowerProfileRecord]' = field( - default_factory=lambda: []) + powerProfileRecords: 'typing.List[PowerProfile.Structs.PowerProfileRecord]' = field(default_factory=lambda: []) @dataclass class EnergyPhasesScheduleResponse(ClusterCommand): @@ -3692,19 +3585,15 @@ class EnergyPhasesScheduleResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="powerProfileId", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="numOfScheduledPhases", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="scheduledPhases", Tag=2, Type=typing.List[PowerProfile.Structs.ScheduledPhase]), + Fields = [ + ClusterObjectFieldDescriptor(Label="powerProfileId", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="numOfScheduledPhases", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="scheduledPhases", Tag=2, Type=typing.List[PowerProfile.Structs.ScheduledPhase]), ]) powerProfileId: 'uint' = 0 numOfScheduledPhases: 'uint' = 0 - scheduledPhases: 'typing.List[PowerProfile.Structs.ScheduledPhase]' = field( - default_factory=lambda: []) + scheduledPhases: 'typing.List[PowerProfile.Structs.ScheduledPhase]' = field(default_factory=lambda: []) @dataclass class GetOverallSchedulePrice(ClusterCommand): @@ -3715,9 +3604,10 @@ class GetOverallSchedulePrice(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class PowerProfileScheduleConstraintsRequest(ClusterCommand): cluster_id: typing.ClassVar[int] = 0x001A @@ -3727,9 +3617,8 @@ class PowerProfileScheduleConstraintsRequest(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="powerProfileId", Tag=0, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="powerProfileId", Tag=0, Type=uint), ]) powerProfileId: 'uint' = 0 @@ -3743,9 +3632,8 @@ class EnergyPhasesScheduleRequest(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="powerProfileId", Tag=0, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="powerProfileId", Tag=0, Type=uint), ]) powerProfileId: 'uint' = 0 @@ -3759,9 +3647,8 @@ class EnergyPhasesScheduleStateRequest(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="powerProfileId", Tag=0, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="powerProfileId", Tag=0, Type=uint), ]) powerProfileId: 'uint' = 0 @@ -3775,19 +3662,15 @@ class EnergyPhasesScheduleStateResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="powerProfileId", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="numOfScheduledPhases", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="scheduledPhases", Tag=2, Type=typing.List[PowerProfile.Structs.ScheduledPhase]), + Fields = [ + ClusterObjectFieldDescriptor(Label="powerProfileId", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="numOfScheduledPhases", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="scheduledPhases", Tag=2, Type=typing.List[PowerProfile.Structs.ScheduledPhase]), ]) powerProfileId: 'uint' = 0 numOfScheduledPhases: 'uint' = 0 - scheduledPhases: 'typing.List[PowerProfile.Structs.ScheduledPhase]' = field( - default_factory=lambda: []) + scheduledPhases: 'typing.List[PowerProfile.Structs.ScheduledPhase]' = field(default_factory=lambda: []) @dataclass class GetPowerProfilePriceExtendedResponse(ClusterCommand): @@ -3798,15 +3681,11 @@ class GetPowerProfilePriceExtendedResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="powerProfileId", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="currency", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="price", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="priceTrailingDigit", Tag=3, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="powerProfileId", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="currency", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="price", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="priceTrailingDigit", Tag=3, Type=uint), ]) powerProfileId: 'uint' = 0 @@ -3823,19 +3702,15 @@ class EnergyPhasesScheduleStateNotification(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="powerProfileId", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="numOfScheduledPhases", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="scheduledPhases", Tag=2, Type=typing.List[PowerProfile.Structs.ScheduledPhase]), + Fields = [ + ClusterObjectFieldDescriptor(Label="powerProfileId", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="numOfScheduledPhases", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="scheduledPhases", Tag=2, Type=typing.List[PowerProfile.Structs.ScheduledPhase]), ]) powerProfileId: 'uint' = 0 numOfScheduledPhases: 'uint' = 0 - scheduledPhases: 'typing.List[PowerProfile.Structs.ScheduledPhase]' = field( - default_factory=lambda: []) + scheduledPhases: 'typing.List[PowerProfile.Structs.ScheduledPhase]' = field(default_factory=lambda: []) @dataclass class PowerProfileScheduleConstraintsNotification(ClusterCommand): @@ -3846,13 +3721,10 @@ class PowerProfileScheduleConstraintsNotification(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="powerProfileId", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="startAfter", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="stopBefore", Tag=2, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="powerProfileId", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="startAfter", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="stopBefore", Tag=2, Type=uint), ]) powerProfileId: 'uint' = 0 @@ -3868,13 +3740,10 @@ class PowerProfileScheduleConstraintsResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="powerProfileId", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="startAfter", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="stopBefore", Tag=2, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="powerProfileId", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="startAfter", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="stopBefore", Tag=2, Type=uint), ]) powerProfileId: 'uint' = 0 @@ -3890,19 +3759,17 @@ class GetPowerProfilePriceExtended(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="options", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="powerProfileId", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="powerProfileStartTime", Tag=2, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="options", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="powerProfileId", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="powerProfileStartTime", Tag=2, Type=uint), ]) options: 'uint' = 0 powerProfileId: 'uint' = 0 powerProfileStartTime: 'uint' = 0 + class Attributes: @dataclass class TotalProfileNum(ClusterAttributeDescriptor): @@ -4017,6 +3884,7 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class ApplianceControl(Cluster): id: typing.ClassVar[int] = 0x001B @@ -4059,6 +3927,8 @@ class WarningEvent(IntEnum): kWarning4OverallPowerBackBelowThePowerThresholdLevel = 0x03 kWarning5OverallPowerWillBePotentiallyAboveAvailablePowerLevelIfTheApplianceStarts = 0x04 + + class Commands: @dataclass class ExecutionOfACommand(ClusterCommand): @@ -4069,9 +3939,8 @@ class ExecutionOfACommand(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="commandId", Tag=0, Type=ApplianceControl.Enums.CommandIdentification), + Fields = [ + ClusterObjectFieldDescriptor(Label="commandId", Tag=0, Type=ApplianceControl.Enums.CommandIdentification), ]) commandId: 'ApplianceControl.Enums.CommandIdentification' = 0 @@ -4085,13 +3954,10 @@ class SignalStateResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="applianceStatus", Tag=0, Type=ApplianceControl.Enums.ApplianceStatus), - ClusterObjectFieldDescriptor( - Label="remoteEnableFlagsAndDeviceStatus2", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="applianceStatus2", Tag=2, Type=ApplianceControl.Enums.ApplianceStatus), + Fields = [ + ClusterObjectFieldDescriptor(Label="applianceStatus", Tag=0, Type=ApplianceControl.Enums.ApplianceStatus), + ClusterObjectFieldDescriptor(Label="remoteEnableFlagsAndDeviceStatus2", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="applianceStatus2", Tag=2, Type=ApplianceControl.Enums.ApplianceStatus), ]) applianceStatus: 'ApplianceControl.Enums.ApplianceStatus' = 0 @@ -4107,9 +3973,10 @@ class SignalState(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class SignalStateNotification(ClusterCommand): cluster_id: typing.ClassVar[int] = 0x001B @@ -4119,13 +3986,10 @@ class SignalStateNotification(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="applianceStatus", Tag=0, Type=ApplianceControl.Enums.ApplianceStatus), - ClusterObjectFieldDescriptor( - Label="remoteEnableFlagsAndDeviceStatus2", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="applianceStatus2", Tag=2, Type=ApplianceControl.Enums.ApplianceStatus), + Fields = [ + ClusterObjectFieldDescriptor(Label="applianceStatus", Tag=0, Type=ApplianceControl.Enums.ApplianceStatus), + ClusterObjectFieldDescriptor(Label="remoteEnableFlagsAndDeviceStatus2", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="applianceStatus2", Tag=2, Type=ApplianceControl.Enums.ApplianceStatus), ]) applianceStatus: 'ApplianceControl.Enums.ApplianceStatus' = 0 @@ -4141,19 +4005,15 @@ class WriteFunctions(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="functionId", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="functionDataType", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="functionData", Tag=2, Type=typing.List[uint]), + Fields = [ + ClusterObjectFieldDescriptor(Label="functionId", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="functionDataType", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="functionData", Tag=2, Type=typing.List[uint]), ]) functionId: 'uint' = 0 functionDataType: 'uint' = 0 - functionData: 'typing.List[uint]' = field( - default_factory=lambda: []) + functionData: 'typing.List[uint]' = field(default_factory=lambda: []) @dataclass class OverloadPauseResume(ClusterCommand): @@ -4164,9 +4024,10 @@ class OverloadPauseResume(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class OverloadPause(ClusterCommand): cluster_id: typing.ClassVar[int] = 0x001B @@ -4176,9 +4037,10 @@ class OverloadPause(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class OverloadWarning(ClusterCommand): cluster_id: typing.ClassVar[int] = 0x001B @@ -4188,13 +4050,13 @@ class OverloadWarning(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="warningEvent", Tag=0, Type=ApplianceControl.Enums.WarningEvent), + Fields = [ + ClusterObjectFieldDescriptor(Label="warningEvent", Tag=0, Type=ApplianceControl.Enums.WarningEvent), ]) warningEvent: 'ApplianceControl.Enums.WarningEvent' = 0 + class Attributes: @dataclass class StartTime(ClusterAttributeDescriptor): @@ -4277,10 +4139,14 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class PulseWidthModulation(Cluster): id: typing.ClassVar[int] = 0x001C + + + class Attributes: @dataclass class FeatureMap(ClusterAttributeDescriptor): @@ -4315,26 +4181,29 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class Descriptor(Cluster): id: typing.ClassVar[int] = 0x001D + class Structs: @dataclass class DeviceType(ClusterObject): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="type", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="revision", Tag=2, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="type", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="revision", Tag=2, Type=uint), ]) type: 'uint' = 0 revision: 'uint' = 0 + + + class Attributes: @dataclass class DeviceList(ClusterAttributeDescriptor): @@ -4350,8 +4219,7 @@ def attribute_id(cls) -> int: def attribute_type(cls) -> ClusterObjectFieldDescriptor: return ClusterObjectFieldDescriptor(Type=typing.List[Descriptor.Structs.DeviceType]) - value: 'typing.List[Descriptor.Structs.DeviceType]' = field( - default_factory=lambda: []) + value: 'typing.List[Descriptor.Structs.DeviceType]' = field(default_factory=lambda: []) @dataclass class ServerList(ClusterAttributeDescriptor): @@ -4434,10 +4302,13 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class Binding(Cluster): id: typing.ClassVar[int] = 0x001E + + class Commands: @dataclass class Bind(ClusterCommand): @@ -4448,15 +4319,11 @@ class Bind(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="nodeId", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="groupId", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="endpointId", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="clusterId", Tag=3, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="nodeId", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="groupId", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="endpointId", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="clusterId", Tag=3, Type=uint), ]) nodeId: 'uint' = 0 @@ -4473,15 +4340,11 @@ class Unbind(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="nodeId", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="groupId", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="endpointId", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="clusterId", Tag=3, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="nodeId", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="groupId", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="endpointId", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="clusterId", Tag=3, Type=uint), ]) nodeId: 'uint' = 0 @@ -4489,6 +4352,7 @@ def descriptor(cls) -> ClusterObjectDescriptor: endpointId: 'uint' = 0 clusterId: 'uint' = 0 + class Attributes: @dataclass class FeatureMap(ClusterAttributeDescriptor): @@ -4523,6 +4387,7 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class AccessControl(Cluster): id: typing.ClassVar[int] = 0x001F @@ -4540,19 +4405,17 @@ class Privilege(IntEnum): kManage = 0x04 kAdminister = 0x05 + class Structs: @dataclass class Target(ClusterObject): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="cluster", Tag=0, Type=typing.Union[Nullable, uint]), - ClusterObjectFieldDescriptor( - Label="endpoint", Tag=1, Type=typing.Union[Nullable, uint]), - ClusterObjectFieldDescriptor( - Label="deviceType", Tag=2, Type=typing.Union[Nullable, uint]), + Fields = [ + ClusterObjectFieldDescriptor(Label="cluster", Tag=0, Type=typing.Union[Nullable, uint]), + ClusterObjectFieldDescriptor(Label="endpoint", Tag=1, Type=typing.Union[Nullable, uint]), + ClusterObjectFieldDescriptor(Label="deviceType", Tag=2, Type=typing.Union[Nullable, uint]), ]) cluster: 'typing.Union[Nullable, uint]' = NullValue @@ -4564,17 +4427,12 @@ class AccessControlEntry(ClusterObject): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="fabricIndex", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="privilege", Tag=1, Type=AccessControl.Enums.Privilege), - ClusterObjectFieldDescriptor( - Label="authMode", Tag=2, Type=AccessControl.Enums.AuthMode), - ClusterObjectFieldDescriptor( - Label="subjects", Tag=3, Type=typing.Union[Nullable, typing.List[uint]]), - ClusterObjectFieldDescriptor( - Label="targets", Tag=4, Type=typing.Union[Nullable, typing.List[AccessControl.Structs.Target]]), + Fields = [ + ClusterObjectFieldDescriptor(Label="fabricIndex", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="privilege", Tag=1, Type=AccessControl.Enums.Privilege), + ClusterObjectFieldDescriptor(Label="authMode", Tag=2, Type=AccessControl.Enums.AuthMode), + ClusterObjectFieldDescriptor(Label="subjects", Tag=3, Type=typing.Union[Nullable, typing.List[uint]]), + ClusterObjectFieldDescriptor(Label="targets", Tag=4, Type=typing.Union[Nullable, typing.List[AccessControl.Structs.Target]]), ]) fabricIndex: 'uint' = 0 @@ -4588,16 +4446,17 @@ class ExtensionEntry(ClusterObject): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="fabricIndex", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="data", Tag=1, Type=bytes), + Fields = [ + ClusterObjectFieldDescriptor(Label="fabricIndex", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="data", Tag=1, Type=bytes), ]) fabricIndex: 'uint' = 0 data: 'bytes' = b"" + + + class Attributes: @dataclass class Acl(ClusterAttributeDescriptor): @@ -4613,8 +4472,7 @@ def attribute_id(cls) -> int: def attribute_type(cls) -> ClusterObjectFieldDescriptor: return ClusterObjectFieldDescriptor(Type=typing.List[AccessControl.Structs.AccessControlEntry]) - value: 'typing.List[AccessControl.Structs.AccessControlEntry]' = field( - default_factory=lambda: []) + value: 'typing.List[AccessControl.Structs.AccessControlEntry]' = field(default_factory=lambda: []) @dataclass class Extension(ClusterAttributeDescriptor): @@ -4630,8 +4488,7 @@ def attribute_id(cls) -> int: def attribute_type(cls) -> ClusterObjectFieldDescriptor: return ClusterObjectFieldDescriptor(Type=typing.List[AccessControl.Structs.ExtensionEntry]) - value: 'typing.List[AccessControl.Structs.ExtensionEntry]' = field( - default_factory=lambda: []) + value: 'typing.List[AccessControl.Structs.ExtensionEntry]' = field(default_factory=lambda: []) @dataclass class FeatureMap(ClusterAttributeDescriptor): @@ -4666,10 +4523,13 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class PollControl(Cluster): id: typing.ClassVar[int] = 0x0020 + + class Commands: @dataclass class CheckIn(ClusterCommand): @@ -4680,9 +4540,10 @@ class CheckIn(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class CheckInResponse(ClusterCommand): cluster_id: typing.ClassVar[int] = 0x0020 @@ -4692,11 +4553,9 @@ class CheckInResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="startFastPolling", Tag=0, Type=bool), - ClusterObjectFieldDescriptor( - Label="fastPollTimeout", Tag=1, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="startFastPolling", Tag=0, Type=bool), + ClusterObjectFieldDescriptor(Label="fastPollTimeout", Tag=1, Type=uint), ]) startFastPolling: 'bool' = False @@ -4711,9 +4570,10 @@ class FastPollStop(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class SetLongPollInterval(ClusterCommand): cluster_id: typing.ClassVar[int] = 0x0020 @@ -4723,9 +4583,8 @@ class SetLongPollInterval(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="newLongPollInterval", Tag=0, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="newLongPollInterval", Tag=0, Type=uint), ]) newLongPollInterval: 'uint' = 0 @@ -4739,13 +4598,13 @@ class SetShortPollInterval(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="newShortPollInterval", Tag=0, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="newShortPollInterval", Tag=0, Type=uint), ]) newShortPollInterval: 'uint' = 0 + class Attributes: @dataclass class CheckInInterval(ClusterAttributeDescriptor): @@ -4892,6 +4751,7 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class BridgedActions(Cluster): id: typing.ClassVar[int] = 0x0025 @@ -4921,25 +4781,20 @@ class EndpointListTypeEnum(IntEnum): kRoom = 0x01 kZone = 0x02 + class Structs: @dataclass class ActionStruct(ClusterObject): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="actionID", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="name", Tag=2, Type=str), - ClusterObjectFieldDescriptor( - Label="type", Tag=3, Type=BridgedActions.Enums.ActionTypeEnum), - ClusterObjectFieldDescriptor( - Label="endpointListID", Tag=4, Type=uint), - ClusterObjectFieldDescriptor( - Label="supportedCommands", Tag=5, Type=uint), - ClusterObjectFieldDescriptor( - Label="status", Tag=6, Type=BridgedActions.Enums.ActionStatusEnum), + Fields = [ + ClusterObjectFieldDescriptor(Label="actionID", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="name", Tag=2, Type=str), + ClusterObjectFieldDescriptor(Label="type", Tag=3, Type=BridgedActions.Enums.ActionTypeEnum), + ClusterObjectFieldDescriptor(Label="endpointListID", Tag=4, Type=uint), + ClusterObjectFieldDescriptor(Label="supportedCommands", Tag=5, Type=uint), + ClusterObjectFieldDescriptor(Label="status", Tag=6, Type=BridgedActions.Enums.ActionStatusEnum), ]) actionID: 'uint' = 0 @@ -4954,15 +4809,11 @@ class EndpointListStruct(ClusterObject): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="endpointListID", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="name", Tag=2, Type=str), - ClusterObjectFieldDescriptor( - Label="type", Tag=3, Type=BridgedActions.Enums.EndpointListTypeEnum), - ClusterObjectFieldDescriptor( - Label="endpoints", Tag=4, Type=typing.List[uint]), + Fields = [ + ClusterObjectFieldDescriptor(Label="endpointListID", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="name", Tag=2, Type=str), + ClusterObjectFieldDescriptor(Label="type", Tag=3, Type=BridgedActions.Enums.EndpointListTypeEnum), + ClusterObjectFieldDescriptor(Label="endpoints", Tag=4, Type=typing.List[uint]), ]) endpointListID: 'uint' = 0 @@ -4970,6 +4821,8 @@ def descriptor(cls) -> ClusterObjectDescriptor: type: 'BridgedActions.Enums.EndpointListTypeEnum' = 0 endpoints: 'typing.List[uint]' = field(default_factory=lambda: []) + + class Commands: @dataclass class InstantAction(ClusterCommand): @@ -4980,11 +4833,9 @@ class InstantAction(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="actionID", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="invokeID", Tag=1, Type=typing.Optional[uint]), + Fields = [ + ClusterObjectFieldDescriptor(Label="actionID", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="invokeID", Tag=1, Type=typing.Optional[uint]), ]) actionID: 'uint' = 0 @@ -4999,13 +4850,10 @@ class InstantActionWithTransition(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="actionID", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="invokeID", Tag=1, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor( - Label="transitionTime", Tag=2, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="actionID", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="invokeID", Tag=1, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="transitionTime", Tag=2, Type=uint), ]) actionID: 'uint' = 0 @@ -5021,11 +4869,9 @@ class StartAction(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="actionID", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="invokeID", Tag=1, Type=typing.Optional[uint]), + Fields = [ + ClusterObjectFieldDescriptor(Label="actionID", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="invokeID", Tag=1, Type=typing.Optional[uint]), ]) actionID: 'uint' = 0 @@ -5040,13 +4886,10 @@ class StartActionWithDuration(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="actionID", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="invokeID", Tag=1, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor( - Label="duration", Tag=2, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="actionID", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="invokeID", Tag=1, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="duration", Tag=2, Type=uint), ]) actionID: 'uint' = 0 @@ -5062,11 +4905,9 @@ class StopAction(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="actionID", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="invokeID", Tag=1, Type=typing.Optional[uint]), + Fields = [ + ClusterObjectFieldDescriptor(Label="actionID", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="invokeID", Tag=1, Type=typing.Optional[uint]), ]) actionID: 'uint' = 0 @@ -5081,11 +4922,9 @@ class PauseAction(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="actionID", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="invokeID", Tag=1, Type=typing.Optional[uint]), + Fields = [ + ClusterObjectFieldDescriptor(Label="actionID", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="invokeID", Tag=1, Type=typing.Optional[uint]), ]) actionID: 'uint' = 0 @@ -5100,13 +4939,10 @@ class PauseActionWithDuration(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="actionID", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="invokeID", Tag=1, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor( - Label="duration", Tag=2, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="actionID", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="invokeID", Tag=1, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="duration", Tag=2, Type=uint), ]) actionID: 'uint' = 0 @@ -5122,11 +4958,9 @@ class ResumeAction(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="actionID", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="invokeID", Tag=1, Type=typing.Optional[uint]), + Fields = [ + ClusterObjectFieldDescriptor(Label="actionID", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="invokeID", Tag=1, Type=typing.Optional[uint]), ]) actionID: 'uint' = 0 @@ -5141,11 +4975,9 @@ class EnableAction(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="actionID", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="invokeID", Tag=1, Type=typing.Optional[uint]), + Fields = [ + ClusterObjectFieldDescriptor(Label="actionID", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="invokeID", Tag=1, Type=typing.Optional[uint]), ]) actionID: 'uint' = 0 @@ -5160,13 +4992,10 @@ class EnableActionWithDuration(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="actionID", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="invokeID", Tag=1, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor( - Label="duration", Tag=2, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="actionID", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="invokeID", Tag=1, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="duration", Tag=2, Type=uint), ]) actionID: 'uint' = 0 @@ -5182,11 +5011,9 @@ class DisableAction(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="actionID", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="invokeID", Tag=1, Type=typing.Optional[uint]), + Fields = [ + ClusterObjectFieldDescriptor(Label="actionID", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="invokeID", Tag=1, Type=typing.Optional[uint]), ]) actionID: 'uint' = 0 @@ -5201,19 +5028,17 @@ class DisableActionWithDuration(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="actionID", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="invokeID", Tag=1, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor( - Label="duration", Tag=2, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="actionID", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="invokeID", Tag=1, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="duration", Tag=2, Type=uint), ]) actionID: 'uint' = 0 invokeID: 'typing.Optional[uint]' = None duration: 'uint' = 0 + class Attributes: @dataclass class ActionList(ClusterAttributeDescriptor): @@ -5229,8 +5054,7 @@ def attribute_id(cls) -> int: def attribute_type(cls) -> ClusterObjectFieldDescriptor: return ClusterObjectFieldDescriptor(Type=typing.List[BridgedActions.Structs.ActionStruct]) - value: 'typing.List[BridgedActions.Structs.ActionStruct]' = field( - default_factory=lambda: []) + value: 'typing.List[BridgedActions.Structs.ActionStruct]' = field(default_factory=lambda: []) @dataclass class EndpointList(ClusterAttributeDescriptor): @@ -5246,8 +5070,7 @@ def attribute_id(cls) -> int: def attribute_type(cls) -> ClusterObjectFieldDescriptor: return ClusterObjectFieldDescriptor(Type=typing.List[BridgedActions.Structs.EndpointListStruct]) - value: 'typing.List[BridgedActions.Structs.EndpointListStruct]' = field( - default_factory=lambda: []) + value: 'typing.List[BridgedActions.Structs.EndpointListStruct]' = field(default_factory=lambda: []) @dataclass class SetupUrl(ClusterAttributeDescriptor): @@ -5298,10 +5121,13 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class Basic(Cluster): id: typing.ClassVar[int] = 0x0028 + + class Commands: @dataclass class StartUp(ClusterCommand): @@ -5312,9 +5138,10 @@ class StartUp(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class MfgSpecificPing(ClusterCommand): cluster_id: typing.ClassVar[int] = 0x0028 @@ -5324,9 +5151,10 @@ class MfgSpecificPing(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class ShutDown(ClusterCommand): cluster_id: typing.ClassVar[int] = 0x0028 @@ -5336,9 +5164,10 @@ class ShutDown(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class Leave(ClusterCommand): cluster_id: typing.ClassVar[int] = 0x0028 @@ -5348,9 +5177,11 @@ class Leave(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + + class Attributes: @dataclass class InteractionModelVersion(ClusterAttributeDescriptor): @@ -5688,6 +5519,7 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + class Events: @dataclass class StartUp(ClusterEventDescriptor): @@ -5697,9 +5529,8 @@ class StartUp(ClusterEventDescriptor): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="softwareVersion", Tag=0, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="softwareVersion", Tag=0, Type=uint), ]) softwareVersion: 'uint' = 0 @@ -5712,9 +5543,10 @@ class ShutDown(ClusterEventDescriptor): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class Leave(ClusterEventDescriptor): cluster_id: typing.ClassVar[int] = 0x0028 @@ -5723,9 +5555,10 @@ class Leave(ClusterEventDescriptor): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class ReachableChanged(ClusterEventDescriptor): cluster_id: typing.ClassVar[int] = 0x0028 @@ -5734,9 +5567,8 @@ class ReachableChanged(ClusterEventDescriptor): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="reachableNewValue", Tag=0, Type=bool), + Fields = [ + ClusterObjectFieldDescriptor(Label="reachableNewValue", Tag=0, Type=bool), ]) reachableNewValue: 'bool' = False @@ -5763,6 +5595,8 @@ class OTAQueryStatus(IntEnum): kBusy = 0x01 kNotAvailable = 0x02 + + class Commands: @dataclass class QueryImage(ClusterCommand): @@ -5773,30 +5607,21 @@ class QueryImage(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="vendorId", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="productId", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="softwareVersion", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="protocolsSupported", Tag=3, Type=typing.List[OtaSoftwareUpdateProvider.Enums.OTADownloadProtocol]), - ClusterObjectFieldDescriptor( - Label="hardwareVersion", Tag=4, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor( - Label="location", Tag=5, Type=typing.Optional[str]), - ClusterObjectFieldDescriptor( - Label="requestorCanConsent", Tag=6, Type=typing.Optional[bool]), - ClusterObjectFieldDescriptor( - Label="metadataForProvider", Tag=7, Type=typing.Optional[bytes]), + Fields = [ + ClusterObjectFieldDescriptor(Label="vendorId", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="productId", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="softwareVersion", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="protocolsSupported", Tag=3, Type=typing.List[OtaSoftwareUpdateProvider.Enums.OTADownloadProtocol]), + ClusterObjectFieldDescriptor(Label="hardwareVersion", Tag=4, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="location", Tag=5, Type=typing.Optional[str]), + ClusterObjectFieldDescriptor(Label="requestorCanConsent", Tag=6, Type=typing.Optional[bool]), + ClusterObjectFieldDescriptor(Label="metadataForProvider", Tag=7, Type=typing.Optional[bytes]), ]) vendorId: 'uint' = 0 productId: 'uint' = 0 softwareVersion: 'uint' = 0 - protocolsSupported: 'typing.List[OtaSoftwareUpdateProvider.Enums.OTADownloadProtocol]' = field( - default_factory=lambda: []) + protocolsSupported: 'typing.List[OtaSoftwareUpdateProvider.Enums.OTADownloadProtocol]' = field(default_factory=lambda: []) hardwareVersion: 'typing.Optional[uint]' = None location: 'typing.Optional[str]' = None requestorCanConsent: 'typing.Optional[bool]' = None @@ -5811,11 +5636,9 @@ class ApplyUpdateRequest(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="updateToken", Tag=0, Type=bytes), - ClusterObjectFieldDescriptor( - Label="newVersion", Tag=1, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="updateToken", Tag=0, Type=bytes), + ClusterObjectFieldDescriptor(Label="newVersion", Tag=1, Type=uint), ]) updateToken: 'bytes' = b"" @@ -5830,11 +5653,9 @@ class NotifyUpdateApplied(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="updateToken", Tag=0, Type=bytes), - ClusterObjectFieldDescriptor( - Label="softwareVersion", Tag=1, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="updateToken", Tag=0, Type=bytes), + ClusterObjectFieldDescriptor(Label="softwareVersion", Tag=1, Type=uint), ]) updateToken: 'bytes' = b"" @@ -5849,23 +5670,15 @@ class QueryImageResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="status", Tag=0, Type=OtaSoftwareUpdateProvider.Enums.OTAQueryStatus), - ClusterObjectFieldDescriptor( - Label="delayedActionTime", Tag=1, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor( - Label="imageURI", Tag=2, Type=typing.Optional[str]), - ClusterObjectFieldDescriptor( - Label="softwareVersion", Tag=3, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor( - Label="softwareVersionString", Tag=4, Type=typing.Optional[str]), - ClusterObjectFieldDescriptor( - Label="updateToken", Tag=5, Type=typing.Optional[bytes]), - ClusterObjectFieldDescriptor( - Label="userConsentNeeded", Tag=6, Type=typing.Optional[bool]), - ClusterObjectFieldDescriptor( - Label="metadataForRequestor", Tag=7, Type=typing.Optional[bytes]), + Fields = [ + ClusterObjectFieldDescriptor(Label="status", Tag=0, Type=OtaSoftwareUpdateProvider.Enums.OTAQueryStatus), + ClusterObjectFieldDescriptor(Label="delayedActionTime", Tag=1, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="imageURI", Tag=2, Type=typing.Optional[str]), + ClusterObjectFieldDescriptor(Label="softwareVersion", Tag=3, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="softwareVersionString", Tag=4, Type=typing.Optional[str]), + ClusterObjectFieldDescriptor(Label="updateToken", Tag=5, Type=typing.Optional[bytes]), + ClusterObjectFieldDescriptor(Label="userConsentNeeded", Tag=6, Type=typing.Optional[bool]), + ClusterObjectFieldDescriptor(Label="metadataForRequestor", Tag=7, Type=typing.Optional[bytes]), ]) status: 'OtaSoftwareUpdateProvider.Enums.OTAQueryStatus' = 0 @@ -5886,16 +5699,15 @@ class ApplyUpdateResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="action", Tag=0, Type=OtaSoftwareUpdateProvider.Enums.OTAApplyUpdateAction), - ClusterObjectFieldDescriptor( - Label="delayedActionTime", Tag=1, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="action", Tag=0, Type=OtaSoftwareUpdateProvider.Enums.OTAApplyUpdateAction), + ClusterObjectFieldDescriptor(Label="delayedActionTime", Tag=1, Type=uint), ]) action: 'OtaSoftwareUpdateProvider.Enums.OTAApplyUpdateAction' = 0 delayedActionTime: 'uint' = 0 + class Attributes: @dataclass class FeatureMap(ClusterAttributeDescriptor): @@ -5930,6 +5742,7 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class OtaSoftwareUpdateRequestor(Cluster): id: typing.ClassVar[int] = 0x002A @@ -5958,6 +5771,8 @@ class UpdateStateEnum(IntEnum): kRollingBack = 0x07 kDelayedOnUserConsent = 0x08 + + class Commands: @dataclass class AnnounceOtaProvider(ClusterCommand): @@ -5968,15 +5783,11 @@ class AnnounceOtaProvider(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="providerLocation", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="vendorId", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="announcementReason", Tag=2, Type=OtaSoftwareUpdateRequestor.Enums.OTAAnnouncementReason), - ClusterObjectFieldDescriptor( - Label="metadataForNode", Tag=3, Type=typing.Optional[bytes]), + Fields = [ + ClusterObjectFieldDescriptor(Label="providerLocation", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="vendorId", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="announcementReason", Tag=2, Type=OtaSoftwareUpdateRequestor.Enums.OTAAnnouncementReason), + ClusterObjectFieldDescriptor(Label="metadataForNode", Tag=3, Type=typing.Optional[bytes]), ]) providerLocation: 'uint' = 0 @@ -5984,6 +5795,7 @@ def descriptor(cls) -> ClusterObjectDescriptor: announcementReason: 'OtaSoftwareUpdateRequestor.Enums.OTAAnnouncementReason' = 0 metadataForNode: 'typing.Optional[bytes]' = None + class Attributes: @dataclass class DefaultOtaProvider(ClusterAttributeDescriptor): @@ -6049,6 +5861,7 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + class Events: @dataclass class StateTransition(ClusterEventDescriptor): @@ -6058,15 +5871,11 @@ class StateTransition(ClusterEventDescriptor): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="previousState", Tag=0, Type=OtaSoftwareUpdateRequestor.Enums.UpdateStateEnum), - ClusterObjectFieldDescriptor( - Label="newState", Tag=1, Type=OtaSoftwareUpdateRequestor.Enums.UpdateStateEnum), - ClusterObjectFieldDescriptor( - Label="reason", Tag=2, Type=OtaSoftwareUpdateRequestor.Enums.ChangeReasonEnum), - ClusterObjectFieldDescriptor( - Label="targetSoftwareVersion", Tag=3, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="previousState", Tag=0, Type=OtaSoftwareUpdateRequestor.Enums.UpdateStateEnum), + ClusterObjectFieldDescriptor(Label="newState", Tag=1, Type=OtaSoftwareUpdateRequestor.Enums.UpdateStateEnum), + ClusterObjectFieldDescriptor(Label="reason", Tag=2, Type=OtaSoftwareUpdateRequestor.Enums.ChangeReasonEnum), + ClusterObjectFieldDescriptor(Label="targetSoftwareVersion", Tag=3, Type=uint), ]) previousState: 'OtaSoftwareUpdateRequestor.Enums.UpdateStateEnum' = 0 @@ -6082,11 +5891,9 @@ class VersionApplied(ClusterEventDescriptor): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="softwareVersion", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="productID", Tag=1, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="softwareVersion", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="productID", Tag=1, Type=uint), ]) softwareVersion: 'uint' = 0 @@ -6100,15 +5907,11 @@ class DownloadError(ClusterEventDescriptor): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="softwareVersion", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="bytesDownloaded", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="progressPercent", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="platformCode", Tag=3, Type=int), + Fields = [ + ClusterObjectFieldDescriptor(Label="softwareVersion", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="bytesDownloaded", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="progressPercent", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="platformCode", Tag=3, Type=int), ]) softwareVersion: 'uint' = 0 @@ -6121,6 +5924,9 @@ def descriptor(cls) -> ClusterObjectDescriptor: class LocalizationConfiguration(Cluster): id: typing.ClassVar[int] = 0x002B + + + class Attributes: @dataclass class FeatureMap(ClusterAttributeDescriptor): @@ -6155,10 +5961,14 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class LocalizationTimeFormat(Cluster): id: typing.ClassVar[int] = 0x002C + + + class Attributes: @dataclass class FeatureMap(ClusterAttributeDescriptor): @@ -6193,10 +6003,14 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class LocalizationUnit(Cluster): id: typing.ClassVar[int] = 0x002D + + + class Attributes: @dataclass class FeatureMap(ClusterAttributeDescriptor): @@ -6231,10 +6045,14 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class PowerSourceConfiguration(Cluster): id: typing.ClassVar[int] = 0x002E + + + class Attributes: @dataclass class Sources(ClusterAttributeDescriptor): @@ -6285,10 +6103,14 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class PowerSource(Cluster): id: typing.ClassVar[int] = 0x002F + + + class Attributes: @dataclass class Status(ClusterAttributeDescriptor): @@ -6819,6 +6641,7 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class GeneralCommissioning(Cluster): id: typing.ClassVar[int] = 0x0030 @@ -6835,19 +6658,21 @@ class RegulatoryLocationType(IntEnum): kOutdoor = 0x01 kIndoorOutdoor = 0x02 + class Structs: @dataclass class BasicCommissioningInfoType(ClusterObject): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="failSafeExpiryLengthMs", Tag=1, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="failSafeExpiryLengthMs", Tag=1, Type=uint), ]) failSafeExpiryLengthMs: 'uint' = 0 + + class Commands: @dataclass class ArmFailSafe(ClusterCommand): @@ -6858,13 +6683,10 @@ class ArmFailSafe(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="expiryLengthSeconds", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="breadcrumb", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="timeoutMs", Tag=2, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="expiryLengthSeconds", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="breadcrumb", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="timeoutMs", Tag=2, Type=uint), ]) expiryLengthSeconds: 'uint' = 0 @@ -6880,11 +6702,9 @@ class ArmFailSafeResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="errorCode", Tag=0, Type=GeneralCommissioning.Enums.GeneralCommissioningError), - ClusterObjectFieldDescriptor( - Label="debugText", Tag=1, Type=str), + Fields = [ + ClusterObjectFieldDescriptor(Label="errorCode", Tag=0, Type=GeneralCommissioning.Enums.GeneralCommissioningError), + ClusterObjectFieldDescriptor(Label="debugText", Tag=1, Type=str), ]) errorCode: 'GeneralCommissioning.Enums.GeneralCommissioningError' = 0 @@ -6899,15 +6719,11 @@ class SetRegulatoryConfig(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="location", Tag=0, Type=GeneralCommissioning.Enums.RegulatoryLocationType), - ClusterObjectFieldDescriptor( - Label="countryCode", Tag=1, Type=str), - ClusterObjectFieldDescriptor( - Label="breadcrumb", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="timeoutMs", Tag=3, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="location", Tag=0, Type=GeneralCommissioning.Enums.RegulatoryLocationType), + ClusterObjectFieldDescriptor(Label="countryCode", Tag=1, Type=str), + ClusterObjectFieldDescriptor(Label="breadcrumb", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="timeoutMs", Tag=3, Type=uint), ]) location: 'GeneralCommissioning.Enums.RegulatoryLocationType' = 0 @@ -6924,11 +6740,9 @@ class SetRegulatoryConfigResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="errorCode", Tag=0, Type=GeneralCommissioning.Enums.GeneralCommissioningError), - ClusterObjectFieldDescriptor( - Label="debugText", Tag=1, Type=str), + Fields = [ + ClusterObjectFieldDescriptor(Label="errorCode", Tag=0, Type=GeneralCommissioning.Enums.GeneralCommissioningError), + ClusterObjectFieldDescriptor(Label="debugText", Tag=1, Type=str), ]) errorCode: 'GeneralCommissioning.Enums.GeneralCommissioningError' = 0 @@ -6943,9 +6757,10 @@ class CommissioningComplete(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class CommissioningCompleteResponse(ClusterCommand): cluster_id: typing.ClassVar[int] = 0x0030 @@ -6955,16 +6770,15 @@ class CommissioningCompleteResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="errorCode", Tag=0, Type=GeneralCommissioning.Enums.GeneralCommissioningError), - ClusterObjectFieldDescriptor( - Label="debugText", Tag=1, Type=str), + Fields = [ + ClusterObjectFieldDescriptor(Label="errorCode", Tag=0, Type=GeneralCommissioning.Enums.GeneralCommissioningError), + ClusterObjectFieldDescriptor(Label="debugText", Tag=1, Type=str), ]) errorCode: 'GeneralCommissioning.Enums.GeneralCommissioningError' = 0 debugText: 'str' = "" + class Attributes: @dataclass class Breadcrumb(ClusterAttributeDescriptor): @@ -6996,8 +6810,7 @@ def attribute_id(cls) -> int: def attribute_type(cls) -> ClusterObjectFieldDescriptor: return ClusterObjectFieldDescriptor(Type=typing.List[GeneralCommissioning.Structs.BasicCommissioningInfoType]) - value: 'typing.List[GeneralCommissioning.Structs.BasicCommissioningInfoType]' = field( - default_factory=lambda: []) + value: 'typing.List[GeneralCommissioning.Structs.BasicCommissioningInfoType]' = field(default_factory=lambda: []) @dataclass class RegulatoryConfig(ClusterAttributeDescriptor): @@ -7064,6 +6877,7 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class NetworkCommissioning(Cluster): id: typing.ClassVar[int] = 0x0031 @@ -7091,15 +6905,15 @@ class NetworkCommissioningError(IntEnum): kLabel15 = 0x12 kUnknownError = 0x13 + class Structs: @dataclass class ThreadInterfaceScanResult(ClusterObject): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="discoveryResponse", Tag=1, Type=bytes), + Fields = [ + ClusterObjectFieldDescriptor(Label="discoveryResponse", Tag=1, Type=bytes), ]) discoveryResponse: 'bytes' = b"" @@ -7109,17 +6923,12 @@ class WiFiInterfaceScanResult(ClusterObject): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="security", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="ssid", Tag=2, Type=bytes), - ClusterObjectFieldDescriptor( - Label="bssid", Tag=3, Type=bytes), - ClusterObjectFieldDescriptor( - Label="channel", Tag=4, Type=uint), - ClusterObjectFieldDescriptor( - Label="frequencyBand", Tag=5, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="security", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="ssid", Tag=2, Type=bytes), + ClusterObjectFieldDescriptor(Label="bssid", Tag=3, Type=bytes), + ClusterObjectFieldDescriptor(Label="channel", Tag=4, Type=uint), + ClusterObjectFieldDescriptor(Label="frequencyBand", Tag=5, Type=uint), ]) security: 'uint' = 0 @@ -7128,6 +6937,8 @@ def descriptor(cls) -> ClusterObjectDescriptor: channel: 'uint' = 0 frequencyBand: 'uint' = 0 + + class Commands: @dataclass class ScanNetworks(ClusterCommand): @@ -7138,13 +6949,10 @@ class ScanNetworks(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="ssid", Tag=0, Type=bytes), - ClusterObjectFieldDescriptor( - Label="breadcrumb", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="timeoutMs", Tag=2, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="ssid", Tag=0, Type=bytes), + ClusterObjectFieldDescriptor(Label="breadcrumb", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="timeoutMs", Tag=2, Type=uint), ]) ssid: 'bytes' = b"" @@ -7160,23 +6968,17 @@ class ScanNetworksResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="errorCode", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="debugText", Tag=1, Type=str), - ClusterObjectFieldDescriptor( - Label="wifiScanResults", Tag=2, Type=typing.List[NetworkCommissioning.Structs.WiFiInterfaceScanResult]), - ClusterObjectFieldDescriptor( - Label="threadScanResults", Tag=3, Type=typing.List[NetworkCommissioning.Structs.ThreadInterfaceScanResult]), + Fields = [ + ClusterObjectFieldDescriptor(Label="errorCode", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="debugText", Tag=1, Type=str), + ClusterObjectFieldDescriptor(Label="wifiScanResults", Tag=2, Type=typing.List[NetworkCommissioning.Structs.WiFiInterfaceScanResult]), + ClusterObjectFieldDescriptor(Label="threadScanResults", Tag=3, Type=typing.List[NetworkCommissioning.Structs.ThreadInterfaceScanResult]), ]) errorCode: 'uint' = 0 debugText: 'str' = "" - wifiScanResults: 'typing.List[NetworkCommissioning.Structs.WiFiInterfaceScanResult]' = field( - default_factory=lambda: []) - threadScanResults: 'typing.List[NetworkCommissioning.Structs.ThreadInterfaceScanResult]' = field( - default_factory=lambda: []) + wifiScanResults: 'typing.List[NetworkCommissioning.Structs.WiFiInterfaceScanResult]' = field(default_factory=lambda: []) + threadScanResults: 'typing.List[NetworkCommissioning.Structs.ThreadInterfaceScanResult]' = field(default_factory=lambda: []) @dataclass class AddWiFiNetwork(ClusterCommand): @@ -7187,15 +6989,11 @@ class AddWiFiNetwork(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="ssid", Tag=0, Type=bytes), - ClusterObjectFieldDescriptor( - Label="credentials", Tag=1, Type=bytes), - ClusterObjectFieldDescriptor( - Label="breadcrumb", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="timeoutMs", Tag=3, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="ssid", Tag=0, Type=bytes), + ClusterObjectFieldDescriptor(Label="credentials", Tag=1, Type=bytes), + ClusterObjectFieldDescriptor(Label="breadcrumb", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="timeoutMs", Tag=3, Type=uint), ]) ssid: 'bytes' = b"" @@ -7212,11 +7010,9 @@ class AddWiFiNetworkResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="errorCode", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="debugText", Tag=1, Type=str), + Fields = [ + ClusterObjectFieldDescriptor(Label="errorCode", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="debugText", Tag=1, Type=str), ]) errorCode: 'uint' = 0 @@ -7231,15 +7027,11 @@ class UpdateWiFiNetwork(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="ssid", Tag=0, Type=bytes), - ClusterObjectFieldDescriptor( - Label="credentials", Tag=1, Type=bytes), - ClusterObjectFieldDescriptor( - Label="breadcrumb", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="timeoutMs", Tag=3, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="ssid", Tag=0, Type=bytes), + ClusterObjectFieldDescriptor(Label="credentials", Tag=1, Type=bytes), + ClusterObjectFieldDescriptor(Label="breadcrumb", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="timeoutMs", Tag=3, Type=uint), ]) ssid: 'bytes' = b"" @@ -7256,11 +7048,9 @@ class UpdateWiFiNetworkResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="errorCode", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="debugText", Tag=1, Type=str), + Fields = [ + ClusterObjectFieldDescriptor(Label="errorCode", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="debugText", Tag=1, Type=str), ]) errorCode: 'uint' = 0 @@ -7275,13 +7065,10 @@ class AddThreadNetwork(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="operationalDataset", Tag=0, Type=bytes), - ClusterObjectFieldDescriptor( - Label="breadcrumb", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="timeoutMs", Tag=2, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="operationalDataset", Tag=0, Type=bytes), + ClusterObjectFieldDescriptor(Label="breadcrumb", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="timeoutMs", Tag=2, Type=uint), ]) operationalDataset: 'bytes' = b"" @@ -7297,11 +7084,9 @@ class AddThreadNetworkResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="errorCode", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="debugText", Tag=1, Type=str), + Fields = [ + ClusterObjectFieldDescriptor(Label="errorCode", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="debugText", Tag=1, Type=str), ]) errorCode: 'uint' = 0 @@ -7316,13 +7101,10 @@ class UpdateThreadNetwork(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="operationalDataset", Tag=0, Type=bytes), - ClusterObjectFieldDescriptor( - Label="breadcrumb", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="timeoutMs", Tag=2, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="operationalDataset", Tag=0, Type=bytes), + ClusterObjectFieldDescriptor(Label="breadcrumb", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="timeoutMs", Tag=2, Type=uint), ]) operationalDataset: 'bytes' = b"" @@ -7338,11 +7120,9 @@ class UpdateThreadNetworkResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="errorCode", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="debugText", Tag=1, Type=str), + Fields = [ + ClusterObjectFieldDescriptor(Label="errorCode", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="debugText", Tag=1, Type=str), ]) errorCode: 'uint' = 0 @@ -7357,13 +7137,10 @@ class RemoveNetwork(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="networkID", Tag=0, Type=bytes), - ClusterObjectFieldDescriptor( - Label="breadcrumb", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="timeoutMs", Tag=2, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="networkID", Tag=0, Type=bytes), + ClusterObjectFieldDescriptor(Label="breadcrumb", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="timeoutMs", Tag=2, Type=uint), ]) networkID: 'bytes' = b"" @@ -7379,11 +7156,9 @@ class RemoveNetworkResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="errorCode", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="debugText", Tag=1, Type=str), + Fields = [ + ClusterObjectFieldDescriptor(Label="errorCode", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="debugText", Tag=1, Type=str), ]) errorCode: 'uint' = 0 @@ -7398,13 +7173,10 @@ class EnableNetwork(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="networkID", Tag=0, Type=bytes), - ClusterObjectFieldDescriptor( - Label="breadcrumb", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="timeoutMs", Tag=2, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="networkID", Tag=0, Type=bytes), + ClusterObjectFieldDescriptor(Label="breadcrumb", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="timeoutMs", Tag=2, Type=uint), ]) networkID: 'bytes' = b"" @@ -7420,11 +7192,9 @@ class EnableNetworkResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="errorCode", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="debugText", Tag=1, Type=str), + Fields = [ + ClusterObjectFieldDescriptor(Label="errorCode", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="debugText", Tag=1, Type=str), ]) errorCode: 'uint' = 0 @@ -7439,13 +7209,10 @@ class DisableNetwork(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="networkID", Tag=0, Type=bytes), - ClusterObjectFieldDescriptor( - Label="breadcrumb", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="timeoutMs", Tag=2, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="networkID", Tag=0, Type=bytes), + ClusterObjectFieldDescriptor(Label="breadcrumb", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="timeoutMs", Tag=2, Type=uint), ]) networkID: 'bytes' = b"" @@ -7461,16 +7228,15 @@ class DisableNetworkResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="errorCode", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="debugText", Tag=1, Type=str), + Fields = [ + ClusterObjectFieldDescriptor(Label="errorCode", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="debugText", Tag=1, Type=str), ]) errorCode: 'uint' = 0 debugText: 'str' = "" + class Attributes: @dataclass class FeatureMap(ClusterAttributeDescriptor): @@ -7505,6 +7271,7 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class DiagnosticLogs(Cluster): id: typing.ClassVar[int] = 0x0032 @@ -7526,6 +7293,8 @@ class LogsTransferProtocol(IntEnum): kResponsePayload = 0x00 kBdx = 0x01 + + class Commands: @dataclass class RetrieveLogsRequest(ClusterCommand): @@ -7536,13 +7305,10 @@ class RetrieveLogsRequest(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="intent", Tag=0, Type=DiagnosticLogs.Enums.LogsIntent), - ClusterObjectFieldDescriptor( - Label="requestedProtocol", Tag=1, Type=DiagnosticLogs.Enums.LogsTransferProtocol), - ClusterObjectFieldDescriptor( - Label="transferFileDesignator", Tag=2, Type=bytes), + Fields = [ + ClusterObjectFieldDescriptor(Label="intent", Tag=0, Type=DiagnosticLogs.Enums.LogsIntent), + ClusterObjectFieldDescriptor(Label="requestedProtocol", Tag=1, Type=DiagnosticLogs.Enums.LogsTransferProtocol), + ClusterObjectFieldDescriptor(Label="transferFileDesignator", Tag=2, Type=bytes), ]) intent: 'DiagnosticLogs.Enums.LogsIntent' = 0 @@ -7558,15 +7324,11 @@ class RetrieveLogsResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="status", Tag=0, Type=DiagnosticLogs.Enums.LogsStatus), - ClusterObjectFieldDescriptor( - Label="content", Tag=1, Type=bytes), - ClusterObjectFieldDescriptor( - Label="timeStamp", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="timeSinceBoot", Tag=3, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="status", Tag=0, Type=DiagnosticLogs.Enums.LogsStatus), + ClusterObjectFieldDescriptor(Label="content", Tag=1, Type=bytes), + ClusterObjectFieldDescriptor(Label="timeStamp", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="timeSinceBoot", Tag=3, Type=uint), ]) status: 'DiagnosticLogs.Enums.LogsStatus' = 0 @@ -7574,6 +7336,7 @@ def descriptor(cls) -> ClusterObjectDescriptor: timeStamp: 'uint' = 0 timeSinceBoot: 'uint' = 0 + class Attributes: @dataclass class FeatureMap(ClusterAttributeDescriptor): @@ -7608,6 +7371,7 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class GeneralDiagnostics(Cluster): id: typing.ClassVar[int] = 0x0033 @@ -7657,25 +7421,20 @@ class RadioFaultType(IntEnum): kBLEFault = 0x05 kEthernetFault = 0x06 + class Structs: @dataclass class NetworkInterfaceType(ClusterObject): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="name", Tag=1, Type=str), - ClusterObjectFieldDescriptor( - Label="fabricConnected", Tag=2, Type=bool), - ClusterObjectFieldDescriptor( - Label="offPremiseServicesReachableIPv4", Tag=3, Type=bool), - ClusterObjectFieldDescriptor( - Label="offPremiseServicesReachableIPv6", Tag=4, Type=bool), - ClusterObjectFieldDescriptor( - Label="hardwareAddress", Tag=5, Type=bytes), - ClusterObjectFieldDescriptor( - Label="type", Tag=6, Type=GeneralDiagnostics.Enums.InterfaceType), + Fields = [ + ClusterObjectFieldDescriptor(Label="name", Tag=1, Type=str), + ClusterObjectFieldDescriptor(Label="fabricConnected", Tag=2, Type=bool), + ClusterObjectFieldDescriptor(Label="offPremiseServicesReachableIPv4", Tag=3, Type=bool), + ClusterObjectFieldDescriptor(Label="offPremiseServicesReachableIPv6", Tag=4, Type=bool), + ClusterObjectFieldDescriptor(Label="hardwareAddress", Tag=5, Type=bytes), + ClusterObjectFieldDescriptor(Label="type", Tag=6, Type=GeneralDiagnostics.Enums.InterfaceType), ]) name: 'str' = "" @@ -7685,6 +7444,9 @@ def descriptor(cls) -> ClusterObjectDescriptor: hardwareAddress: 'bytes' = b"" type: 'GeneralDiagnostics.Enums.InterfaceType' = 0 + + + class Attributes: @dataclass class NetworkInterfaces(ClusterAttributeDescriptor): @@ -7700,8 +7462,7 @@ def attribute_id(cls) -> int: def attribute_type(cls) -> ClusterObjectFieldDescriptor: return ClusterObjectFieldDescriptor(Type=typing.List[GeneralDiagnostics.Structs.NetworkInterfaceType]) - value: 'typing.List[GeneralDiagnostics.Structs.NetworkInterfaceType]' = field( - default_factory=lambda: []) + value: 'typing.List[GeneralDiagnostics.Structs.NetworkInterfaceType]' = field(default_factory=lambda: []) @dataclass class RebootCount(ClusterAttributeDescriptor): @@ -7847,6 +7608,7 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + class Events: @dataclass class HardwareFaultChange(ClusterEventDescriptor): @@ -7856,17 +7618,13 @@ class HardwareFaultChange(ClusterEventDescriptor): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="current", Tag=0, Type=typing.List[GeneralDiagnostics.Enums.HardwareFaultType], IsArray=True), - ClusterObjectFieldDescriptor( - Label="previous", Tag=1, Type=typing.List[GeneralDiagnostics.Enums.HardwareFaultType], IsArray=True), + Fields = [ + ClusterObjectFieldDescriptor(Label="current", Tag=0, Type=typing.List[GeneralDiagnostics.Enums.HardwareFaultType], IsArray=True), + ClusterObjectFieldDescriptor(Label="previous", Tag=1, Type=typing.List[GeneralDiagnostics.Enums.HardwareFaultType], IsArray=True), ]) - current: typing.List['typing.List[GeneralDiagnostics.Enums.HardwareFaultType]'] = field( - default_factory=lambda: []) - previous: typing.List['typing.List[GeneralDiagnostics.Enums.HardwareFaultType]'] = field( - default_factory=lambda: []) + current: typing.List['typing.List[GeneralDiagnostics.Enums.HardwareFaultType]'] = field(default_factory=lambda: []) + previous: typing.List['typing.List[GeneralDiagnostics.Enums.HardwareFaultType]'] = field(default_factory=lambda: []) @dataclass class RadioFaultChange(ClusterEventDescriptor): @@ -7876,17 +7634,13 @@ class RadioFaultChange(ClusterEventDescriptor): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="current", Tag=0, Type=typing.List[GeneralDiagnostics.Enums.RadioFaultType], IsArray=True), - ClusterObjectFieldDescriptor( - Label="previous", Tag=1, Type=typing.List[GeneralDiagnostics.Enums.RadioFaultType], IsArray=True), + Fields = [ + ClusterObjectFieldDescriptor(Label="current", Tag=0, Type=typing.List[GeneralDiagnostics.Enums.RadioFaultType], IsArray=True), + ClusterObjectFieldDescriptor(Label="previous", Tag=1, Type=typing.List[GeneralDiagnostics.Enums.RadioFaultType], IsArray=True), ]) - current: typing.List['typing.List[GeneralDiagnostics.Enums.RadioFaultType]'] = field( - default_factory=lambda: []) - previous: typing.List['typing.List[GeneralDiagnostics.Enums.RadioFaultType]'] = field( - default_factory=lambda: []) + current: typing.List['typing.List[GeneralDiagnostics.Enums.RadioFaultType]'] = field(default_factory=lambda: []) + previous: typing.List['typing.List[GeneralDiagnostics.Enums.RadioFaultType]'] = field(default_factory=lambda: []) @dataclass class NetworkFaultChange(ClusterEventDescriptor): @@ -7896,17 +7650,13 @@ class NetworkFaultChange(ClusterEventDescriptor): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="current", Tag=0, Type=typing.List[GeneralDiagnostics.Enums.NetworkFaultType], IsArray=True), - ClusterObjectFieldDescriptor( - Label="previous", Tag=1, Type=typing.List[GeneralDiagnostics.Enums.NetworkFaultType], IsArray=True), + Fields = [ + ClusterObjectFieldDescriptor(Label="current", Tag=0, Type=typing.List[GeneralDiagnostics.Enums.NetworkFaultType], IsArray=True), + ClusterObjectFieldDescriptor(Label="previous", Tag=1, Type=typing.List[GeneralDiagnostics.Enums.NetworkFaultType], IsArray=True), ]) - current: typing.List['typing.List[GeneralDiagnostics.Enums.NetworkFaultType]'] = field( - default_factory=lambda: []) - previous: typing.List['typing.List[GeneralDiagnostics.Enums.NetworkFaultType]'] = field( - default_factory=lambda: []) + current: typing.List['typing.List[GeneralDiagnostics.Enums.NetworkFaultType]'] = field(default_factory=lambda: []) + previous: typing.List['typing.List[GeneralDiagnostics.Enums.NetworkFaultType]'] = field(default_factory=lambda: []) @dataclass class BootReason(ClusterEventDescriptor): @@ -7916,9 +7666,8 @@ class BootReason(ClusterEventDescriptor): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="bootReason", Tag=0, Type=GeneralDiagnostics.Enums.BootReasonType), + Fields = [ + ClusterObjectFieldDescriptor(Label="bootReason", Tag=0, Type=GeneralDiagnostics.Enums.BootReasonType), ]) bootReason: 'GeneralDiagnostics.Enums.BootReasonType' = 0 @@ -7928,19 +7677,17 @@ def descriptor(cls) -> ClusterObjectDescriptor: class SoftwareDiagnostics(Cluster): id: typing.ClassVar[int] = 0x0034 + class Structs: @dataclass class SoftwareFault(ClusterObject): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="id", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="name", Tag=2, Type=str), - ClusterObjectFieldDescriptor( - Label="faultRecording", Tag=3, Type=bytes), + Fields = [ + ClusterObjectFieldDescriptor(Label="id", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="name", Tag=2, Type=str), + ClusterObjectFieldDescriptor(Label="faultRecording", Tag=3, Type=bytes), ]) id: 'uint' = 0 @@ -7952,17 +7699,12 @@ class ThreadMetrics(ClusterObject): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="id", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="name", Tag=2, Type=str), - ClusterObjectFieldDescriptor( - Label="stackFreeCurrent", Tag=3, Type=uint), - ClusterObjectFieldDescriptor( - Label="stackFreeMinimum", Tag=4, Type=uint), - ClusterObjectFieldDescriptor( - Label="stackSize", Tag=5, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="id", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="name", Tag=2, Type=str), + ClusterObjectFieldDescriptor(Label="stackFreeCurrent", Tag=3, Type=uint), + ClusterObjectFieldDescriptor(Label="stackFreeMinimum", Tag=4, Type=uint), + ClusterObjectFieldDescriptor(Label="stackSize", Tag=5, Type=uint), ]) id: 'uint' = 0 @@ -7971,6 +7713,8 @@ def descriptor(cls) -> ClusterObjectDescriptor: stackFreeMinimum: 'uint' = 0 stackSize: 'uint' = 0 + + class Commands: @dataclass class ResetWatermarks(ClusterCommand): @@ -7981,9 +7725,11 @@ class ResetWatermarks(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + + class Attributes: @dataclass class ThreadMetrics(ClusterAttributeDescriptor): @@ -8081,6 +7827,7 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + class Events: @dataclass class SoftwareFault(ClusterEventDescriptor): @@ -8090,13 +7837,11 @@ class SoftwareFault(ClusterEventDescriptor): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="softwareFault", Tag=0, Type=SoftwareDiagnostics.Structs.SoftwareFault), + Fields = [ + ClusterObjectFieldDescriptor(Label="softwareFault", Tag=0, Type=SoftwareDiagnostics.Structs.SoftwareFault), ]) - softwareFault: 'SoftwareDiagnostics.Structs.SoftwareFault' = field( - default_factory=lambda: SoftwareDiagnostics.Structs.SoftwareFault()) + softwareFault: 'SoftwareDiagnostics.Structs.SoftwareFault' = field(default_factory=lambda: SoftwareDiagnostics.Structs.SoftwareFault()) @dataclass @@ -8123,41 +7868,28 @@ class ThreadConnectionStatus(IntEnum): kConnected = 0x00 kNotConnected = 0x01 + class Structs: @dataclass class NeighborTable(ClusterObject): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="extAddress", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="age", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="rloc16", Tag=3, Type=uint), - ClusterObjectFieldDescriptor( - Label="linkFrameCounter", Tag=4, Type=uint), - ClusterObjectFieldDescriptor( - Label="mleFrameCounter", Tag=5, Type=uint), - ClusterObjectFieldDescriptor( - Label="lqi", Tag=6, Type=uint), - ClusterObjectFieldDescriptor( - Label="averageRssi", Tag=7, Type=int), - ClusterObjectFieldDescriptor( - Label="lastRssi", Tag=8, Type=int), - ClusterObjectFieldDescriptor( - Label="frameErrorRate", Tag=9, Type=uint), - ClusterObjectFieldDescriptor( - Label="messageErrorRate", Tag=10, Type=uint), - ClusterObjectFieldDescriptor( - Label="rxOnWhenIdle", Tag=11, Type=bool), - ClusterObjectFieldDescriptor( - Label="fullThreadDevice", Tag=12, Type=bool), - ClusterObjectFieldDescriptor( - Label="fullNetworkData", Tag=13, Type=bool), - ClusterObjectFieldDescriptor( - Label="isChild", Tag=14, Type=bool), + Fields = [ + ClusterObjectFieldDescriptor(Label="extAddress", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="age", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="rloc16", Tag=3, Type=uint), + ClusterObjectFieldDescriptor(Label="linkFrameCounter", Tag=4, Type=uint), + ClusterObjectFieldDescriptor(Label="mleFrameCounter", Tag=5, Type=uint), + ClusterObjectFieldDescriptor(Label="lqi", Tag=6, Type=uint), + ClusterObjectFieldDescriptor(Label="averageRssi", Tag=7, Type=int), + ClusterObjectFieldDescriptor(Label="lastRssi", Tag=8, Type=int), + ClusterObjectFieldDescriptor(Label="frameErrorRate", Tag=9, Type=uint), + ClusterObjectFieldDescriptor(Label="messageErrorRate", Tag=10, Type=uint), + ClusterObjectFieldDescriptor(Label="rxOnWhenIdle", Tag=11, Type=bool), + ClusterObjectFieldDescriptor(Label="fullThreadDevice", Tag=12, Type=bool), + ClusterObjectFieldDescriptor(Label="fullNetworkData", Tag=13, Type=bool), + ClusterObjectFieldDescriptor(Label="isChild", Tag=14, Type=bool), ]) extAddress: 'uint' = 0 @@ -8180,31 +7912,19 @@ class OperationalDatasetComponents(ClusterObject): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="activeTimestampPresent", Tag=1, Type=bool), - ClusterObjectFieldDescriptor( - Label="pendingTimestampPresent", Tag=2, Type=bool), - ClusterObjectFieldDescriptor( - Label="masterKeyPresent", Tag=3, Type=bool), - ClusterObjectFieldDescriptor( - Label="networkNamePresent", Tag=4, Type=bool), - ClusterObjectFieldDescriptor( - Label="extendedPanIdPresent", Tag=5, Type=bool), - ClusterObjectFieldDescriptor( - Label="meshLocalPrefixPresent", Tag=6, Type=bool), - ClusterObjectFieldDescriptor( - Label="delayPresent", Tag=7, Type=bool), - ClusterObjectFieldDescriptor( - Label="panIdPresent", Tag=8, Type=bool), - ClusterObjectFieldDescriptor( - Label="channelPresent", Tag=9, Type=bool), - ClusterObjectFieldDescriptor( - Label="pskcPresent", Tag=10, Type=bool), - ClusterObjectFieldDescriptor( - Label="securityPolicyPresent", Tag=11, Type=bool), - ClusterObjectFieldDescriptor( - Label="channelMaskPresent", Tag=12, Type=bool), + Fields = [ + ClusterObjectFieldDescriptor(Label="activeTimestampPresent", Tag=1, Type=bool), + ClusterObjectFieldDescriptor(Label="pendingTimestampPresent", Tag=2, Type=bool), + ClusterObjectFieldDescriptor(Label="masterKeyPresent", Tag=3, Type=bool), + ClusterObjectFieldDescriptor(Label="networkNamePresent", Tag=4, Type=bool), + ClusterObjectFieldDescriptor(Label="extendedPanIdPresent", Tag=5, Type=bool), + ClusterObjectFieldDescriptor(Label="meshLocalPrefixPresent", Tag=6, Type=bool), + ClusterObjectFieldDescriptor(Label="delayPresent", Tag=7, Type=bool), + ClusterObjectFieldDescriptor(Label="panIdPresent", Tag=8, Type=bool), + ClusterObjectFieldDescriptor(Label="channelPresent", Tag=9, Type=bool), + ClusterObjectFieldDescriptor(Label="pskcPresent", Tag=10, Type=bool), + ClusterObjectFieldDescriptor(Label="securityPolicyPresent", Tag=11, Type=bool), + ClusterObjectFieldDescriptor(Label="channelMaskPresent", Tag=12, Type=bool), ]) activeTimestampPresent: 'bool' = False @@ -8225,27 +7945,17 @@ class RouteTable(ClusterObject): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="extAddress", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="rloc16", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="routerId", Tag=3, Type=uint), - ClusterObjectFieldDescriptor( - Label="nextHop", Tag=4, Type=uint), - ClusterObjectFieldDescriptor( - Label="pathCost", Tag=5, Type=uint), - ClusterObjectFieldDescriptor( - Label="LQIIn", Tag=6, Type=uint), - ClusterObjectFieldDescriptor( - Label="LQIOut", Tag=7, Type=uint), - ClusterObjectFieldDescriptor( - Label="age", Tag=8, Type=uint), - ClusterObjectFieldDescriptor( - Label="allocated", Tag=9, Type=bool), - ClusterObjectFieldDescriptor( - Label="linkEstablished", Tag=10, Type=bool), + Fields = [ + ClusterObjectFieldDescriptor(Label="extAddress", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="rloc16", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="routerId", Tag=3, Type=uint), + ClusterObjectFieldDescriptor(Label="nextHop", Tag=4, Type=uint), + ClusterObjectFieldDescriptor(Label="pathCost", Tag=5, Type=uint), + ClusterObjectFieldDescriptor(Label="LQIIn", Tag=6, Type=uint), + ClusterObjectFieldDescriptor(Label="LQIOut", Tag=7, Type=uint), + ClusterObjectFieldDescriptor(Label="age", Tag=8, Type=uint), + ClusterObjectFieldDescriptor(Label="allocated", Tag=9, Type=bool), + ClusterObjectFieldDescriptor(Label="linkEstablished", Tag=10, Type=bool), ]) extAddress: 'uint' = 0 @@ -8264,16 +7974,16 @@ class SecurityPolicy(ClusterObject): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="rotationTime", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="flags", Tag=2, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="rotationTime", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="flags", Tag=2, Type=uint), ]) rotationTime: 'uint' = 0 flags: 'uint' = 0 + + class Commands: @dataclass class ResetCounts(ClusterCommand): @@ -8284,9 +7994,11 @@ class ResetCounts(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + + class Attributes: @dataclass class Channel(ClusterAttributeDescriptor): @@ -8414,8 +8126,7 @@ def attribute_id(cls) -> int: def attribute_type(cls) -> ClusterObjectFieldDescriptor: return ClusterObjectFieldDescriptor(Type=typing.List[ThreadNetworkDiagnostics.Structs.NeighborTable]) - value: 'typing.List[ThreadNetworkDiagnostics.Structs.NeighborTable]' = field( - default_factory=lambda: []) + value: 'typing.List[ThreadNetworkDiagnostics.Structs.NeighborTable]' = field(default_factory=lambda: []) @dataclass class RouteTableList(ClusterAttributeDescriptor): @@ -8431,8 +8142,7 @@ def attribute_id(cls) -> int: def attribute_type(cls) -> ClusterObjectFieldDescriptor: return ClusterObjectFieldDescriptor(Type=typing.List[ThreadNetworkDiagnostics.Structs.RouteTable]) - value: 'typing.List[ThreadNetworkDiagnostics.Structs.RouteTable]' = field( - default_factory=lambda: []) + value: 'typing.List[ThreadNetworkDiagnostics.Structs.RouteTable]' = field(default_factory=lambda: []) @dataclass class PartitionId(ClusterAttributeDescriptor): @@ -9248,8 +8958,7 @@ def attribute_id(cls) -> int: def attribute_type(cls) -> ClusterObjectFieldDescriptor: return ClusterObjectFieldDescriptor(Type=typing.List[ThreadNetworkDiagnostics.Structs.SecurityPolicy]) - value: 'typing.List[ThreadNetworkDiagnostics.Structs.SecurityPolicy]' = field( - default_factory=lambda: []) + value: 'typing.List[ThreadNetworkDiagnostics.Structs.SecurityPolicy]' = field(default_factory=lambda: []) @dataclass class ChannelMask(ClusterAttributeDescriptor): @@ -9281,8 +8990,7 @@ def attribute_id(cls) -> int: def attribute_type(cls) -> ClusterObjectFieldDescriptor: return ClusterObjectFieldDescriptor(Type=typing.List[ThreadNetworkDiagnostics.Structs.OperationalDatasetComponents]) - value: 'typing.List[ThreadNetworkDiagnostics.Structs.OperationalDatasetComponents]' = field( - default_factory=lambda: []) + value: 'typing.List[ThreadNetworkDiagnostics.Structs.OperationalDatasetComponents]' = field(default_factory=lambda: []) @dataclass class ActiveNetworkFaultsList(ClusterAttributeDescriptor): @@ -9298,8 +9006,7 @@ def attribute_id(cls) -> int: def attribute_type(cls) -> ClusterObjectFieldDescriptor: return ClusterObjectFieldDescriptor(Type=typing.List[ThreadNetworkDiagnostics.Enums.NetworkFault]) - value: 'typing.List[ThreadNetworkDiagnostics.Enums.NetworkFault]' = field( - default_factory=lambda: []) + value: 'typing.List[ThreadNetworkDiagnostics.Enums.NetworkFault]' = field(default_factory=lambda: []) @dataclass class FeatureMap(ClusterAttributeDescriptor): @@ -9333,6 +9040,7 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + class Events: @dataclass class ConnectionStatus(ClusterEventDescriptor): @@ -9342,9 +9050,8 @@ class ConnectionStatus(ClusterEventDescriptor): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="connectionStatus", Tag=0, Type=ThreadNetworkDiagnostics.Enums.ThreadConnectionStatus), + Fields = [ + ClusterObjectFieldDescriptor(Label="connectionStatus", Tag=0, Type=ThreadNetworkDiagnostics.Enums.ThreadConnectionStatus), ]) connectionStatus: 'ThreadNetworkDiagnostics.Enums.ThreadConnectionStatus' = 0 @@ -9381,6 +9088,8 @@ class WiFiVersionType(IntEnum): k80211ac = 0x04 k80211ax = 0x05 + + class Commands: @dataclass class ResetCounts(ClusterCommand): @@ -9391,9 +9100,11 @@ class ResetCounts(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + + class Attributes: @dataclass class Bssid(ClusterAttributeDescriptor): @@ -9635,6 +9346,7 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + class Events: @dataclass class Disconnection(ClusterEventDescriptor): @@ -9644,9 +9356,8 @@ class Disconnection(ClusterEventDescriptor): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="reasonCode", Tag=0, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="reasonCode", Tag=0, Type=uint), ]) reasonCode: 'uint' = 0 @@ -9659,11 +9370,9 @@ class AssociationFailure(ClusterEventDescriptor): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="associationFailure", Tag=0, Type=WiFiNetworkDiagnostics.Enums.AssociationFailureCause), - ClusterObjectFieldDescriptor( - Label="status", Tag=1, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="associationFailure", Tag=0, Type=WiFiNetworkDiagnostics.Enums.AssociationFailureCause), + ClusterObjectFieldDescriptor(Label="status", Tag=1, Type=uint), ]) associationFailure: 'WiFiNetworkDiagnostics.Enums.AssociationFailureCause' = 0 @@ -9677,9 +9386,8 @@ class ConnectionStatus(ClusterEventDescriptor): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="connectionStatus", Tag=0, Type=WiFiNetworkDiagnostics.Enums.WiFiConnectionStatus), + Fields = [ + ClusterObjectFieldDescriptor(Label="connectionStatus", Tag=0, Type=WiFiNetworkDiagnostics.Enums.WiFiConnectionStatus), ]) connectionStatus: 'WiFiNetworkDiagnostics.Enums.WiFiConnectionStatus' = 0 @@ -9702,6 +9410,8 @@ class PHYRateType(IntEnum): k200g = 0x08 k400g = 0x09 + + class Commands: @dataclass class ResetCounts(ClusterCommand): @@ -9712,9 +9422,11 @@ class ResetCounts(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + + class Attributes: @dataclass class PHYRate(ClusterAttributeDescriptor): @@ -9893,10 +9605,14 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class TimeSynchronization(Cluster): id: typing.ClassVar[int] = 0x0038 + + + class Attributes: @dataclass class FeatureMap(ClusterAttributeDescriptor): @@ -9931,10 +9647,13 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class BridgedDeviceBasic(Cluster): id: typing.ClassVar[int] = 0x0039 + + class Commands: @dataclass class StartUp(ClusterCommand): @@ -9945,9 +9664,10 @@ class StartUp(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class ShutDown(ClusterCommand): cluster_id: typing.ClassVar[int] = 0x0039 @@ -9957,9 +9677,10 @@ class ShutDown(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class Leave(ClusterCommand): cluster_id: typing.ClassVar[int] = 0x0039 @@ -9969,9 +9690,10 @@ class Leave(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class ReachableChanged(ClusterCommand): cluster_id: typing.ClassVar[int] = 0x0039 @@ -9981,9 +9703,11 @@ class ReachableChanged(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + + class Attributes: @dataclass class VendorName(ClusterAttributeDescriptor): @@ -10258,10 +9982,14 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class Switch(Cluster): id: typing.ClassVar[int] = 0x003B + + + class Attributes: @dataclass class NumberOfPositions(ClusterAttributeDescriptor): @@ -10343,6 +10071,7 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + class Events: @dataclass class SwitchLatched(ClusterEventDescriptor): @@ -10352,9 +10081,8 @@ class SwitchLatched(ClusterEventDescriptor): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="newPosition", Tag=0, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="newPosition", Tag=0, Type=uint), ]) newPosition: 'uint' = 0 @@ -10367,9 +10095,8 @@ class InitialPress(ClusterEventDescriptor): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="newPosition", Tag=0, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="newPosition", Tag=0, Type=uint), ]) newPosition: 'uint' = 0 @@ -10382,9 +10109,8 @@ class LongPress(ClusterEventDescriptor): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="newPosition", Tag=0, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="newPosition", Tag=0, Type=uint), ]) newPosition: 'uint' = 0 @@ -10397,9 +10123,8 @@ class ShortRelease(ClusterEventDescriptor): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="previousPosition", Tag=0, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="previousPosition", Tag=0, Type=uint), ]) previousPosition: 'uint' = 0 @@ -10412,9 +10137,8 @@ class LongRelease(ClusterEventDescriptor): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="previousPosition", Tag=0, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="previousPosition", Tag=0, Type=uint), ]) previousPosition: 'uint' = 0 @@ -10427,11 +10151,9 @@ class MultiPressOngoing(ClusterEventDescriptor): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="newPosition", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="currentNumberOfPressesCounted", Tag=1, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="newPosition", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="currentNumberOfPressesCounted", Tag=1, Type=uint), ]) newPosition: 'uint' = 0 @@ -10445,11 +10167,9 @@ class MultiPressComplete(ClusterEventDescriptor): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="newPosition", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="totalNumberOfPressesCounted", Tag=1, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="newPosition", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="totalNumberOfPressesCounted", Tag=1, Type=uint), ]) newPosition: 'uint' = 0 @@ -10466,6 +10186,8 @@ class StatusCode(IntEnum): kPAKEParameterError = 0x02 kWindowNotOpen = 0x03 + + class Commands: @dataclass class OpenCommissioningWindow(ClusterCommand): @@ -10476,19 +10198,13 @@ class OpenCommissioningWindow(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="commissioningTimeout", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="PAKEVerifier", Tag=1, Type=bytes), - ClusterObjectFieldDescriptor( - Label="discriminator", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="iterations", Tag=3, Type=uint), - ClusterObjectFieldDescriptor( - Label="salt", Tag=4, Type=bytes), - ClusterObjectFieldDescriptor( - Label="passcodeID", Tag=5, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="commissioningTimeout", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="PAKEVerifier", Tag=1, Type=bytes), + ClusterObjectFieldDescriptor(Label="discriminator", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="iterations", Tag=3, Type=uint), + ClusterObjectFieldDescriptor(Label="salt", Tag=4, Type=bytes), + ClusterObjectFieldDescriptor(Label="passcodeID", Tag=5, Type=uint), ]) commissioningTimeout: 'uint' = 0 @@ -10507,9 +10223,8 @@ class OpenBasicCommissioningWindow(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="commissioningTimeout", Tag=0, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="commissioningTimeout", Tag=0, Type=uint), ]) commissioningTimeout: 'uint' = 0 @@ -10523,9 +10238,11 @@ class RevokeCommissioning(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + + class Attributes: @dataclass class FeatureMap(ClusterAttributeDescriptor): @@ -10560,6 +10277,7 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class OperationalCredentials(Cluster): id: typing.ClassVar[int] = 0x003E @@ -10577,25 +10295,20 @@ class NodeOperationalCertStatus(IntEnum): kLabelConflict = 0x0A kInvalidFabricIndex = 0x0B + class Structs: @dataclass class FabricDescriptor(ClusterObject): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="fabricIndex", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="rootPublicKey", Tag=2, Type=bytes), - ClusterObjectFieldDescriptor( - Label="vendorId", Tag=3, Type=uint), - ClusterObjectFieldDescriptor( - Label="fabricId", Tag=4, Type=uint), - ClusterObjectFieldDescriptor( - Label="nodeId", Tag=5, Type=uint), - ClusterObjectFieldDescriptor( - Label="label", Tag=6, Type=str), + Fields = [ + ClusterObjectFieldDescriptor(Label="fabricIndex", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="rootPublicKey", Tag=2, Type=bytes), + ClusterObjectFieldDescriptor(Label="vendorId", Tag=3, Type=uint), + ClusterObjectFieldDescriptor(Label="fabricId", Tag=4, Type=uint), + ClusterObjectFieldDescriptor(Label="nodeId", Tag=5, Type=uint), + ClusterObjectFieldDescriptor(Label="label", Tag=6, Type=str), ]) fabricIndex: 'uint' = 0 @@ -10610,16 +10323,16 @@ class NOCStruct(ClusterObject): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="fabricIndex", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="noc", Tag=2, Type=bytes), + Fields = [ + ClusterObjectFieldDescriptor(Label="fabricIndex", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="noc", Tag=2, Type=bytes), ]) fabricIndex: 'uint' = 0 noc: 'bytes' = b"" + + class Commands: @dataclass class AttestationRequest(ClusterCommand): @@ -10630,9 +10343,8 @@ class AttestationRequest(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="attestationNonce", Tag=0, Type=bytes), + Fields = [ + ClusterObjectFieldDescriptor(Label="attestationNonce", Tag=0, Type=bytes), ]) attestationNonce: 'bytes' = b"" @@ -10646,11 +10358,9 @@ class AttestationResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="attestationElements", Tag=0, Type=bytes), - ClusterObjectFieldDescriptor( - Label="signature", Tag=1, Type=bytes), + Fields = [ + ClusterObjectFieldDescriptor(Label="attestationElements", Tag=0, Type=bytes), + ClusterObjectFieldDescriptor(Label="signature", Tag=1, Type=bytes), ]) attestationElements: 'bytes' = b"" @@ -10665,9 +10375,8 @@ class CertificateChainRequest(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="certificateType", Tag=0, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="certificateType", Tag=0, Type=uint), ]) certificateType: 'uint' = 0 @@ -10681,9 +10390,8 @@ class CertificateChainResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="certificate", Tag=0, Type=bytes), + Fields = [ + ClusterObjectFieldDescriptor(Label="certificate", Tag=0, Type=bytes), ]) certificate: 'bytes' = b"" @@ -10697,9 +10405,8 @@ class OpCSRRequest(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="CSRNonce", Tag=0, Type=bytes), + Fields = [ + ClusterObjectFieldDescriptor(Label="CSRNonce", Tag=0, Type=bytes), ]) CSRNonce: 'bytes' = b"" @@ -10713,11 +10420,9 @@ class OpCSRResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="NOCSRElements", Tag=0, Type=bytes), - ClusterObjectFieldDescriptor( - Label="attestationSignature", Tag=1, Type=bytes), + Fields = [ + ClusterObjectFieldDescriptor(Label="NOCSRElements", Tag=0, Type=bytes), + ClusterObjectFieldDescriptor(Label="attestationSignature", Tag=1, Type=bytes), ]) NOCSRElements: 'bytes' = b"" @@ -10732,17 +10437,12 @@ class AddNOC(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="NOCValue", Tag=0, Type=bytes), - ClusterObjectFieldDescriptor( - Label="ICACValue", Tag=1, Type=typing.Optional[bytes]), - ClusterObjectFieldDescriptor( - Label="IPKValue", Tag=2, Type=bytes), - ClusterObjectFieldDescriptor( - Label="caseAdminNode", Tag=3, Type=uint), - ClusterObjectFieldDescriptor( - Label="adminVendorId", Tag=4, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="NOCValue", Tag=0, Type=bytes), + ClusterObjectFieldDescriptor(Label="ICACValue", Tag=1, Type=typing.Optional[bytes]), + ClusterObjectFieldDescriptor(Label="IPKValue", Tag=2, Type=bytes), + ClusterObjectFieldDescriptor(Label="caseAdminNode", Tag=3, Type=uint), + ClusterObjectFieldDescriptor(Label="adminVendorId", Tag=4, Type=uint), ]) NOCValue: 'bytes' = b"" @@ -10760,11 +10460,9 @@ class UpdateNOC(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="NOCValue", Tag=0, Type=bytes), - ClusterObjectFieldDescriptor( - Label="ICACValue", Tag=1, Type=typing.Optional[bytes]), + Fields = [ + ClusterObjectFieldDescriptor(Label="NOCValue", Tag=0, Type=bytes), + ClusterObjectFieldDescriptor(Label="ICACValue", Tag=1, Type=typing.Optional[bytes]), ]) NOCValue: 'bytes' = b"" @@ -10779,13 +10477,10 @@ class NOCResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="statusCode", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="fabricIndex", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="debugText", Tag=2, Type=str), + Fields = [ + ClusterObjectFieldDescriptor(Label="statusCode", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="fabricIndex", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="debugText", Tag=2, Type=str), ]) statusCode: 'uint' = 0 @@ -10801,9 +10496,8 @@ class UpdateFabricLabel(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="label", Tag=0, Type=str), + Fields = [ + ClusterObjectFieldDescriptor(Label="label", Tag=0, Type=str), ]) label: 'str' = "" @@ -10817,9 +10511,8 @@ class RemoveFabric(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="fabricIndex", Tag=0, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="fabricIndex", Tag=0, Type=uint), ]) fabricIndex: 'uint' = 0 @@ -10833,9 +10526,8 @@ class AddTrustedRootCertificate(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="rootCertificate", Tag=0, Type=bytes), + Fields = [ + ClusterObjectFieldDescriptor(Label="rootCertificate", Tag=0, Type=bytes), ]) rootCertificate: 'bytes' = b"" @@ -10849,13 +10541,13 @@ class RemoveTrustedRootCertificate(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="trustedRootIdentifier", Tag=0, Type=bytes), + Fields = [ + ClusterObjectFieldDescriptor(Label="trustedRootIdentifier", Tag=0, Type=bytes), ]) trustedRootIdentifier: 'bytes' = b"" + class Attributes: @dataclass class FabricsList(ClusterAttributeDescriptor): @@ -10871,8 +10563,7 @@ def attribute_id(cls) -> int: def attribute_type(cls) -> ClusterObjectFieldDescriptor: return ClusterObjectFieldDescriptor(Type=typing.List[OperationalCredentials.Structs.FabricDescriptor]) - value: 'typing.List[OperationalCredentials.Structs.FabricDescriptor]' = field( - default_factory=lambda: []) + value: 'typing.List[OperationalCredentials.Structs.FabricDescriptor]' = field(default_factory=lambda: []) @dataclass class SupportedFabrics(ClusterAttributeDescriptor): @@ -10971,6 +10662,7 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class GroupKeyManagement(Cluster): id: typing.ClassVar[int] = 0x003F @@ -10980,23 +10672,19 @@ class GroupKeySecurityPolicy(IntEnum): kStandard = 0x00 kLowLatency = 0x01 + class Structs: @dataclass class GroupKey(ClusterObject): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="vendorId", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="groupKeyIndex", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="groupKeyRoot", Tag=3, Type=bytes), - ClusterObjectFieldDescriptor( - Label="groupKeyEpochStartTime", Tag=4, Type=uint), - ClusterObjectFieldDescriptor( - Label="groupKeySecurityPolicy", Tag=5, Type=GroupKeyManagement.Enums.GroupKeySecurityPolicy), + Fields = [ + ClusterObjectFieldDescriptor(Label="vendorId", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="groupKeyIndex", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="groupKeyRoot", Tag=3, Type=bytes), + ClusterObjectFieldDescriptor(Label="groupKeyEpochStartTime", Tag=4, Type=uint), + ClusterObjectFieldDescriptor(Label="groupKeySecurityPolicy", Tag=5, Type=GroupKeyManagement.Enums.GroupKeySecurityPolicy), ]) vendorId: 'uint' = 0 @@ -11010,19 +10698,19 @@ class GroupState(ClusterObject): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="vendorId", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="vendorGroupId", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="groupKeySetIndex", Tag=3, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="vendorId", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="vendorGroupId", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="groupKeySetIndex", Tag=3, Type=uint), ]) vendorId: 'uint' = 0 vendorGroupId: 'uint' = 0 groupKeySetIndex: 'uint' = 0 + + + class Attributes: @dataclass class Groups(ClusterAttributeDescriptor): @@ -11038,8 +10726,7 @@ def attribute_id(cls) -> int: def attribute_type(cls) -> ClusterObjectFieldDescriptor: return ClusterObjectFieldDescriptor(Type=typing.List[GroupKeyManagement.Structs.GroupState]) - value: 'typing.List[GroupKeyManagement.Structs.GroupState]' = field( - default_factory=lambda: []) + value: 'typing.List[GroupKeyManagement.Structs.GroupState]' = field(default_factory=lambda: []) @dataclass class GroupKeys(ClusterAttributeDescriptor): @@ -11055,8 +10742,7 @@ def attribute_id(cls) -> int: def attribute_type(cls) -> ClusterObjectFieldDescriptor: return ClusterObjectFieldDescriptor(Type=typing.List[GroupKeyManagement.Structs.GroupKey]) - value: 'typing.List[GroupKeyManagement.Structs.GroupKey]' = field( - default_factory=lambda: []) + value: 'typing.List[GroupKeyManagement.Structs.GroupKey]' = field(default_factory=lambda: []) @dataclass class FeatureMap(ClusterAttributeDescriptor): @@ -11091,26 +10777,29 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class FixedLabel(Cluster): id: typing.ClassVar[int] = 0x0040 + class Structs: @dataclass class LabelStruct(ClusterObject): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="label", Tag=1, Type=str), - ClusterObjectFieldDescriptor( - Label="value", Tag=2, Type=str), + Fields = [ + ClusterObjectFieldDescriptor(Label="label", Tag=1, Type=str), + ClusterObjectFieldDescriptor(Label="value", Tag=2, Type=str), ]) label: 'str' = "" value: 'str' = "" + + + class Attributes: @dataclass class LabelList(ClusterAttributeDescriptor): @@ -11126,8 +10815,7 @@ def attribute_id(cls) -> int: def attribute_type(cls) -> ClusterObjectFieldDescriptor: return ClusterObjectFieldDescriptor(Type=typing.List[FixedLabel.Structs.LabelStruct]) - value: 'typing.List[FixedLabel.Structs.LabelStruct]' = field( - default_factory=lambda: []) + value: 'typing.List[FixedLabel.Structs.LabelStruct]' = field(default_factory=lambda: []) @dataclass class FeatureMap(ClusterAttributeDescriptor): @@ -11162,26 +10850,29 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class UserLabel(Cluster): id: typing.ClassVar[int] = 0x0041 + class Structs: @dataclass class LabelStruct(ClusterObject): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="label", Tag=1, Type=str), - ClusterObjectFieldDescriptor( - Label="value", Tag=2, Type=str), + Fields = [ + ClusterObjectFieldDescriptor(Label="label", Tag=1, Type=str), + ClusterObjectFieldDescriptor(Label="value", Tag=2, Type=str), ]) label: 'str' = "" value: 'str' = "" + + + class Attributes: @dataclass class LabelList(ClusterAttributeDescriptor): @@ -11197,8 +10888,7 @@ def attribute_id(cls) -> int: def attribute_type(cls) -> ClusterObjectFieldDescriptor: return ClusterObjectFieldDescriptor(Type=typing.List[UserLabel.Structs.LabelStruct]) - value: 'typing.List[UserLabel.Structs.LabelStruct]' = field( - default_factory=lambda: []) + value: 'typing.List[UserLabel.Structs.LabelStruct]' = field(default_factory=lambda: []) @dataclass class FeatureMap(ClusterAttributeDescriptor): @@ -11233,10 +10923,14 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class ProxyConfiguration(Cluster): id: typing.ClassVar[int] = 0x0042 + + + class Attributes: @dataclass class FeatureMap(ClusterAttributeDescriptor): @@ -11271,10 +10965,14 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class ProxyDiscovery(Cluster): id: typing.ClassVar[int] = 0x0043 + + + class Attributes: @dataclass class FeatureMap(ClusterAttributeDescriptor): @@ -11309,10 +11007,14 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class ProxyValid(Cluster): id: typing.ClassVar[int] = 0x0044 + + + class Attributes: @dataclass class FeatureMap(ClusterAttributeDescriptor): @@ -11347,10 +11049,14 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class BooleanState(Cluster): id: typing.ClassVar[int] = 0x0045 + + + class Attributes: @dataclass class StateValue(ClusterAttributeDescriptor): @@ -11400,6 +11106,7 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + class Events: @dataclass class StateChange(ClusterEventDescriptor): @@ -11409,9 +11116,8 @@ class StateChange(ClusterEventDescriptor): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="stateValue", Tag=0, Type=bool), + Fields = [ + ClusterObjectFieldDescriptor(Label="stateValue", Tag=0, Type=bool), ]) stateValue: 'bool' = False @@ -11421,19 +11127,17 @@ def descriptor(cls) -> ClusterObjectDescriptor: class ModeSelect(Cluster): id: typing.ClassVar[int] = 0x0050 + class Structs: @dataclass class ModeOptionStruct(ClusterObject): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="label", Tag=1, Type=str), - ClusterObjectFieldDescriptor( - Label="mode", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="semanticTag", Tag=3, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="label", Tag=1, Type=str), + ClusterObjectFieldDescriptor(Label="mode", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="semanticTag", Tag=3, Type=uint), ]) label: 'str' = "" @@ -11445,16 +11149,16 @@ class SemanticTag(ClusterObject): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="mfgCode", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="value", Tag=2, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="mfgCode", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="value", Tag=2, Type=uint), ]) mfgCode: 'uint' = 0 value: 'uint' = 0 + + class Commands: @dataclass class ChangeToMode(ClusterCommand): @@ -11465,13 +11169,13 @@ class ChangeToMode(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="newMode", Tag=0, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="newMode", Tag=0, Type=uint), ]) newMode: 'uint' = 0 + class Attributes: @dataclass class CurrentMode(ClusterAttributeDescriptor): @@ -11503,8 +11207,7 @@ def attribute_id(cls) -> int: def attribute_type(cls) -> ClusterObjectFieldDescriptor: return ClusterObjectFieldDescriptor(Type=typing.List[ModeSelect.Structs.ModeOptionStruct]) - value: 'typing.List[ModeSelect.Structs.ModeOptionStruct]' = field( - default_factory=lambda: []) + value: 'typing.List[ModeSelect.Structs.ModeOptionStruct]' = field(default_factory=lambda: []) @dataclass class OnMode(ClusterAttributeDescriptor): @@ -11587,10 +11290,14 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class ShadeConfiguration(Cluster): id: typing.ClassVar[int] = 0x0100 + + + class Attributes: @dataclass class PhysicalClosedLimit(ClusterAttributeDescriptor): @@ -11705,6 +11412,7 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class DoorLock(Cluster): id: typing.ClassVar[int] = 0x0101 @@ -11882,22 +11590,23 @@ class DoorLockUserType(IntEnum): kNonAccessUser = 0x04 kNotSupported = 0xFF + class Structs: @dataclass class DlCredential(ClusterObject): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="credentialType", Tag=1, Type=DoorLock.Enums.DlCredentialType), - ClusterObjectFieldDescriptor( - Label="credentialIndex", Tag=2, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="credentialType", Tag=1, Type=DoorLock.Enums.DlCredentialType), + ClusterObjectFieldDescriptor(Label="credentialIndex", Tag=2, Type=uint), ]) credentialType: 'DoorLock.Enums.DlCredentialType' = 0 credentialIndex: 'uint' = 0 + + class Commands: @dataclass class LockDoor(ClusterCommand): @@ -11908,9 +11617,8 @@ class LockDoor(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="pinCode", Tag=0, Type=typing.Optional[bytes]), + Fields = [ + ClusterObjectFieldDescriptor(Label="pinCode", Tag=0, Type=typing.Optional[bytes]), ]) pinCode: 'typing.Optional[bytes]' = None @@ -11924,9 +11632,8 @@ class UnlockDoor(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="pinCode", Tag=0, Type=typing.Optional[bytes]), + Fields = [ + ClusterObjectFieldDescriptor(Label="pinCode", Tag=0, Type=typing.Optional[bytes]), ]) pinCode: 'typing.Optional[bytes]' = None @@ -11940,11 +11647,9 @@ class UnlockWithTimeout(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="timeout", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="pinCode", Tag=1, Type=typing.Optional[bytes]), + Fields = [ + ClusterObjectFieldDescriptor(Label="timeout", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="pinCode", Tag=1, Type=typing.Optional[bytes]), ]) timeout: 'uint' = 0 @@ -11959,9 +11664,8 @@ class GetLogRecord(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="logIndex", Tag=0, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="logIndex", Tag=0, Type=uint), ]) logIndex: 'uint' = 0 @@ -11975,21 +11679,14 @@ class GetLogRecordResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="logEntryId", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="timestamp", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="eventType", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="source", Tag=3, Type=uint), - ClusterObjectFieldDescriptor( - Label="eventIdOrAlarmCode", Tag=4, Type=uint), - ClusterObjectFieldDescriptor( - Label="userId", Tag=5, Type=uint), - ClusterObjectFieldDescriptor( - Label="pin", Tag=6, Type=bytes), + Fields = [ + ClusterObjectFieldDescriptor(Label="logEntryId", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="timestamp", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="eventType", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="source", Tag=3, Type=uint), + ClusterObjectFieldDescriptor(Label="eventIdOrAlarmCode", Tag=4, Type=uint), + ClusterObjectFieldDescriptor(Label="userId", Tag=5, Type=uint), + ClusterObjectFieldDescriptor(Label="pin", Tag=6, Type=bytes), ]) logEntryId: 'uint' = 0 @@ -12009,15 +11706,11 @@ class SetPINCode(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="userId", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="userStatus", Tag=1, Type=DoorLock.Enums.DlUserStatus), - ClusterObjectFieldDescriptor( - Label="userType", Tag=2, Type=DoorLock.Enums.DlUserType), - ClusterObjectFieldDescriptor( - Label="pin", Tag=3, Type=bytes), + Fields = [ + ClusterObjectFieldDescriptor(Label="userId", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="userStatus", Tag=1, Type=DoorLock.Enums.DlUserStatus), + ClusterObjectFieldDescriptor(Label="userType", Tag=2, Type=DoorLock.Enums.DlUserType), + ClusterObjectFieldDescriptor(Label="pin", Tag=3, Type=bytes), ]) userId: 'uint' = 0 @@ -12034,9 +11727,8 @@ class GetPINCode(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="userId", Tag=0, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="userId", Tag=0, Type=uint), ]) userId: 'uint' = 0 @@ -12050,15 +11742,11 @@ class GetPINCodeResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="userId", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="userStatus", Tag=1, Type=typing.Union[Nullable, DoorLock.Enums.DlUserStatus]), - ClusterObjectFieldDescriptor( - Label="userType", Tag=2, Type=typing.Union[Nullable, DoorLock.Enums.DlUserType]), - ClusterObjectFieldDescriptor( - Label="pin", Tag=3, Type=typing.Union[Nullable, bytes]), + Fields = [ + ClusterObjectFieldDescriptor(Label="userId", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="userStatus", Tag=1, Type=typing.Union[Nullable, DoorLock.Enums.DlUserStatus]), + ClusterObjectFieldDescriptor(Label="userType", Tag=2, Type=typing.Union[Nullable, DoorLock.Enums.DlUserType]), + ClusterObjectFieldDescriptor(Label="pin", Tag=3, Type=typing.Union[Nullable, bytes]), ]) userId: 'uint' = 0 @@ -12075,9 +11763,8 @@ class ClearPINCode(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="pinSlotIndex", Tag=0, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="pinSlotIndex", Tag=0, Type=uint), ]) pinSlotIndex: 'uint' = 0 @@ -12091,9 +11778,10 @@ class ClearAllPINCodes(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class SetUserStatus(ClusterCommand): cluster_id: typing.ClassVar[int] = 0x0101 @@ -12103,11 +11791,9 @@ class SetUserStatus(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="userId", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="userStatus", Tag=1, Type=DoorLock.Enums.DlUserStatus), + Fields = [ + ClusterObjectFieldDescriptor(Label="userId", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="userStatus", Tag=1, Type=DoorLock.Enums.DlUserStatus), ]) userId: 'uint' = 0 @@ -12122,9 +11808,8 @@ class GetUserStatus(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="userId", Tag=0, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="userId", Tag=0, Type=uint), ]) userId: 'uint' = 0 @@ -12138,11 +11823,9 @@ class GetUserStatusResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="userId", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="userStatus", Tag=1, Type=DoorLock.Enums.DlUserStatus), + Fields = [ + ClusterObjectFieldDescriptor(Label="userId", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="userStatus", Tag=1, Type=DoorLock.Enums.DlUserStatus), ]) userId: 'uint' = 0 @@ -12157,21 +11840,14 @@ class SetWeekDaySchedule(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="weekDayIndex", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="userIndex", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="daysMask", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="startHour", Tag=3, Type=uint), - ClusterObjectFieldDescriptor( - Label="startMinute", Tag=4, Type=uint), - ClusterObjectFieldDescriptor( - Label="endHour", Tag=5, Type=uint), - ClusterObjectFieldDescriptor( - Label="endMinute", Tag=6, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="weekDayIndex", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="userIndex", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="daysMask", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="startHour", Tag=3, Type=uint), + ClusterObjectFieldDescriptor(Label="startMinute", Tag=4, Type=uint), + ClusterObjectFieldDescriptor(Label="endHour", Tag=5, Type=uint), + ClusterObjectFieldDescriptor(Label="endMinute", Tag=6, Type=uint), ]) weekDayIndex: 'uint' = 0 @@ -12191,11 +11867,9 @@ class GetWeekDaySchedule(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="weekDayIndex", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="userIndex", Tag=1, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="weekDayIndex", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="userIndex", Tag=1, Type=uint), ]) weekDayIndex: 'uint' = 0 @@ -12210,23 +11884,15 @@ class GetWeekDayScheduleResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="weekDayIndex", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="userIndex", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="status", Tag=2, Type=DoorLock.Enums.DlStatus), - ClusterObjectFieldDescriptor( - Label="daysMask", Tag=3, Type=uint), - ClusterObjectFieldDescriptor( - Label="startHour", Tag=4, Type=uint), - ClusterObjectFieldDescriptor( - Label="startMinute", Tag=5, Type=uint), - ClusterObjectFieldDescriptor( - Label="endHour", Tag=6, Type=uint), - ClusterObjectFieldDescriptor( - Label="endMinute", Tag=7, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="weekDayIndex", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="userIndex", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="status", Tag=2, Type=DoorLock.Enums.DlStatus), + ClusterObjectFieldDescriptor(Label="daysMask", Tag=3, Type=uint), + ClusterObjectFieldDescriptor(Label="startHour", Tag=4, Type=uint), + ClusterObjectFieldDescriptor(Label="startMinute", Tag=5, Type=uint), + ClusterObjectFieldDescriptor(Label="endHour", Tag=6, Type=uint), + ClusterObjectFieldDescriptor(Label="endMinute", Tag=7, Type=uint), ]) weekDayIndex: 'uint' = 0 @@ -12247,11 +11913,9 @@ class ClearWeekDaySchedule(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="weekDayIndex", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="userIndex", Tag=1, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="weekDayIndex", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="userIndex", Tag=1, Type=uint), ]) weekDayIndex: 'uint' = 0 @@ -12266,15 +11930,11 @@ class SetYearDaySchedule(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="yearDayIndex", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="userIndex", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="localStartTime", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="localEndTime", Tag=3, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="yearDayIndex", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="userIndex", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="localStartTime", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="localEndTime", Tag=3, Type=uint), ]) yearDayIndex: 'uint' = 0 @@ -12291,11 +11951,9 @@ class GetYearDaySchedule(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="yearDayIndex", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="userIndex", Tag=1, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="yearDayIndex", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="userIndex", Tag=1, Type=uint), ]) yearDayIndex: 'uint' = 0 @@ -12310,17 +11968,12 @@ class GetYearDayScheduleResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="yearDayIndex", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="userIndex", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="status", Tag=2, Type=DoorLock.Enums.DlStatus), - ClusterObjectFieldDescriptor( - Label="localStartTime", Tag=3, Type=uint), - ClusterObjectFieldDescriptor( - Label="localEndTime", Tag=4, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="yearDayIndex", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="userIndex", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="status", Tag=2, Type=DoorLock.Enums.DlStatus), + ClusterObjectFieldDescriptor(Label="localStartTime", Tag=3, Type=uint), + ClusterObjectFieldDescriptor(Label="localEndTime", Tag=4, Type=uint), ]) yearDayIndex: 'uint' = 0 @@ -12338,11 +11991,9 @@ class ClearYearDaySchedule(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="yearDayIndex", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="userIndex", Tag=1, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="yearDayIndex", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="userIndex", Tag=1, Type=uint), ]) yearDayIndex: 'uint' = 0 @@ -12357,15 +12008,11 @@ class SetHolidaySchedule(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="holidayIndex", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="localStartTime", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="localEndTime", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="operatingMode", Tag=3, Type=DoorLock.Enums.DlOperatingMode), + Fields = [ + ClusterObjectFieldDescriptor(Label="holidayIndex", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="localStartTime", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="localEndTime", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="operatingMode", Tag=3, Type=DoorLock.Enums.DlOperatingMode), ]) holidayIndex: 'uint' = 0 @@ -12382,9 +12029,8 @@ class GetHolidaySchedule(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="holidayIndex", Tag=0, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="holidayIndex", Tag=0, Type=uint), ]) holidayIndex: 'uint' = 0 @@ -12398,17 +12044,12 @@ class GetHolidayScheduleResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="holidayIndex", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="status", Tag=1, Type=DoorLock.Enums.DlStatus), - ClusterObjectFieldDescriptor( - Label="localStartTime", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="localEndTime", Tag=3, Type=uint), - ClusterObjectFieldDescriptor( - Label="operatingMode", Tag=4, Type=DoorLock.Enums.DlOperatingMode), + Fields = [ + ClusterObjectFieldDescriptor(Label="holidayIndex", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="status", Tag=1, Type=DoorLock.Enums.DlStatus), + ClusterObjectFieldDescriptor(Label="localStartTime", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="localEndTime", Tag=3, Type=uint), + ClusterObjectFieldDescriptor(Label="operatingMode", Tag=4, Type=DoorLock.Enums.DlOperatingMode), ]) holidayIndex: 'uint' = 0 @@ -12426,9 +12067,8 @@ class ClearHolidaySchedule(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="holidayIndex", Tag=0, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="holidayIndex", Tag=0, Type=uint), ]) holidayIndex: 'uint' = 0 @@ -12442,11 +12082,9 @@ class SetUserType(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="userId", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="userType", Tag=1, Type=DoorLock.Enums.DlUserType), + Fields = [ + ClusterObjectFieldDescriptor(Label="userId", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="userType", Tag=1, Type=DoorLock.Enums.DlUserType), ]) userId: 'uint' = 0 @@ -12461,9 +12099,8 @@ class GetUserType(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="userId", Tag=0, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="userId", Tag=0, Type=uint), ]) userId: 'uint' = 0 @@ -12477,11 +12114,9 @@ class GetUserTypeResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="userId", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="userType", Tag=1, Type=DoorLock.Enums.DlUserType), + Fields = [ + ClusterObjectFieldDescriptor(Label="userId", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="userType", Tag=1, Type=DoorLock.Enums.DlUserType), ]) userId: 'uint' = 0 @@ -12496,15 +12131,11 @@ class SetRFIDCode(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="userId", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="userStatus", Tag=1, Type=DoorLock.Enums.DlUserStatus), - ClusterObjectFieldDescriptor( - Label="userType", Tag=2, Type=DoorLock.Enums.DlUserType), - ClusterObjectFieldDescriptor( - Label="rfidCode", Tag=3, Type=bytes), + Fields = [ + ClusterObjectFieldDescriptor(Label="userId", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="userStatus", Tag=1, Type=DoorLock.Enums.DlUserStatus), + ClusterObjectFieldDescriptor(Label="userType", Tag=2, Type=DoorLock.Enums.DlUserType), + ClusterObjectFieldDescriptor(Label="rfidCode", Tag=3, Type=bytes), ]) userId: 'uint' = 0 @@ -12521,9 +12152,8 @@ class GetRFIDCode(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="userId", Tag=0, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="userId", Tag=0, Type=uint), ]) userId: 'uint' = 0 @@ -12537,15 +12167,11 @@ class GetRFIDCodeResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="userId", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="userStatus", Tag=1, Type=typing.Union[Nullable, DoorLock.Enums.DlUserStatus]), - ClusterObjectFieldDescriptor( - Label="userType", Tag=2, Type=typing.Union[Nullable, DoorLock.Enums.DlUserType]), - ClusterObjectFieldDescriptor( - Label="rfidCode", Tag=3, Type=typing.Union[Nullable, bytes]), + Fields = [ + ClusterObjectFieldDescriptor(Label="userId", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="userStatus", Tag=1, Type=typing.Union[Nullable, DoorLock.Enums.DlUserStatus]), + ClusterObjectFieldDescriptor(Label="userType", Tag=2, Type=typing.Union[Nullable, DoorLock.Enums.DlUserType]), + ClusterObjectFieldDescriptor(Label="rfidCode", Tag=3, Type=typing.Union[Nullable, bytes]), ]) userId: 'uint' = 0 @@ -12562,9 +12188,8 @@ class ClearRFIDCode(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="rfidSlotIndex", Tag=0, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="rfidSlotIndex", Tag=0, Type=uint), ]) rfidSlotIndex: 'uint' = 0 @@ -12578,9 +12203,10 @@ class ClearAllRFIDCodes(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class SetUser(ClusterCommand): cluster_id: typing.ClassVar[int] = 0x0101 @@ -12590,21 +12216,14 @@ class SetUser(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="operationType", Tag=0, Type=DoorLock.Enums.DlDataOperationType), - ClusterObjectFieldDescriptor( - Label="userIndex", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="userName", Tag=2, Type=typing.Union[Nullable, str]), - ClusterObjectFieldDescriptor( - Label="userUniqueId", Tag=3, Type=typing.Union[Nullable, uint]), - ClusterObjectFieldDescriptor( - Label="userStatus", Tag=4, Type=DoorLock.Enums.DlUserStatus), - ClusterObjectFieldDescriptor( - Label="userType", Tag=5, Type=DoorLock.Enums.DlUserType), - ClusterObjectFieldDescriptor( - Label="credentialRule", Tag=6, Type=typing.Union[Nullable, DoorLock.Enums.DlCredentialRule]), + Fields = [ + ClusterObjectFieldDescriptor(Label="operationType", Tag=0, Type=DoorLock.Enums.DlDataOperationType), + ClusterObjectFieldDescriptor(Label="userIndex", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="userName", Tag=2, Type=typing.Union[Nullable, str]), + ClusterObjectFieldDescriptor(Label="userUniqueId", Tag=3, Type=typing.Union[Nullable, uint]), + ClusterObjectFieldDescriptor(Label="userStatus", Tag=4, Type=DoorLock.Enums.DlUserStatus), + ClusterObjectFieldDescriptor(Label="userType", Tag=5, Type=DoorLock.Enums.DlUserType), + ClusterObjectFieldDescriptor(Label="credentialRule", Tag=6, Type=typing.Union[Nullable, DoorLock.Enums.DlCredentialRule]), ]) operationType: 'DoorLock.Enums.DlDataOperationType' = 0 @@ -12624,9 +12243,8 @@ class GetUser(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="userIndex", Tag=0, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="userIndex", Tag=0, Type=uint), ]) userIndex: 'uint' = 0 @@ -12640,27 +12258,17 @@ class GetUserResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="userIndex", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="userName", Tag=1, Type=typing.Union[Nullable, str]), - ClusterObjectFieldDescriptor( - Label="userUniqueId", Tag=2, Type=typing.Union[Nullable, uint]), - ClusterObjectFieldDescriptor( - Label="userStatus", Tag=3, Type=typing.Union[Nullable, DoorLock.Enums.DlUserStatus]), - ClusterObjectFieldDescriptor( - Label="userType", Tag=4, Type=typing.Union[Nullable, DoorLock.Enums.DlUserType]), - ClusterObjectFieldDescriptor( - Label="credentialRule", Tag=5, Type=typing.Union[Nullable, DoorLock.Enums.DlCredentialRule]), - ClusterObjectFieldDescriptor( - Label="credentials", Tag=6, Type=typing.Union[Nullable, typing.List[DoorLock.Structs.DlCredential]]), - ClusterObjectFieldDescriptor( - Label="creatorFabricIndex", Tag=7, Type=typing.Union[Nullable, uint]), - ClusterObjectFieldDescriptor( - Label="lastModifiedFabricIndex", Tag=8, Type=typing.Union[Nullable, uint]), - ClusterObjectFieldDescriptor( - Label="nextUserIndex", Tag=9, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="userIndex", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="userName", Tag=1, Type=typing.Union[Nullable, str]), + ClusterObjectFieldDescriptor(Label="userUniqueId", Tag=2, Type=typing.Union[Nullable, uint]), + ClusterObjectFieldDescriptor(Label="userStatus", Tag=3, Type=typing.Union[Nullable, DoorLock.Enums.DlUserStatus]), + ClusterObjectFieldDescriptor(Label="userType", Tag=4, Type=typing.Union[Nullable, DoorLock.Enums.DlUserType]), + ClusterObjectFieldDescriptor(Label="credentialRule", Tag=5, Type=typing.Union[Nullable, DoorLock.Enums.DlCredentialRule]), + ClusterObjectFieldDescriptor(Label="credentials", Tag=6, Type=typing.Union[Nullable, typing.List[DoorLock.Structs.DlCredential]]), + ClusterObjectFieldDescriptor(Label="creatorFabricIndex", Tag=7, Type=typing.Union[Nullable, uint]), + ClusterObjectFieldDescriptor(Label="lastModifiedFabricIndex", Tag=8, Type=typing.Union[Nullable, uint]), + ClusterObjectFieldDescriptor(Label="nextUserIndex", Tag=9, Type=uint), ]) userIndex: 'uint' = 0 @@ -12683,9 +12291,8 @@ class ClearUser(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="userIndex", Tag=0, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="userIndex", Tag=0, Type=uint), ]) userIndex: 'uint' = 0 @@ -12699,19 +12306,13 @@ class OperatingEventNotification(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="operationEventSource", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="operationEventCode", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="userId", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="pin", Tag=3, Type=bytes), - ClusterObjectFieldDescriptor( - Label="localTime", Tag=4, Type=uint), - ClusterObjectFieldDescriptor( - Label="data", Tag=5, Type=typing.Optional[str]), + Fields = [ + ClusterObjectFieldDescriptor(Label="operationEventSource", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="operationEventCode", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="userId", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="pin", Tag=3, Type=bytes), + ClusterObjectFieldDescriptor(Label="localTime", Tag=4, Type=uint), + ClusterObjectFieldDescriptor(Label="data", Tag=5, Type=typing.Optional[str]), ]) operationEventSource: 'uint' = 0 @@ -12730,23 +12331,15 @@ class ProgrammingEventNotification(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="programEventSource", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="programEventCode", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="userId", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="pin", Tag=3, Type=bytes), - ClusterObjectFieldDescriptor( - Label="userType", Tag=4, Type=DoorLock.Enums.DlUserType), - ClusterObjectFieldDescriptor( - Label="userStatus", Tag=5, Type=DoorLock.Enums.DlUserStatus), - ClusterObjectFieldDescriptor( - Label="localTime", Tag=6, Type=uint), - ClusterObjectFieldDescriptor( - Label="data", Tag=7, Type=typing.Optional[str]), + Fields = [ + ClusterObjectFieldDescriptor(Label="programEventSource", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="programEventCode", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="userId", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="pin", Tag=3, Type=bytes), + ClusterObjectFieldDescriptor(Label="userType", Tag=4, Type=DoorLock.Enums.DlUserType), + ClusterObjectFieldDescriptor(Label="userStatus", Tag=5, Type=DoorLock.Enums.DlUserStatus), + ClusterObjectFieldDescriptor(Label="localTime", Tag=6, Type=uint), + ClusterObjectFieldDescriptor(Label="data", Tag=7, Type=typing.Optional[str]), ]) programEventSource: 'uint' = 0 @@ -12767,22 +12360,16 @@ class SetCredential(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="operationType", Tag=0, Type=DoorLock.Enums.DlDataOperationType), - ClusterObjectFieldDescriptor( - Label="credential", Tag=1, Type=DoorLock.Structs.DlCredential), - ClusterObjectFieldDescriptor( - Label="credentialData", Tag=2, Type=bytes), - ClusterObjectFieldDescriptor( - Label="userIndex", Tag=3, Type=typing.Union[Nullable, uint]), - ClusterObjectFieldDescriptor( - Label="userStatus", Tag=4, Type=typing.Union[Nullable, DoorLock.Enums.DlUserStatus]), + Fields = [ + ClusterObjectFieldDescriptor(Label="operationType", Tag=0, Type=DoorLock.Enums.DlDataOperationType), + ClusterObjectFieldDescriptor(Label="credential", Tag=1, Type=DoorLock.Structs.DlCredential), + ClusterObjectFieldDescriptor(Label="credentialData", Tag=2, Type=bytes), + ClusterObjectFieldDescriptor(Label="userIndex", Tag=3, Type=typing.Union[Nullable, uint]), + ClusterObjectFieldDescriptor(Label="userStatus", Tag=4, Type=typing.Union[Nullable, DoorLock.Enums.DlUserStatus]), ]) operationType: 'DoorLock.Enums.DlDataOperationType' = 0 - credential: 'DoorLock.Structs.DlCredential' = field( - default_factory=lambda: DoorLock.Structs.DlCredential()) + credential: 'DoorLock.Structs.DlCredential' = field(default_factory=lambda: DoorLock.Structs.DlCredential()) credentialData: 'bytes' = b"" userIndex: 'typing.Union[Nullable, uint]' = NullValue userStatus: 'typing.Union[Nullable, DoorLock.Enums.DlUserStatus]' = NullValue @@ -12796,13 +12383,10 @@ class SetCredentialResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="status", Tag=0, Type=DoorLock.Enums.DlStatus), - ClusterObjectFieldDescriptor( - Label="userIndex", Tag=1, Type=typing.Union[Nullable, uint]), - ClusterObjectFieldDescriptor( - Label="nextCredentialIndex", Tag=2, Type=typing.Union[Nullable, uint]), + Fields = [ + ClusterObjectFieldDescriptor(Label="status", Tag=0, Type=DoorLock.Enums.DlStatus), + ClusterObjectFieldDescriptor(Label="userIndex", Tag=1, Type=typing.Union[Nullable, uint]), + ClusterObjectFieldDescriptor(Label="nextCredentialIndex", Tag=2, Type=typing.Union[Nullable, uint]), ]) status: 'DoorLock.Enums.DlStatus' = 0 @@ -12818,13 +12402,11 @@ class GetCredentialStatus(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="credential", Tag=0, Type=DoorLock.Structs.DlCredential), + Fields = [ + ClusterObjectFieldDescriptor(Label="credential", Tag=0, Type=DoorLock.Structs.DlCredential), ]) - credential: 'DoorLock.Structs.DlCredential' = field( - default_factory=lambda: DoorLock.Structs.DlCredential()) + credential: 'DoorLock.Structs.DlCredential' = field(default_factory=lambda: DoorLock.Structs.DlCredential()) @dataclass class GetCredentialStatusResponse(ClusterCommand): @@ -12835,13 +12417,10 @@ class GetCredentialStatusResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="credentialExists", Tag=0, Type=bool), - ClusterObjectFieldDescriptor( - Label="userIndex", Tag=1, Type=typing.Union[Nullable, uint]), - ClusterObjectFieldDescriptor( - Label="nextCredentialIndex", Tag=2, Type=typing.Union[Nullable, uint]), + Fields = [ + ClusterObjectFieldDescriptor(Label="credentialExists", Tag=0, Type=bool), + ClusterObjectFieldDescriptor(Label="userIndex", Tag=1, Type=typing.Union[Nullable, uint]), + ClusterObjectFieldDescriptor(Label="nextCredentialIndex", Tag=2, Type=typing.Union[Nullable, uint]), ]) credentialExists: 'bool' = False @@ -12857,13 +12436,12 @@ class ClearCredential(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="credential", Tag=0, Type=DoorLock.Structs.DlCredential), + Fields = [ + ClusterObjectFieldDescriptor(Label="credential", Tag=0, Type=DoorLock.Structs.DlCredential), ]) - credential: 'DoorLock.Structs.DlCredential' = field( - default_factory=lambda: DoorLock.Structs.DlCredential()) + credential: 'DoorLock.Structs.DlCredential' = field(default_factory=lambda: DoorLock.Structs.DlCredential()) + class Attributes: @dataclass @@ -13618,6 +13196,7 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + class Events: @dataclass class DoorLockAlarm(ClusterEventDescriptor): @@ -13627,9 +13206,8 @@ class DoorLockAlarm(ClusterEventDescriptor): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="alarmCode", Tag=0, Type=DoorLock.Enums.DlAlarmCode), + Fields = [ + ClusterObjectFieldDescriptor(Label="alarmCode", Tag=0, Type=DoorLock.Enums.DlAlarmCode), ]) alarmCode: 'DoorLock.Enums.DlAlarmCode' = 0 @@ -13642,9 +13220,8 @@ class DoorStateChange(ClusterEventDescriptor): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="doorState", Tag=0, Type=DoorLock.Enums.DlDoorState), + Fields = [ + ClusterObjectFieldDescriptor(Label="doorState", Tag=0, Type=DoorLock.Enums.DlDoorState), ]) doorState: 'DoorLock.Enums.DlDoorState' = 0 @@ -13657,19 +13234,13 @@ class LockOperation(ClusterEventDescriptor): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="lockOperationType", Tag=0, Type=DoorLock.Enums.DlLockOperationType), - ClusterObjectFieldDescriptor( - Label="operationSource", Tag=1, Type=DoorLock.Enums.DlOperationSource), - ClusterObjectFieldDescriptor( - Label="userIndex", Tag=2, Type=typing.Union[Nullable, uint]), - ClusterObjectFieldDescriptor( - Label="fabricIndex", Tag=3, Type=typing.Union[Nullable, uint]), - ClusterObjectFieldDescriptor( - Label="sourceNode", Tag=4, Type=typing.Union[Nullable, uint]), - ClusterObjectFieldDescriptor( - Label="credentials", Tag=5, Type=typing.Union[None, Nullable, typing.List[DoorLock.Structs.DlCredential]], IsArray=True), + Fields = [ + ClusterObjectFieldDescriptor(Label="lockOperationType", Tag=0, Type=DoorLock.Enums.DlLockOperationType), + ClusterObjectFieldDescriptor(Label="operationSource", Tag=1, Type=DoorLock.Enums.DlOperationSource), + ClusterObjectFieldDescriptor(Label="userIndex", Tag=2, Type=typing.Union[Nullable, uint]), + ClusterObjectFieldDescriptor(Label="fabricIndex", Tag=3, Type=typing.Union[Nullable, uint]), + ClusterObjectFieldDescriptor(Label="sourceNode", Tag=4, Type=typing.Union[Nullable, uint]), + ClusterObjectFieldDescriptor(Label="credentials", Tag=5, Type=typing.Union[None, Nullable, typing.List[DoorLock.Structs.DlCredential]], IsArray=True), ]) lockOperationType: 'DoorLock.Enums.DlLockOperationType' = 0 @@ -13687,21 +13258,14 @@ class LockOperationError(ClusterEventDescriptor): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="lockOperationType", Tag=0, Type=DoorLock.Enums.DlLockOperationType), - ClusterObjectFieldDescriptor( - Label="operationSource", Tag=1, Type=DoorLock.Enums.DlOperationSource), - ClusterObjectFieldDescriptor( - Label="operationError", Tag=2, Type=DoorLock.Enums.DlOperationError), - ClusterObjectFieldDescriptor( - Label="userIndex", Tag=3, Type=typing.Union[Nullable, uint]), - ClusterObjectFieldDescriptor( - Label="fabricIndex", Tag=4, Type=typing.Union[Nullable, uint]), - ClusterObjectFieldDescriptor( - Label="sourceNode", Tag=5, Type=typing.Union[Nullable, uint]), - ClusterObjectFieldDescriptor( - Label="credentials", Tag=6, Type=typing.Union[None, Nullable, typing.List[DoorLock.Structs.DlCredential]], IsArray=True), + Fields = [ + ClusterObjectFieldDescriptor(Label="lockOperationType", Tag=0, Type=DoorLock.Enums.DlLockOperationType), + ClusterObjectFieldDescriptor(Label="operationSource", Tag=1, Type=DoorLock.Enums.DlOperationSource), + ClusterObjectFieldDescriptor(Label="operationError", Tag=2, Type=DoorLock.Enums.DlOperationError), + ClusterObjectFieldDescriptor(Label="userIndex", Tag=3, Type=typing.Union[Nullable, uint]), + ClusterObjectFieldDescriptor(Label="fabricIndex", Tag=4, Type=typing.Union[Nullable, uint]), + ClusterObjectFieldDescriptor(Label="sourceNode", Tag=5, Type=typing.Union[Nullable, uint]), + ClusterObjectFieldDescriptor(Label="credentials", Tag=6, Type=typing.Union[None, Nullable, typing.List[DoorLock.Structs.DlCredential]], IsArray=True), ]) lockOperationType: 'DoorLock.Enums.DlLockOperationType' = 0 @@ -13720,21 +13284,14 @@ class LockUserChange(ClusterEventDescriptor): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="lockDataType", Tag=0, Type=DoorLock.Enums.DlLockDataType), - ClusterObjectFieldDescriptor( - Label="dataOperationType", Tag=1, Type=DoorLock.Enums.DlDataOperationType), - ClusterObjectFieldDescriptor( - Label="operationSource", Tag=2, Type=DoorLock.Enums.DlOperationSource), - ClusterObjectFieldDescriptor( - Label="userIndex", Tag=3, Type=typing.Union[Nullable, uint]), - ClusterObjectFieldDescriptor( - Label="fabricIndex", Tag=4, Type=typing.Union[Nullable, uint]), - ClusterObjectFieldDescriptor( - Label="sourceNode", Tag=5, Type=typing.Union[Nullable, uint]), - ClusterObjectFieldDescriptor( - Label="dataIndex", Tag=6, Type=typing.Union[Nullable, uint]), + Fields = [ + ClusterObjectFieldDescriptor(Label="lockDataType", Tag=0, Type=DoorLock.Enums.DlLockDataType), + ClusterObjectFieldDescriptor(Label="dataOperationType", Tag=1, Type=DoorLock.Enums.DlDataOperationType), + ClusterObjectFieldDescriptor(Label="operationSource", Tag=2, Type=DoorLock.Enums.DlOperationSource), + ClusterObjectFieldDescriptor(Label="userIndex", Tag=3, Type=typing.Union[Nullable, uint]), + ClusterObjectFieldDescriptor(Label="fabricIndex", Tag=4, Type=typing.Union[Nullable, uint]), + ClusterObjectFieldDescriptor(Label="sourceNode", Tag=5, Type=typing.Union[Nullable, uint]), + ClusterObjectFieldDescriptor(Label="dataIndex", Tag=6, Type=typing.Union[Nullable, uint]), ]) lockDataType: 'DoorLock.Enums.DlLockDataType' = 0 @@ -13750,6 +13307,8 @@ def descriptor(cls) -> ClusterObjectDescriptor: class WindowCovering(Cluster): id: typing.ClassVar[int] = 0x0102 + + class Commands: @dataclass class UpOrOpen(ClusterCommand): @@ -13760,9 +13319,10 @@ class UpOrOpen(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class DownOrClose(ClusterCommand): cluster_id: typing.ClassVar[int] = 0x0102 @@ -13772,9 +13332,10 @@ class DownOrClose(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class StopMotion(ClusterCommand): cluster_id: typing.ClassVar[int] = 0x0102 @@ -13784,9 +13345,10 @@ class StopMotion(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class GoToLiftValue(ClusterCommand): cluster_id: typing.ClassVar[int] = 0x0102 @@ -13796,9 +13358,8 @@ class GoToLiftValue(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="liftValue", Tag=0, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="liftValue", Tag=0, Type=uint), ]) liftValue: 'uint' = 0 @@ -13812,11 +13373,9 @@ class GoToLiftPercentage(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="liftPercentageValue", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="liftPercent100thsValue", Tag=1, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="liftPercentageValue", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="liftPercent100thsValue", Tag=1, Type=uint), ]) liftPercentageValue: 'uint' = 0 @@ -13831,9 +13390,8 @@ class GoToTiltValue(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="tiltValue", Tag=0, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="tiltValue", Tag=0, Type=uint), ]) tiltValue: 'uint' = 0 @@ -13847,16 +13405,15 @@ class GoToTiltPercentage(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="tiltPercentageValue", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="tiltPercent100thsValue", Tag=1, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="tiltPercentageValue", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="tiltPercent100thsValue", Tag=1, Type=uint), ]) tiltPercentageValue: 'uint' = 0 tiltPercent100thsValue: 'uint' = 0 + class Attributes: @dataclass class Type(ClusterAttributeDescriptor): @@ -14323,10 +13880,13 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class BarrierControl(Cluster): id: typing.ClassVar[int] = 0x0103 + + class Commands: @dataclass class BarrierControlGoToPercent(ClusterCommand): @@ -14337,9 +13897,8 @@ class BarrierControlGoToPercent(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="percentOpen", Tag=0, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="percentOpen", Tag=0, Type=uint), ]) percentOpen: 'uint' = 0 @@ -14353,9 +13912,11 @@ class BarrierControlStop(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + + class Attributes: @dataclass class BarrierMovingState(ClusterAttributeDescriptor): @@ -14550,6 +14111,7 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class PumpConfigurationAndControl(Cluster): id: typing.ClassVar[int] = 0x0200 @@ -14569,6 +14131,9 @@ class PumpOperationMode(IntEnum): kMaximum = 0x02 kLocal = 0x03 + + + class Attributes: @dataclass class MaxPressure(ClusterAttributeDescriptor): @@ -14986,6 +14551,7 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + class Events: @dataclass class SupplyVoltageLow(ClusterEventDescriptor): @@ -14995,9 +14561,10 @@ class SupplyVoltageLow(ClusterEventDescriptor): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class SupplyVoltageHigh(ClusterEventDescriptor): cluster_id: typing.ClassVar[int] = 0x0200 @@ -15006,9 +14573,10 @@ class SupplyVoltageHigh(ClusterEventDescriptor): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class PowerMissingPhase(ClusterEventDescriptor): cluster_id: typing.ClassVar[int] = 0x0200 @@ -15017,9 +14585,10 @@ class PowerMissingPhase(ClusterEventDescriptor): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class SystemPressureLow(ClusterEventDescriptor): cluster_id: typing.ClassVar[int] = 0x0200 @@ -15028,9 +14597,10 @@ class SystemPressureLow(ClusterEventDescriptor): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class SystemPressureHigh(ClusterEventDescriptor): cluster_id: typing.ClassVar[int] = 0x0200 @@ -15039,9 +14609,10 @@ class SystemPressureHigh(ClusterEventDescriptor): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class DryRunning(ClusterEventDescriptor): cluster_id: typing.ClassVar[int] = 0x0200 @@ -15050,9 +14621,10 @@ class DryRunning(ClusterEventDescriptor): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class MotorTemperatureHigh(ClusterEventDescriptor): cluster_id: typing.ClassVar[int] = 0x0200 @@ -15061,9 +14633,10 @@ class MotorTemperatureHigh(ClusterEventDescriptor): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class PumpMotorFatalFailure(ClusterEventDescriptor): cluster_id: typing.ClassVar[int] = 0x0200 @@ -15072,9 +14645,10 @@ class PumpMotorFatalFailure(ClusterEventDescriptor): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class ElectronicTemperatureHigh(ClusterEventDescriptor): cluster_id: typing.ClassVar[int] = 0x0200 @@ -15083,9 +14657,10 @@ class ElectronicTemperatureHigh(ClusterEventDescriptor): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class PumpBlocked(ClusterEventDescriptor): cluster_id: typing.ClassVar[int] = 0x0200 @@ -15094,9 +14669,10 @@ class PumpBlocked(ClusterEventDescriptor): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class SensorFailure(ClusterEventDescriptor): cluster_id: typing.ClassVar[int] = 0x0200 @@ -15105,9 +14681,10 @@ class SensorFailure(ClusterEventDescriptor): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class ElectronicNonFatalFailure(ClusterEventDescriptor): cluster_id: typing.ClassVar[int] = 0x0200 @@ -15116,9 +14693,10 @@ class ElectronicNonFatalFailure(ClusterEventDescriptor): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class ElectronicFatalFailure(ClusterEventDescriptor): cluster_id: typing.ClassVar[int] = 0x0200 @@ -15127,9 +14705,10 @@ class ElectronicFatalFailure(ClusterEventDescriptor): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class GeneralFault(ClusterEventDescriptor): cluster_id: typing.ClassVar[int] = 0x0200 @@ -15138,9 +14717,10 @@ class GeneralFault(ClusterEventDescriptor): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class Leakage(ClusterEventDescriptor): cluster_id: typing.ClassVar[int] = 0x0200 @@ -15149,9 +14729,10 @@ class Leakage(ClusterEventDescriptor): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class AirDetection(ClusterEventDescriptor): cluster_id: typing.ClassVar[int] = 0x0200 @@ -15160,9 +14741,10 @@ class AirDetection(ClusterEventDescriptor): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class TurbineOperation(ClusterEventDescriptor): cluster_id: typing.ClassVar[int] = 0x0200 @@ -15171,10 +14753,11 @@ class TurbineOperation(ClusterEventDescriptor): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class Thermostat(Cluster): id: typing.ClassVar[int] = 0x0201 @@ -15185,6 +14768,8 @@ class SetpointAdjustMode(IntEnum): kCoolSetpoint = 0x01 kHeatAndCoolSetpoints = 0x02 + + class Commands: @dataclass class SetpointRaiseLower(ClusterCommand): @@ -15195,11 +14780,9 @@ class SetpointRaiseLower(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="mode", Tag=0, Type=Thermostat.Enums.SetpointAdjustMode), - ClusterObjectFieldDescriptor( - Label="amount", Tag=1, Type=int), + Fields = [ + ClusterObjectFieldDescriptor(Label="mode", Tag=0, Type=Thermostat.Enums.SetpointAdjustMode), + ClusterObjectFieldDescriptor(Label="amount", Tag=1, Type=int), ]) mode: 'Thermostat.Enums.SetpointAdjustMode' = 0 @@ -15214,15 +14797,11 @@ class CurrentWeeklySchedule(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="numberOfTransitionsForSequence", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="dayOfWeekForSequence", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="modeForSequence", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="payload", Tag=3, Type=typing.List[uint]), + Fields = [ + ClusterObjectFieldDescriptor(Label="numberOfTransitionsForSequence", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="dayOfWeekForSequence", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="modeForSequence", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="payload", Tag=3, Type=typing.List[uint]), ]) numberOfTransitionsForSequence: 'uint' = 0 @@ -15239,15 +14818,11 @@ class SetWeeklySchedule(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="numberOfTransitionsForSequence", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="dayOfWeekForSequence", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="modeForSequence", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="payload", Tag=3, Type=typing.List[uint]), + Fields = [ + ClusterObjectFieldDescriptor(Label="numberOfTransitionsForSequence", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="dayOfWeekForSequence", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="modeForSequence", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="payload", Tag=3, Type=typing.List[uint]), ]) numberOfTransitionsForSequence: 'uint' = 0 @@ -15264,19 +14839,13 @@ class RelayStatusLog(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="timeOfDay", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="relayStatus", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="localTemperature", Tag=2, Type=int), - ClusterObjectFieldDescriptor( - Label="humidityInPercentage", Tag=3, Type=uint), - ClusterObjectFieldDescriptor( - Label="setpoint", Tag=4, Type=int), - ClusterObjectFieldDescriptor( - Label="unreadEntries", Tag=5, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="timeOfDay", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="relayStatus", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="localTemperature", Tag=2, Type=int), + ClusterObjectFieldDescriptor(Label="humidityInPercentage", Tag=3, Type=uint), + ClusterObjectFieldDescriptor(Label="setpoint", Tag=4, Type=int), + ClusterObjectFieldDescriptor(Label="unreadEntries", Tag=5, Type=uint), ]) timeOfDay: 'uint' = 0 @@ -15295,11 +14864,9 @@ class GetWeeklySchedule(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="daysToReturn", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="modeToReturn", Tag=1, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="daysToReturn", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="modeToReturn", Tag=1, Type=uint), ]) daysToReturn: 'uint' = 0 @@ -15314,9 +14881,10 @@ class ClearWeeklySchedule(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class GetRelayStatusLog(ClusterCommand): cluster_id: typing.ClassVar[int] = 0x0201 @@ -15326,9 +14894,11 @@ class GetRelayStatusLog(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + + class Attributes: @dataclass class LocalTemperature(ClusterAttributeDescriptor): @@ -16051,10 +15621,14 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class FanControl(Cluster): id: typing.ClassVar[int] = 0x0202 + + + class Attributes: @dataclass class FanMode(ClusterAttributeDescriptor): @@ -16121,10 +15695,14 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class DehumidificationControl(Cluster): id: typing.ClassVar[int] = 0x0203 + + + class Attributes: @dataclass class RelativeHumidity(ClusterAttributeDescriptor): @@ -16287,10 +15865,14 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class ThermostatUserInterfaceConfiguration(Cluster): id: typing.ClassVar[int] = 0x0204 + + + class Attributes: @dataclass class TemperatureDisplayMode(ClusterAttributeDescriptor): @@ -16373,6 +15955,7 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class ColorControl(Cluster): id: typing.ClassVar[int] = 0x0300 @@ -16416,6 +15999,8 @@ class SaturationStepMode(IntEnum): kUp = 0x01 kDown = 0x03 + + class Commands: @dataclass class MoveToHue(ClusterCommand): @@ -16426,17 +16011,12 @@ class MoveToHue(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="hue", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="direction", Tag=1, Type=ColorControl.Enums.HueDirection), - ClusterObjectFieldDescriptor( - Label="transitionTime", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="optionsMask", Tag=3, Type=uint), - ClusterObjectFieldDescriptor( - Label="optionsOverride", Tag=4, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="hue", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="direction", Tag=1, Type=ColorControl.Enums.HueDirection), + ClusterObjectFieldDescriptor(Label="transitionTime", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="optionsMask", Tag=3, Type=uint), + ClusterObjectFieldDescriptor(Label="optionsOverride", Tag=4, Type=uint), ]) hue: 'uint' = 0 @@ -16454,15 +16034,11 @@ class MoveHue(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="moveMode", Tag=0, Type=ColorControl.Enums.HueMoveMode), - ClusterObjectFieldDescriptor( - Label="rate", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="optionsMask", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="optionsOverride", Tag=3, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="moveMode", Tag=0, Type=ColorControl.Enums.HueMoveMode), + ClusterObjectFieldDescriptor(Label="rate", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="optionsMask", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="optionsOverride", Tag=3, Type=uint), ]) moveMode: 'ColorControl.Enums.HueMoveMode' = 0 @@ -16479,17 +16055,12 @@ class StepHue(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="stepMode", Tag=0, Type=ColorControl.Enums.HueStepMode), - ClusterObjectFieldDescriptor( - Label="stepSize", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="transitionTime", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="optionsMask", Tag=3, Type=uint), - ClusterObjectFieldDescriptor( - Label="optionsOverride", Tag=4, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="stepMode", Tag=0, Type=ColorControl.Enums.HueStepMode), + ClusterObjectFieldDescriptor(Label="stepSize", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="transitionTime", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="optionsMask", Tag=3, Type=uint), + ClusterObjectFieldDescriptor(Label="optionsOverride", Tag=4, Type=uint), ]) stepMode: 'ColorControl.Enums.HueStepMode' = 0 @@ -16507,15 +16078,11 @@ class MoveToSaturation(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="saturation", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="transitionTime", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="optionsMask", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="optionsOverride", Tag=3, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="saturation", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="transitionTime", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="optionsMask", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="optionsOverride", Tag=3, Type=uint), ]) saturation: 'uint' = 0 @@ -16532,15 +16099,11 @@ class MoveSaturation(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="moveMode", Tag=0, Type=ColorControl.Enums.SaturationMoveMode), - ClusterObjectFieldDescriptor( - Label="rate", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="optionsMask", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="optionsOverride", Tag=3, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="moveMode", Tag=0, Type=ColorControl.Enums.SaturationMoveMode), + ClusterObjectFieldDescriptor(Label="rate", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="optionsMask", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="optionsOverride", Tag=3, Type=uint), ]) moveMode: 'ColorControl.Enums.SaturationMoveMode' = 0 @@ -16557,17 +16120,12 @@ class StepSaturation(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="stepMode", Tag=0, Type=ColorControl.Enums.SaturationStepMode), - ClusterObjectFieldDescriptor( - Label="stepSize", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="transitionTime", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="optionsMask", Tag=3, Type=uint), - ClusterObjectFieldDescriptor( - Label="optionsOverride", Tag=4, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="stepMode", Tag=0, Type=ColorControl.Enums.SaturationStepMode), + ClusterObjectFieldDescriptor(Label="stepSize", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="transitionTime", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="optionsMask", Tag=3, Type=uint), + ClusterObjectFieldDescriptor(Label="optionsOverride", Tag=4, Type=uint), ]) stepMode: 'ColorControl.Enums.SaturationStepMode' = 0 @@ -16585,17 +16143,12 @@ class MoveToHueAndSaturation(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="hue", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="saturation", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="transitionTime", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="optionsMask", Tag=3, Type=uint), - ClusterObjectFieldDescriptor( - Label="optionsOverride", Tag=4, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="hue", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="saturation", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="transitionTime", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="optionsMask", Tag=3, Type=uint), + ClusterObjectFieldDescriptor(Label="optionsOverride", Tag=4, Type=uint), ]) hue: 'uint' = 0 @@ -16613,17 +16166,12 @@ class MoveToColor(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="colorX", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="colorY", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="transitionTime", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="optionsMask", Tag=3, Type=uint), - ClusterObjectFieldDescriptor( - Label="optionsOverride", Tag=4, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="colorX", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="colorY", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="transitionTime", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="optionsMask", Tag=3, Type=uint), + ClusterObjectFieldDescriptor(Label="optionsOverride", Tag=4, Type=uint), ]) colorX: 'uint' = 0 @@ -16641,15 +16189,11 @@ class MoveColor(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="rateX", Tag=0, Type=int), - ClusterObjectFieldDescriptor( - Label="rateY", Tag=1, Type=int), - ClusterObjectFieldDescriptor( - Label="optionsMask", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="optionsOverride", Tag=3, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="rateX", Tag=0, Type=int), + ClusterObjectFieldDescriptor(Label="rateY", Tag=1, Type=int), + ClusterObjectFieldDescriptor(Label="optionsMask", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="optionsOverride", Tag=3, Type=uint), ]) rateX: 'int' = 0 @@ -16666,17 +16210,12 @@ class StepColor(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="stepX", Tag=0, Type=int), - ClusterObjectFieldDescriptor( - Label="stepY", Tag=1, Type=int), - ClusterObjectFieldDescriptor( - Label="transitionTime", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="optionsMask", Tag=3, Type=uint), - ClusterObjectFieldDescriptor( - Label="optionsOverride", Tag=4, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="stepX", Tag=0, Type=int), + ClusterObjectFieldDescriptor(Label="stepY", Tag=1, Type=int), + ClusterObjectFieldDescriptor(Label="transitionTime", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="optionsMask", Tag=3, Type=uint), + ClusterObjectFieldDescriptor(Label="optionsOverride", Tag=4, Type=uint), ]) stepX: 'int' = 0 @@ -16694,15 +16233,11 @@ class MoveToColorTemperature(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="colorTemperature", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="transitionTime", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="optionsMask", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="optionsOverride", Tag=3, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="colorTemperature", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="transitionTime", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="optionsMask", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="optionsOverride", Tag=3, Type=uint), ]) colorTemperature: 'uint' = 0 @@ -16719,17 +16254,12 @@ class EnhancedMoveToHue(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="enhancedHue", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="direction", Tag=1, Type=ColorControl.Enums.HueDirection), - ClusterObjectFieldDescriptor( - Label="transitionTime", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="optionsMask", Tag=3, Type=uint), - ClusterObjectFieldDescriptor( - Label="optionsOverride", Tag=4, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="enhancedHue", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="direction", Tag=1, Type=ColorControl.Enums.HueDirection), + ClusterObjectFieldDescriptor(Label="transitionTime", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="optionsMask", Tag=3, Type=uint), + ClusterObjectFieldDescriptor(Label="optionsOverride", Tag=4, Type=uint), ]) enhancedHue: 'uint' = 0 @@ -16747,15 +16277,11 @@ class EnhancedMoveHue(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="moveMode", Tag=0, Type=ColorControl.Enums.HueMoveMode), - ClusterObjectFieldDescriptor( - Label="rate", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="optionsMask", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="optionsOverride", Tag=3, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="moveMode", Tag=0, Type=ColorControl.Enums.HueMoveMode), + ClusterObjectFieldDescriptor(Label="rate", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="optionsMask", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="optionsOverride", Tag=3, Type=uint), ]) moveMode: 'ColorControl.Enums.HueMoveMode' = 0 @@ -16772,17 +16298,12 @@ class EnhancedStepHue(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="stepMode", Tag=0, Type=ColorControl.Enums.HueStepMode), - ClusterObjectFieldDescriptor( - Label="stepSize", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="transitionTime", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="optionsMask", Tag=3, Type=uint), - ClusterObjectFieldDescriptor( - Label="optionsOverride", Tag=4, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="stepMode", Tag=0, Type=ColorControl.Enums.HueStepMode), + ClusterObjectFieldDescriptor(Label="stepSize", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="transitionTime", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="optionsMask", Tag=3, Type=uint), + ClusterObjectFieldDescriptor(Label="optionsOverride", Tag=4, Type=uint), ]) stepMode: 'ColorControl.Enums.HueStepMode' = 0 @@ -16800,17 +16321,12 @@ class EnhancedMoveToHueAndSaturation(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="enhancedHue", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="saturation", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="transitionTime", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="optionsMask", Tag=3, Type=uint), - ClusterObjectFieldDescriptor( - Label="optionsOverride", Tag=4, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="enhancedHue", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="saturation", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="transitionTime", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="optionsMask", Tag=3, Type=uint), + ClusterObjectFieldDescriptor(Label="optionsOverride", Tag=4, Type=uint), ]) enhancedHue: 'uint' = 0 @@ -16828,21 +16344,14 @@ class ColorLoopSet(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="updateFlags", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="action", Tag=1, Type=ColorControl.Enums.ColorLoopAction), - ClusterObjectFieldDescriptor( - Label="direction", Tag=2, Type=ColorControl.Enums.ColorLoopDirection), - ClusterObjectFieldDescriptor( - Label="time", Tag=3, Type=uint), - ClusterObjectFieldDescriptor( - Label="startHue", Tag=4, Type=uint), - ClusterObjectFieldDescriptor( - Label="optionsMask", Tag=5, Type=uint), - ClusterObjectFieldDescriptor( - Label="optionsOverride", Tag=6, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="updateFlags", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="action", Tag=1, Type=ColorControl.Enums.ColorLoopAction), + ClusterObjectFieldDescriptor(Label="direction", Tag=2, Type=ColorControl.Enums.ColorLoopDirection), + ClusterObjectFieldDescriptor(Label="time", Tag=3, Type=uint), + ClusterObjectFieldDescriptor(Label="startHue", Tag=4, Type=uint), + ClusterObjectFieldDescriptor(Label="optionsMask", Tag=5, Type=uint), + ClusterObjectFieldDescriptor(Label="optionsOverride", Tag=6, Type=uint), ]) updateFlags: 'uint' = 0 @@ -16862,11 +16371,9 @@ class StopMoveStep(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="optionsMask", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="optionsOverride", Tag=1, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="optionsMask", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="optionsOverride", Tag=1, Type=uint), ]) optionsMask: 'uint' = 0 @@ -16881,19 +16388,13 @@ class MoveColorTemperature(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="moveMode", Tag=0, Type=ColorControl.Enums.HueMoveMode), - ClusterObjectFieldDescriptor( - Label="rate", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="colorTemperatureMinimum", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="colorTemperatureMaximum", Tag=3, Type=uint), - ClusterObjectFieldDescriptor( - Label="optionsMask", Tag=4, Type=uint), - ClusterObjectFieldDescriptor( - Label="optionsOverride", Tag=5, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="moveMode", Tag=0, Type=ColorControl.Enums.HueMoveMode), + ClusterObjectFieldDescriptor(Label="rate", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="colorTemperatureMinimum", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="colorTemperatureMaximum", Tag=3, Type=uint), + ClusterObjectFieldDescriptor(Label="optionsMask", Tag=4, Type=uint), + ClusterObjectFieldDescriptor(Label="optionsOverride", Tag=5, Type=uint), ]) moveMode: 'ColorControl.Enums.HueMoveMode' = 0 @@ -16912,21 +16413,14 @@ class StepColorTemperature(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="stepMode", Tag=0, Type=ColorControl.Enums.HueStepMode), - ClusterObjectFieldDescriptor( - Label="stepSize", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="transitionTime", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="colorTemperatureMinimum", Tag=3, Type=uint), - ClusterObjectFieldDescriptor( - Label="colorTemperatureMaximum", Tag=4, Type=uint), - ClusterObjectFieldDescriptor( - Label="optionsMask", Tag=5, Type=uint), - ClusterObjectFieldDescriptor( - Label="optionsOverride", Tag=6, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="stepMode", Tag=0, Type=ColorControl.Enums.HueStepMode), + ClusterObjectFieldDescriptor(Label="stepSize", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="transitionTime", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="colorTemperatureMinimum", Tag=3, Type=uint), + ClusterObjectFieldDescriptor(Label="colorTemperatureMaximum", Tag=4, Type=uint), + ClusterObjectFieldDescriptor(Label="optionsMask", Tag=5, Type=uint), + ClusterObjectFieldDescriptor(Label="optionsOverride", Tag=6, Type=uint), ]) stepMode: 'ColorControl.Enums.HueStepMode' = 0 @@ -16937,6 +16431,7 @@ def descriptor(cls) -> ClusterObjectDescriptor: optionsMask: 'uint' = 0 optionsOverride: 'uint' = 0 + class Attributes: @dataclass class CurrentHue(ClusterAttributeDescriptor): @@ -17803,10 +17298,14 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class BallastConfiguration(Cluster): id: typing.ClassVar[int] = 0x0301 + + + class Attributes: @dataclass class PhysicalMinLevel(ClusterAttributeDescriptor): @@ -18097,6 +17596,7 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class IlluminanceMeasurement(Cluster): id: typing.ClassVar[int] = 0x0400 @@ -18106,6 +17606,9 @@ class LightSensorType(IntEnum): kPhotodiode = 0x00 kCmos = 0x01 + + + class Attributes: @dataclass class MeasuredValue(ClusterAttributeDescriptor): @@ -18220,10 +17723,14 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class TemperatureMeasurement(Cluster): id: typing.ClassVar[int] = 0x0402 + + + class Attributes: @dataclass class MeasuredValue(ClusterAttributeDescriptor): @@ -18322,10 +17829,14 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class PressureMeasurement(Cluster): id: typing.ClassVar[int] = 0x0403 + + + class Attributes: @dataclass class MeasuredValue(ClusterAttributeDescriptor): @@ -18504,10 +18015,14 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class FlowMeasurement(Cluster): id: typing.ClassVar[int] = 0x0404 + + + class Attributes: @dataclass class MeasuredValue(ClusterAttributeDescriptor): @@ -18606,10 +18121,14 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class RelativeHumidityMeasurement(Cluster): id: typing.ClassVar[int] = 0x0405 + + + class Attributes: @dataclass class MeasuredValue(ClusterAttributeDescriptor): @@ -18708,10 +18227,14 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class OccupancySensing(Cluster): id: typing.ClassVar[int] = 0x0406 + + + class Attributes: @dataclass class Occupancy(ClusterAttributeDescriptor): @@ -18938,10 +18461,14 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class CarbonMonoxideConcentrationMeasurement(Cluster): id: typing.ClassVar[int] = 0x040C + + + class Attributes: @dataclass class MeasuredValue(ClusterAttributeDescriptor): @@ -19040,10 +18567,14 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class CarbonDioxideConcentrationMeasurement(Cluster): id: typing.ClassVar[int] = 0x040D + + + class Attributes: @dataclass class MeasuredValue(ClusterAttributeDescriptor): @@ -19142,10 +18673,14 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class EthyleneConcentrationMeasurement(Cluster): id: typing.ClassVar[int] = 0x040E + + + class Attributes: @dataclass class MeasuredValue(ClusterAttributeDescriptor): @@ -19244,10 +18779,14 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class EthyleneOxideConcentrationMeasurement(Cluster): id: typing.ClassVar[int] = 0x040F + + + class Attributes: @dataclass class MeasuredValue(ClusterAttributeDescriptor): @@ -19346,10 +18885,14 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class HydrogenConcentrationMeasurement(Cluster): id: typing.ClassVar[int] = 0x0410 + + + class Attributes: @dataclass class MeasuredValue(ClusterAttributeDescriptor): @@ -19448,10 +18991,14 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class HydrogenSulphideConcentrationMeasurement(Cluster): id: typing.ClassVar[int] = 0x0411 + + + class Attributes: @dataclass class MeasuredValue(ClusterAttributeDescriptor): @@ -19550,10 +19097,14 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class NitricOxideConcentrationMeasurement(Cluster): id: typing.ClassVar[int] = 0x0412 + + + class Attributes: @dataclass class MeasuredValue(ClusterAttributeDescriptor): @@ -19652,10 +19203,14 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class NitrogenDioxideConcentrationMeasurement(Cluster): id: typing.ClassVar[int] = 0x0413 + + + class Attributes: @dataclass class MeasuredValue(ClusterAttributeDescriptor): @@ -19754,10 +19309,14 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class OxygenConcentrationMeasurement(Cluster): id: typing.ClassVar[int] = 0x0414 + + + class Attributes: @dataclass class MeasuredValue(ClusterAttributeDescriptor): @@ -19856,10 +19415,14 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class OzoneConcentrationMeasurement(Cluster): id: typing.ClassVar[int] = 0x0415 + + + class Attributes: @dataclass class MeasuredValue(ClusterAttributeDescriptor): @@ -19958,10 +19521,14 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class SulfurDioxideConcentrationMeasurement(Cluster): id: typing.ClassVar[int] = 0x0416 + + + class Attributes: @dataclass class MeasuredValue(ClusterAttributeDescriptor): @@ -20060,10 +19627,14 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class DissolvedOxygenConcentrationMeasurement(Cluster): id: typing.ClassVar[int] = 0x0417 + + + class Attributes: @dataclass class MeasuredValue(ClusterAttributeDescriptor): @@ -20162,10 +19733,14 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class BromateConcentrationMeasurement(Cluster): id: typing.ClassVar[int] = 0x0418 + + + class Attributes: @dataclass class MeasuredValue(ClusterAttributeDescriptor): @@ -20264,10 +19839,14 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class ChloraminesConcentrationMeasurement(Cluster): id: typing.ClassVar[int] = 0x0419 + + + class Attributes: @dataclass class MeasuredValue(ClusterAttributeDescriptor): @@ -20366,10 +19945,14 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class ChlorineConcentrationMeasurement(Cluster): id: typing.ClassVar[int] = 0x041A + + + class Attributes: @dataclass class MeasuredValue(ClusterAttributeDescriptor): @@ -20468,10 +20051,14 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class FecalColiformAndEColiConcentrationMeasurement(Cluster): id: typing.ClassVar[int] = 0x041B + + + class Attributes: @dataclass class MeasuredValue(ClusterAttributeDescriptor): @@ -20570,10 +20157,14 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class FluorideConcentrationMeasurement(Cluster): id: typing.ClassVar[int] = 0x041C + + + class Attributes: @dataclass class MeasuredValue(ClusterAttributeDescriptor): @@ -20672,10 +20263,14 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class HaloaceticAcidsConcentrationMeasurement(Cluster): id: typing.ClassVar[int] = 0x041D + + + class Attributes: @dataclass class MeasuredValue(ClusterAttributeDescriptor): @@ -20774,10 +20369,14 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class TotalTrihalomethanesConcentrationMeasurement(Cluster): id: typing.ClassVar[int] = 0x041E + + + class Attributes: @dataclass class MeasuredValue(ClusterAttributeDescriptor): @@ -20876,10 +20475,14 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class TotalColiformBacteriaConcentrationMeasurement(Cluster): id: typing.ClassVar[int] = 0x041F + + + class Attributes: @dataclass class MeasuredValue(ClusterAttributeDescriptor): @@ -20978,10 +20581,14 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class TurbidityConcentrationMeasurement(Cluster): id: typing.ClassVar[int] = 0x0420 + + + class Attributes: @dataclass class MeasuredValue(ClusterAttributeDescriptor): @@ -21080,10 +20687,14 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class CopperConcentrationMeasurement(Cluster): id: typing.ClassVar[int] = 0x0421 + + + class Attributes: @dataclass class MeasuredValue(ClusterAttributeDescriptor): @@ -21182,10 +20793,14 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class LeadConcentrationMeasurement(Cluster): id: typing.ClassVar[int] = 0x0422 + + + class Attributes: @dataclass class MeasuredValue(ClusterAttributeDescriptor): @@ -21284,10 +20899,14 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class ManganeseConcentrationMeasurement(Cluster): id: typing.ClassVar[int] = 0x0423 + + + class Attributes: @dataclass class MeasuredValue(ClusterAttributeDescriptor): @@ -21386,10 +21005,14 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class SulfateConcentrationMeasurement(Cluster): id: typing.ClassVar[int] = 0x0424 + + + class Attributes: @dataclass class MeasuredValue(ClusterAttributeDescriptor): @@ -21488,10 +21111,14 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class BromodichloromethaneConcentrationMeasurement(Cluster): id: typing.ClassVar[int] = 0x0425 + + + class Attributes: @dataclass class MeasuredValue(ClusterAttributeDescriptor): @@ -21590,10 +21217,14 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class BromoformConcentrationMeasurement(Cluster): id: typing.ClassVar[int] = 0x0426 + + + class Attributes: @dataclass class MeasuredValue(ClusterAttributeDescriptor): @@ -21692,10 +21323,14 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class ChlorodibromomethaneConcentrationMeasurement(Cluster): id: typing.ClassVar[int] = 0x0427 + + + class Attributes: @dataclass class MeasuredValue(ClusterAttributeDescriptor): @@ -21794,10 +21429,14 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class ChloroformConcentrationMeasurement(Cluster): id: typing.ClassVar[int] = 0x0428 + + + class Attributes: @dataclass class MeasuredValue(ClusterAttributeDescriptor): @@ -21896,10 +21535,14 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class SodiumConcentrationMeasurement(Cluster): id: typing.ClassVar[int] = 0x0429 + + + class Attributes: @dataclass class MeasuredValue(ClusterAttributeDescriptor): @@ -21998,6 +21641,7 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class IasZone(Cluster): id: typing.ClassVar[int] = 0x0500 @@ -22027,6 +21671,8 @@ class IasZoneType(IntEnum): kSecurityRepeater = 0x229 kInvalidZoneType = 0xFFFF + + class Commands: @dataclass class ZoneEnrollResponse(ClusterCommand): @@ -22037,11 +21683,9 @@ class ZoneEnrollResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="enrollResponseCode", Tag=0, Type=IasZone.Enums.IasEnrollResponseCode), - ClusterObjectFieldDescriptor( - Label="zoneId", Tag=1, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="enrollResponseCode", Tag=0, Type=IasZone.Enums.IasEnrollResponseCode), + ClusterObjectFieldDescriptor(Label="zoneId", Tag=1, Type=uint), ]) enrollResponseCode: 'IasZone.Enums.IasEnrollResponseCode' = 0 @@ -22056,15 +21700,11 @@ class ZoneStatusChangeNotification(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="zoneStatus", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="extendedStatus", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="zoneId", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="delay", Tag=3, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="zoneStatus", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="extendedStatus", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="zoneId", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="delay", Tag=3, Type=uint), ]) zoneStatus: 'uint' = 0 @@ -22081,9 +21721,10 @@ class InitiateNormalOperationMode(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class ZoneEnrollRequest(ClusterCommand): cluster_id: typing.ClassVar[int] = 0x0500 @@ -22093,11 +21734,9 @@ class ZoneEnrollRequest(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="zoneType", Tag=0, Type=IasZone.Enums.IasZoneType), - ClusterObjectFieldDescriptor( - Label="manufacturerCode", Tag=1, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="zoneType", Tag=0, Type=IasZone.Enums.IasZoneType), + ClusterObjectFieldDescriptor(Label="manufacturerCode", Tag=1, Type=uint), ]) zoneType: 'IasZone.Enums.IasZoneType' = 0 @@ -22112,11 +21751,9 @@ class InitiateTestMode(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="testModeDuration", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="currentZoneSensitivityLevel", Tag=1, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="testModeDuration", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="currentZoneSensitivityLevel", Tag=1, Type=uint), ]) testModeDuration: 'uint' = 0 @@ -22131,9 +21768,10 @@ class InitiateNormalOperationModeResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class InitiateTestModeResponse(ClusterCommand): cluster_id: typing.ClassVar[int] = 0x0500 @@ -22143,9 +21781,11 @@ class InitiateTestModeResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + + class Attributes: @dataclass class ZoneState(ClusterAttributeDescriptor): @@ -22292,6 +21932,7 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class IasAce(Cluster): id: typing.ClassVar[int] = 0x0501 @@ -22364,22 +22005,23 @@ class IasZoneType(IntEnum): kSecurityRepeater = 0x229 kInvalidZoneType = 0xFFFF + class Structs: @dataclass class IasAceZoneStatusResult(ClusterObject): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="zoneId", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="zoneStatus", Tag=2, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="zoneId", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="zoneStatus", Tag=2, Type=uint), ]) zoneId: 'uint' = 0 zoneStatus: 'uint' = 0 + + class Commands: @dataclass class Arm(ClusterCommand): @@ -22390,13 +22032,10 @@ class Arm(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="armMode", Tag=0, Type=IasAce.Enums.IasAceArmMode), - ClusterObjectFieldDescriptor( - Label="armDisarmCode", Tag=1, Type=str), - ClusterObjectFieldDescriptor( - Label="zoneId", Tag=2, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="armMode", Tag=0, Type=IasAce.Enums.IasAceArmMode), + ClusterObjectFieldDescriptor(Label="armDisarmCode", Tag=1, Type=str), + ClusterObjectFieldDescriptor(Label="zoneId", Tag=2, Type=uint), ]) armMode: 'IasAce.Enums.IasAceArmMode' = 0 @@ -22412,9 +22051,8 @@ class ArmResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="armNotification", Tag=0, Type=IasAce.Enums.IasAceArmNotification), + Fields = [ + ClusterObjectFieldDescriptor(Label="armNotification", Tag=0, Type=IasAce.Enums.IasAceArmNotification), ]) armNotification: 'IasAce.Enums.IasAceArmNotification' = 0 @@ -22428,13 +22066,10 @@ class Bypass(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="numberOfZones", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="zoneIds", Tag=1, Type=typing.List[uint]), - ClusterObjectFieldDescriptor( - Label="armDisarmCode", Tag=2, Type=str), + Fields = [ + ClusterObjectFieldDescriptor(Label="numberOfZones", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="zoneIds", Tag=1, Type=typing.List[uint]), + ClusterObjectFieldDescriptor(Label="armDisarmCode", Tag=2, Type=str), ]) numberOfZones: 'uint' = 0 @@ -22450,39 +22085,23 @@ class GetZoneIdMapResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="section0", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="section1", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="section2", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="section3", Tag=3, Type=uint), - ClusterObjectFieldDescriptor( - Label="section4", Tag=4, Type=uint), - ClusterObjectFieldDescriptor( - Label="section5", Tag=5, Type=uint), - ClusterObjectFieldDescriptor( - Label="section6", Tag=6, Type=uint), - ClusterObjectFieldDescriptor( - Label="section7", Tag=7, Type=uint), - ClusterObjectFieldDescriptor( - Label="section8", Tag=8, Type=uint), - ClusterObjectFieldDescriptor( - Label="section9", Tag=9, Type=uint), - ClusterObjectFieldDescriptor( - Label="section10", Tag=10, Type=uint), - ClusterObjectFieldDescriptor( - Label="section11", Tag=11, Type=uint), - ClusterObjectFieldDescriptor( - Label="section12", Tag=12, Type=uint), - ClusterObjectFieldDescriptor( - Label="section13", Tag=13, Type=uint), - ClusterObjectFieldDescriptor( - Label="section14", Tag=14, Type=uint), - ClusterObjectFieldDescriptor( - Label="section15", Tag=15, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="section0", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="section1", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="section2", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="section3", Tag=3, Type=uint), + ClusterObjectFieldDescriptor(Label="section4", Tag=4, Type=uint), + ClusterObjectFieldDescriptor(Label="section5", Tag=5, Type=uint), + ClusterObjectFieldDescriptor(Label="section6", Tag=6, Type=uint), + ClusterObjectFieldDescriptor(Label="section7", Tag=7, Type=uint), + ClusterObjectFieldDescriptor(Label="section8", Tag=8, Type=uint), + ClusterObjectFieldDescriptor(Label="section9", Tag=9, Type=uint), + ClusterObjectFieldDescriptor(Label="section10", Tag=10, Type=uint), + ClusterObjectFieldDescriptor(Label="section11", Tag=11, Type=uint), + ClusterObjectFieldDescriptor(Label="section12", Tag=12, Type=uint), + ClusterObjectFieldDescriptor(Label="section13", Tag=13, Type=uint), + ClusterObjectFieldDescriptor(Label="section14", Tag=14, Type=uint), + ClusterObjectFieldDescriptor(Label="section15", Tag=15, Type=uint), ]) section0: 'uint' = 0 @@ -22511,9 +22130,10 @@ class Emergency(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class GetZoneInformationResponse(ClusterCommand): cluster_id: typing.ClassVar[int] = 0x0501 @@ -22523,15 +22143,11 @@ class GetZoneInformationResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="zoneId", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="zoneType", Tag=1, Type=IasAce.Enums.IasZoneType), - ClusterObjectFieldDescriptor( - Label="ieeeAddress", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="zoneLabel", Tag=3, Type=str), + Fields = [ + ClusterObjectFieldDescriptor(Label="zoneId", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="zoneType", Tag=1, Type=IasAce.Enums.IasZoneType), + ClusterObjectFieldDescriptor(Label="ieeeAddress", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="zoneLabel", Tag=3, Type=str), ]) zoneId: 'uint' = 0 @@ -22548,9 +22164,10 @@ class Fire(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class ZoneStatusChanged(ClusterCommand): cluster_id: typing.ClassVar[int] = 0x0501 @@ -22560,15 +22177,11 @@ class ZoneStatusChanged(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="zoneId", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="zoneStatus", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="audibleNotification", Tag=2, Type=IasAce.Enums.IasAceAudibleNotification), - ClusterObjectFieldDescriptor( - Label="zoneLabel", Tag=3, Type=str), + Fields = [ + ClusterObjectFieldDescriptor(Label="zoneId", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="zoneStatus", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="audibleNotification", Tag=2, Type=IasAce.Enums.IasAceAudibleNotification), + ClusterObjectFieldDescriptor(Label="zoneLabel", Tag=3, Type=str), ]) zoneId: 'uint' = 0 @@ -22585,9 +22198,10 @@ class Panic(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class PanelStatusChanged(ClusterCommand): cluster_id: typing.ClassVar[int] = 0x0501 @@ -22597,15 +22211,11 @@ class PanelStatusChanged(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="panelStatus", Tag=0, Type=IasAce.Enums.IasAcePanelStatus), - ClusterObjectFieldDescriptor( - Label="secondsRemaining", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="audibleNotification", Tag=2, Type=IasAce.Enums.IasAceAudibleNotification), - ClusterObjectFieldDescriptor( - Label="alarmStatus", Tag=3, Type=IasAce.Enums.IasAceAlarmStatus), + Fields = [ + ClusterObjectFieldDescriptor(Label="panelStatus", Tag=0, Type=IasAce.Enums.IasAcePanelStatus), + ClusterObjectFieldDescriptor(Label="secondsRemaining", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="audibleNotification", Tag=2, Type=IasAce.Enums.IasAceAudibleNotification), + ClusterObjectFieldDescriptor(Label="alarmStatus", Tag=3, Type=IasAce.Enums.IasAceAlarmStatus), ]) panelStatus: 'IasAce.Enums.IasAcePanelStatus' = 0 @@ -22622,9 +22232,10 @@ class GetZoneIdMap(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class GetPanelStatusResponse(ClusterCommand): cluster_id: typing.ClassVar[int] = 0x0501 @@ -22634,15 +22245,11 @@ class GetPanelStatusResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="panelStatus", Tag=0, Type=IasAce.Enums.IasAcePanelStatus), - ClusterObjectFieldDescriptor( - Label="secondsRemaining", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="audibleNotification", Tag=2, Type=IasAce.Enums.IasAceAudibleNotification), - ClusterObjectFieldDescriptor( - Label="alarmStatus", Tag=3, Type=IasAce.Enums.IasAceAlarmStatus), + Fields = [ + ClusterObjectFieldDescriptor(Label="panelStatus", Tag=0, Type=IasAce.Enums.IasAcePanelStatus), + ClusterObjectFieldDescriptor(Label="secondsRemaining", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="audibleNotification", Tag=2, Type=IasAce.Enums.IasAceAudibleNotification), + ClusterObjectFieldDescriptor(Label="alarmStatus", Tag=3, Type=IasAce.Enums.IasAceAlarmStatus), ]) panelStatus: 'IasAce.Enums.IasAcePanelStatus' = 0 @@ -22659,9 +22266,8 @@ class GetZoneInformation(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="zoneId", Tag=0, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="zoneId", Tag=0, Type=uint), ]) zoneId: 'uint' = 0 @@ -22675,11 +22281,9 @@ class SetBypassedZoneList(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="numberOfZones", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="zoneIds", Tag=1, Type=typing.List[uint]), + Fields = [ + ClusterObjectFieldDescriptor(Label="numberOfZones", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="zoneIds", Tag=1, Type=typing.List[uint]), ]) numberOfZones: 'uint' = 0 @@ -22694,9 +22298,10 @@ class GetPanelStatus(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class BypassResponse(ClusterCommand): cluster_id: typing.ClassVar[int] = 0x0501 @@ -22706,16 +22311,13 @@ class BypassResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="numberOfZones", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="bypassResult", Tag=1, Type=typing.List[IasAce.Enums.IasAceBypassResult]), + Fields = [ + ClusterObjectFieldDescriptor(Label="numberOfZones", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="bypassResult", Tag=1, Type=typing.List[IasAce.Enums.IasAceBypassResult]), ]) numberOfZones: 'uint' = 0 - bypassResult: 'typing.List[IasAce.Enums.IasAceBypassResult]' = field( - default_factory=lambda: []) + bypassResult: 'typing.List[IasAce.Enums.IasAceBypassResult]' = field(default_factory=lambda: []) @dataclass class GetBypassedZoneList(ClusterCommand): @@ -22726,9 +22328,10 @@ class GetBypassedZoneList(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class GetZoneStatusResponse(ClusterCommand): cluster_id: typing.ClassVar[int] = 0x0501 @@ -22738,19 +22341,15 @@ class GetZoneStatusResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="zoneStatusComplete", Tag=0, Type=bool), - ClusterObjectFieldDescriptor( - Label="numberOfZones", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="zoneStatusResult", Tag=2, Type=typing.List[IasAce.Structs.IasAceZoneStatusResult]), + Fields = [ + ClusterObjectFieldDescriptor(Label="zoneStatusComplete", Tag=0, Type=bool), + ClusterObjectFieldDescriptor(Label="numberOfZones", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="zoneStatusResult", Tag=2, Type=typing.List[IasAce.Structs.IasAceZoneStatusResult]), ]) zoneStatusComplete: 'bool' = False numberOfZones: 'uint' = 0 - zoneStatusResult: 'typing.List[IasAce.Structs.IasAceZoneStatusResult]' = field( - default_factory=lambda: []) + zoneStatusResult: 'typing.List[IasAce.Structs.IasAceZoneStatusResult]' = field(default_factory=lambda: []) @dataclass class GetZoneStatus(ClusterCommand): @@ -22761,15 +22360,11 @@ class GetZoneStatus(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="startingZoneId", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="maxNumberOfZoneIds", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="zoneStatusMaskFlag", Tag=2, Type=bool), - ClusterObjectFieldDescriptor( - Label="zoneStatusMask", Tag=3, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="startingZoneId", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="maxNumberOfZoneIds", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="zoneStatusMaskFlag", Tag=2, Type=bool), + ClusterObjectFieldDescriptor(Label="zoneStatusMask", Tag=3, Type=uint), ]) startingZoneId: 'uint' = 0 @@ -22777,6 +22372,7 @@ def descriptor(cls) -> ClusterObjectDescriptor: zoneStatusMaskFlag: 'bool' = False zoneStatusMask: 'uint' = 0 + class Attributes: @dataclass class FeatureMap(ClusterAttributeDescriptor): @@ -22811,10 +22407,13 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class IasWd(Cluster): id: typing.ClassVar[int] = 0x0502 + + class Commands: @dataclass class StartWarning(ClusterCommand): @@ -22825,15 +22424,11 @@ class StartWarning(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="warningInfo", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="warningDuration", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="strobeDutyCycle", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="strobeLevel", Tag=3, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="warningInfo", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="warningDuration", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="strobeDutyCycle", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="strobeLevel", Tag=3, Type=uint), ]) warningInfo: 'uint' = 0 @@ -22850,13 +22445,13 @@ class Squawk(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="squawkInfo", Tag=0, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="squawkInfo", Tag=0, Type=uint), ]) squawkInfo: 'uint' = 0 + class Attributes: @dataclass class MaxDuration(ClusterAttributeDescriptor): @@ -22907,10 +22502,14 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class WakeOnLan(Cluster): id: typing.ClassVar[int] = 0x0503 + + + class Attributes: @dataclass class WakeOnLanMacAddress(ClusterAttributeDescriptor): @@ -22961,6 +22560,7 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class TvChannel(Cluster): id: typing.ClassVar[int] = 0x0504 @@ -22973,23 +22573,19 @@ class TvChannelErrorType(IntEnum): class TvChannelLineupInfoType(IntEnum): kMso = 0x00 + class Structs: @dataclass class TvChannelInfo(ClusterObject): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="majorNumber", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="minorNumber", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="name", Tag=3, Type=str), - ClusterObjectFieldDescriptor( - Label="callSign", Tag=4, Type=str), - ClusterObjectFieldDescriptor( - Label="affiliateCallSign", Tag=5, Type=str), + Fields = [ + ClusterObjectFieldDescriptor(Label="majorNumber", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="minorNumber", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="name", Tag=3, Type=str), + ClusterObjectFieldDescriptor(Label="callSign", Tag=4, Type=str), + ClusterObjectFieldDescriptor(Label="affiliateCallSign", Tag=5, Type=str), ]) majorNumber: 'uint' = 0 @@ -23003,15 +22599,11 @@ class TvChannelLineupInfo(ClusterObject): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="operatorName", Tag=1, Type=str), - ClusterObjectFieldDescriptor( - Label="lineupName", Tag=2, Type=str), - ClusterObjectFieldDescriptor( - Label="postalCode", Tag=3, Type=str), - ClusterObjectFieldDescriptor( - Label="lineupInfoType", Tag=4, Type=TvChannel.Enums.TvChannelLineupInfoType), + Fields = [ + ClusterObjectFieldDescriptor(Label="operatorName", Tag=1, Type=str), + ClusterObjectFieldDescriptor(Label="lineupName", Tag=2, Type=str), + ClusterObjectFieldDescriptor(Label="postalCode", Tag=3, Type=str), + ClusterObjectFieldDescriptor(Label="lineupInfoType", Tag=4, Type=TvChannel.Enums.TvChannelLineupInfoType), ]) operatorName: 'str' = "" @@ -23019,6 +22611,8 @@ def descriptor(cls) -> ClusterObjectDescriptor: postalCode: 'str' = "" lineupInfoType: 'TvChannel.Enums.TvChannelLineupInfoType' = 0 + + class Commands: @dataclass class ChangeChannel(ClusterCommand): @@ -23029,9 +22623,8 @@ class ChangeChannel(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="match", Tag=0, Type=str), + Fields = [ + ClusterObjectFieldDescriptor(Label="match", Tag=0, Type=str), ]) match: 'str' = "" @@ -23045,15 +22638,12 @@ class ChangeChannelResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="channelMatch", Tag=0, Type=typing.List[TvChannel.Structs.TvChannelInfo]), - ClusterObjectFieldDescriptor( - Label="errorType", Tag=1, Type=TvChannel.Enums.TvChannelErrorType), + Fields = [ + ClusterObjectFieldDescriptor(Label="channelMatch", Tag=0, Type=typing.List[TvChannel.Structs.TvChannelInfo]), + ClusterObjectFieldDescriptor(Label="errorType", Tag=1, Type=TvChannel.Enums.TvChannelErrorType), ]) - channelMatch: 'typing.List[TvChannel.Structs.TvChannelInfo]' = field( - default_factory=lambda: []) + channelMatch: 'typing.List[TvChannel.Structs.TvChannelInfo]' = field(default_factory=lambda: []) errorType: 'TvChannel.Enums.TvChannelErrorType' = 0 @dataclass @@ -23065,11 +22655,9 @@ class ChangeChannelByNumber(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="majorNumber", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="minorNumber", Tag=1, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="majorNumber", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="minorNumber", Tag=1, Type=uint), ]) majorNumber: 'uint' = 0 @@ -23084,13 +22672,13 @@ class SkipChannel(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="count", Tag=0, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="count", Tag=0, Type=uint), ]) count: 'uint' = 0 + class Attributes: @dataclass class TvChannelList(ClusterAttributeDescriptor): @@ -23106,8 +22694,7 @@ def attribute_id(cls) -> int: def attribute_type(cls) -> ClusterObjectFieldDescriptor: return ClusterObjectFieldDescriptor(Type=typing.List[TvChannel.Structs.TvChannelInfo]) - value: 'typing.List[TvChannel.Structs.TvChannelInfo]' = field( - default_factory=lambda: []) + value: 'typing.List[TvChannel.Structs.TvChannelInfo]' = field(default_factory=lambda: []) @dataclass class TvChannelLineup(ClusterAttributeDescriptor): @@ -23174,6 +22761,7 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class TargetNavigator(Cluster): id: typing.ClassVar[int] = 0x0505 @@ -23184,22 +22772,23 @@ class NavigateTargetStatus(IntEnum): kAppNotAvailable = 0x01 kSystemBusy = 0x02 + class Structs: @dataclass class NavigateTargetTargetInfo(ClusterObject): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="identifier", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="name", Tag=2, Type=str), + Fields = [ + ClusterObjectFieldDescriptor(Label="identifier", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="name", Tag=2, Type=str), ]) identifier: 'uint' = 0 name: 'str' = "" + + class Commands: @dataclass class NavigateTarget(ClusterCommand): @@ -23210,11 +22799,9 @@ class NavigateTarget(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="target", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="data", Tag=1, Type=str), + Fields = [ + ClusterObjectFieldDescriptor(Label="target", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="data", Tag=1, Type=str), ]) target: 'uint' = 0 @@ -23229,16 +22816,15 @@ class NavigateTargetResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="status", Tag=0, Type=TargetNavigator.Enums.NavigateTargetStatus), - ClusterObjectFieldDescriptor( - Label="data", Tag=1, Type=str), + Fields = [ + ClusterObjectFieldDescriptor(Label="status", Tag=0, Type=TargetNavigator.Enums.NavigateTargetStatus), + ClusterObjectFieldDescriptor(Label="data", Tag=1, Type=str), ]) status: 'TargetNavigator.Enums.NavigateTargetStatus' = 0 data: 'str' = "" + class Attributes: @dataclass class TargetNavigatorList(ClusterAttributeDescriptor): @@ -23254,8 +22840,7 @@ def attribute_id(cls) -> int: def attribute_type(cls) -> ClusterObjectFieldDescriptor: return ClusterObjectFieldDescriptor(Type=typing.List[TargetNavigator.Structs.NavigateTargetTargetInfo]) - value: 'typing.List[TargetNavigator.Structs.NavigateTargetTargetInfo]' = field( - default_factory=lambda: []) + value: 'typing.List[TargetNavigator.Structs.NavigateTargetTargetInfo]' = field(default_factory=lambda: []) @dataclass class CurrentNavigatorTarget(ClusterAttributeDescriptor): @@ -23306,6 +22891,7 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class MediaPlayback(Cluster): id: typing.ClassVar[int] = 0x0506 @@ -23325,22 +22911,23 @@ class MediaPlaybackStatus(IntEnum): kSpeedOutOfRange = 0x04 kSeekOutOfRange = 0x05 + class Structs: @dataclass class MediaPlaybackPosition(ClusterObject): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="updatedAt", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="position", Tag=2, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="updatedAt", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="position", Tag=2, Type=uint), ]) updatedAt: 'uint' = 0 position: 'uint' = 0 + + class Commands: @dataclass class MediaPlay(ClusterCommand): @@ -23351,9 +22938,10 @@ class MediaPlay(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class MediaPlayResponse(ClusterCommand): cluster_id: typing.ClassVar[int] = 0x0506 @@ -23363,9 +22951,8 @@ class MediaPlayResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="mediaPlaybackStatus", Tag=0, Type=MediaPlayback.Enums.MediaPlaybackStatus), + Fields = [ + ClusterObjectFieldDescriptor(Label="mediaPlaybackStatus", Tag=0, Type=MediaPlayback.Enums.MediaPlaybackStatus), ]) mediaPlaybackStatus: 'MediaPlayback.Enums.MediaPlaybackStatus' = 0 @@ -23379,9 +22966,10 @@ class MediaPause(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class MediaPauseResponse(ClusterCommand): cluster_id: typing.ClassVar[int] = 0x0506 @@ -23391,9 +22979,8 @@ class MediaPauseResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="mediaPlaybackStatus", Tag=0, Type=MediaPlayback.Enums.MediaPlaybackStatus), + Fields = [ + ClusterObjectFieldDescriptor(Label="mediaPlaybackStatus", Tag=0, Type=MediaPlayback.Enums.MediaPlaybackStatus), ]) mediaPlaybackStatus: 'MediaPlayback.Enums.MediaPlaybackStatus' = 0 @@ -23407,9 +22994,10 @@ class MediaStop(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class MediaStopResponse(ClusterCommand): cluster_id: typing.ClassVar[int] = 0x0506 @@ -23419,9 +23007,8 @@ class MediaStopResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="mediaPlaybackStatus", Tag=0, Type=MediaPlayback.Enums.MediaPlaybackStatus), + Fields = [ + ClusterObjectFieldDescriptor(Label="mediaPlaybackStatus", Tag=0, Type=MediaPlayback.Enums.MediaPlaybackStatus), ]) mediaPlaybackStatus: 'MediaPlayback.Enums.MediaPlaybackStatus' = 0 @@ -23435,9 +23022,10 @@ class MediaStartOver(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class MediaStartOverResponse(ClusterCommand): cluster_id: typing.ClassVar[int] = 0x0506 @@ -23447,9 +23035,8 @@ class MediaStartOverResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="mediaPlaybackStatus", Tag=0, Type=MediaPlayback.Enums.MediaPlaybackStatus), + Fields = [ + ClusterObjectFieldDescriptor(Label="mediaPlaybackStatus", Tag=0, Type=MediaPlayback.Enums.MediaPlaybackStatus), ]) mediaPlaybackStatus: 'MediaPlayback.Enums.MediaPlaybackStatus' = 0 @@ -23463,9 +23050,10 @@ class MediaPrevious(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class MediaPreviousResponse(ClusterCommand): cluster_id: typing.ClassVar[int] = 0x0506 @@ -23475,9 +23063,8 @@ class MediaPreviousResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="mediaPlaybackStatus", Tag=0, Type=MediaPlayback.Enums.MediaPlaybackStatus), + Fields = [ + ClusterObjectFieldDescriptor(Label="mediaPlaybackStatus", Tag=0, Type=MediaPlayback.Enums.MediaPlaybackStatus), ]) mediaPlaybackStatus: 'MediaPlayback.Enums.MediaPlaybackStatus' = 0 @@ -23491,9 +23078,10 @@ class MediaNext(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class MediaNextResponse(ClusterCommand): cluster_id: typing.ClassVar[int] = 0x0506 @@ -23503,9 +23091,8 @@ class MediaNextResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="mediaPlaybackStatus", Tag=0, Type=MediaPlayback.Enums.MediaPlaybackStatus), + Fields = [ + ClusterObjectFieldDescriptor(Label="mediaPlaybackStatus", Tag=0, Type=MediaPlayback.Enums.MediaPlaybackStatus), ]) mediaPlaybackStatus: 'MediaPlayback.Enums.MediaPlaybackStatus' = 0 @@ -23519,9 +23106,10 @@ class MediaRewind(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class MediaRewindResponse(ClusterCommand): cluster_id: typing.ClassVar[int] = 0x0506 @@ -23531,9 +23119,8 @@ class MediaRewindResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="mediaPlaybackStatus", Tag=0, Type=MediaPlayback.Enums.MediaPlaybackStatus), + Fields = [ + ClusterObjectFieldDescriptor(Label="mediaPlaybackStatus", Tag=0, Type=MediaPlayback.Enums.MediaPlaybackStatus), ]) mediaPlaybackStatus: 'MediaPlayback.Enums.MediaPlaybackStatus' = 0 @@ -23547,9 +23134,10 @@ class MediaFastForward(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class MediaFastForwardResponse(ClusterCommand): cluster_id: typing.ClassVar[int] = 0x0506 @@ -23559,9 +23147,8 @@ class MediaFastForwardResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="mediaPlaybackStatus", Tag=0, Type=MediaPlayback.Enums.MediaPlaybackStatus), + Fields = [ + ClusterObjectFieldDescriptor(Label="mediaPlaybackStatus", Tag=0, Type=MediaPlayback.Enums.MediaPlaybackStatus), ]) mediaPlaybackStatus: 'MediaPlayback.Enums.MediaPlaybackStatus' = 0 @@ -23575,9 +23162,8 @@ class MediaSkipForward(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="deltaPositionMilliseconds", Tag=0, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="deltaPositionMilliseconds", Tag=0, Type=uint), ]) deltaPositionMilliseconds: 'uint' = 0 @@ -23591,9 +23177,8 @@ class MediaSkipForwardResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="mediaPlaybackStatus", Tag=0, Type=MediaPlayback.Enums.MediaPlaybackStatus), + Fields = [ + ClusterObjectFieldDescriptor(Label="mediaPlaybackStatus", Tag=0, Type=MediaPlayback.Enums.MediaPlaybackStatus), ]) mediaPlaybackStatus: 'MediaPlayback.Enums.MediaPlaybackStatus' = 0 @@ -23607,9 +23192,8 @@ class MediaSkipBackward(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="deltaPositionMilliseconds", Tag=0, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="deltaPositionMilliseconds", Tag=0, Type=uint), ]) deltaPositionMilliseconds: 'uint' = 0 @@ -23623,9 +23207,8 @@ class MediaSkipBackwardResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="mediaPlaybackStatus", Tag=0, Type=MediaPlayback.Enums.MediaPlaybackStatus), + Fields = [ + ClusterObjectFieldDescriptor(Label="mediaPlaybackStatus", Tag=0, Type=MediaPlayback.Enums.MediaPlaybackStatus), ]) mediaPlaybackStatus: 'MediaPlayback.Enums.MediaPlaybackStatus' = 0 @@ -23639,9 +23222,8 @@ class MediaSeek(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="position", Tag=0, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="position", Tag=0, Type=uint), ]) position: 'uint' = 0 @@ -23655,13 +23237,13 @@ class MediaSeekResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="mediaPlaybackStatus", Tag=0, Type=MediaPlayback.Enums.MediaPlaybackStatus), + Fields = [ + ClusterObjectFieldDescriptor(Label="mediaPlaybackStatus", Tag=0, Type=MediaPlayback.Enums.MediaPlaybackStatus), ]) mediaPlaybackStatus: 'MediaPlayback.Enums.MediaPlaybackStatus' = 0 + class Attributes: @dataclass class PlaybackState(ClusterAttributeDescriptor): @@ -23824,6 +23406,7 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class MediaInput(Cluster): id: typing.ClassVar[int] = 0x0507 @@ -23843,21 +23426,18 @@ class MediaInputType(IntEnum): kUsb = 0x0A kOther = 0x0B + class Structs: @dataclass class MediaInputInfo(ClusterObject): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="index", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="inputType", Tag=2, Type=MediaInput.Enums.MediaInputType), - ClusterObjectFieldDescriptor( - Label="name", Tag=3, Type=str), - ClusterObjectFieldDescriptor( - Label="description", Tag=4, Type=str), + Fields = [ + ClusterObjectFieldDescriptor(Label="index", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="inputType", Tag=2, Type=MediaInput.Enums.MediaInputType), + ClusterObjectFieldDescriptor(Label="name", Tag=3, Type=str), + ClusterObjectFieldDescriptor(Label="description", Tag=4, Type=str), ]) index: 'uint' = 0 @@ -23865,6 +23445,8 @@ def descriptor(cls) -> ClusterObjectDescriptor: name: 'str' = "" description: 'str' = "" + + class Commands: @dataclass class SelectInput(ClusterCommand): @@ -23875,9 +23457,8 @@ class SelectInput(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="index", Tag=0, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="index", Tag=0, Type=uint), ]) index: 'uint' = 0 @@ -23891,9 +23472,10 @@ class ShowInputStatus(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class HideInputStatus(ClusterCommand): cluster_id: typing.ClassVar[int] = 0x0507 @@ -23903,9 +23485,10 @@ class HideInputStatus(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class RenameInput(ClusterCommand): cluster_id: typing.ClassVar[int] = 0x0507 @@ -23915,16 +23498,15 @@ class RenameInput(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="index", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="name", Tag=1, Type=str), + Fields = [ + ClusterObjectFieldDescriptor(Label="index", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="name", Tag=1, Type=str), ]) index: 'uint' = 0 name: 'str' = "" + class Attributes: @dataclass class MediaInputList(ClusterAttributeDescriptor): @@ -23940,8 +23522,7 @@ def attribute_id(cls) -> int: def attribute_type(cls) -> ClusterObjectFieldDescriptor: return ClusterObjectFieldDescriptor(Type=typing.List[MediaInput.Structs.MediaInputInfo]) - value: 'typing.List[MediaInput.Structs.MediaInputInfo]' = field( - default_factory=lambda: []) + value: 'typing.List[MediaInput.Structs.MediaInputInfo]' = field(default_factory=lambda: []) @dataclass class CurrentMediaInput(ClusterAttributeDescriptor): @@ -23992,10 +23573,13 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class LowPower(Cluster): id: typing.ClassVar[int] = 0x0508 + + class Commands: @dataclass class Sleep(ClusterCommand): @@ -24006,9 +23590,11 @@ class Sleep(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + + class Attributes: @dataclass class FeatureMap(ClusterAttributeDescriptor): @@ -24043,6 +23629,7 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class KeypadInput(Cluster): id: typing.ClassVar[int] = 0x0509 @@ -24141,6 +23728,8 @@ class KeypadInputStatus(IntEnum): kUnsupportedKey = 0x01 kInvalidKeyInCurrentState = 0x02 + + class Commands: @dataclass class SendKey(ClusterCommand): @@ -24151,9 +23740,8 @@ class SendKey(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="keyCode", Tag=0, Type=KeypadInput.Enums.KeypadInputCecKeyCode), + Fields = [ + ClusterObjectFieldDescriptor(Label="keyCode", Tag=0, Type=KeypadInput.Enums.KeypadInputCecKeyCode), ]) keyCode: 'KeypadInput.Enums.KeypadInputCecKeyCode' = 0 @@ -24167,13 +23755,13 @@ class SendKeyResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="status", Tag=0, Type=KeypadInput.Enums.KeypadInputStatus), + Fields = [ + ClusterObjectFieldDescriptor(Label="status", Tag=0, Type=KeypadInput.Enums.KeypadInputStatus), ]) status: 'KeypadInput.Enums.KeypadInputStatus' = 0 + class Attributes: @dataclass class FeatureMap(ClusterAttributeDescriptor): @@ -24208,6 +23796,7 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class ContentLauncher(Cluster): id: typing.ClassVar[int] = 0x050A @@ -24239,17 +23828,16 @@ class ContentLaunchStreamingType(IntEnum): kDash = 0x00 kHls = 0x01 + class Structs: @dataclass class ContentLaunchAdditionalInfo(ClusterObject): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="name", Tag=1, Type=str), - ClusterObjectFieldDescriptor( - Label="value", Tag=2, Type=str), + Fields = [ + ClusterObjectFieldDescriptor(Label="name", Tag=1, Type=str), + ClusterObjectFieldDescriptor(Label="value", Tag=2, Type=str), ]) name: 'str' = "" @@ -24260,38 +23848,28 @@ class ContentLaunchParamater(ClusterObject): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="type", Tag=1, Type=ContentLauncher.Enums.ContentLaunchParameterEnum), - ClusterObjectFieldDescriptor( - Label="value", Tag=2, Type=str), - ClusterObjectFieldDescriptor( - Label="externalIDList", Tag=3, Type=typing.List[ContentLauncher.Structs.ContentLaunchAdditionalInfo]), + Fields = [ + ClusterObjectFieldDescriptor(Label="type", Tag=1, Type=ContentLauncher.Enums.ContentLaunchParameterEnum), + ClusterObjectFieldDescriptor(Label="value", Tag=2, Type=str), + ClusterObjectFieldDescriptor(Label="externalIDList", Tag=3, Type=typing.List[ContentLauncher.Structs.ContentLaunchAdditionalInfo]), ]) type: 'ContentLauncher.Enums.ContentLaunchParameterEnum' = 0 value: 'str' = "" - externalIDList: 'typing.List[ContentLauncher.Structs.ContentLaunchAdditionalInfo]' = field( - default_factory=lambda: []) + externalIDList: 'typing.List[ContentLauncher.Structs.ContentLaunchAdditionalInfo]' = field(default_factory=lambda: []) @dataclass class ContentLaunchBrandingInformation(ClusterObject): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="providerName", Tag=1, Type=str), - ClusterObjectFieldDescriptor( - Label="background", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="logo", Tag=3, Type=uint), - ClusterObjectFieldDescriptor( - Label="progressBar", Tag=4, Type=uint), - ClusterObjectFieldDescriptor( - Label="splash", Tag=5, Type=uint), - ClusterObjectFieldDescriptor( - Label="waterMark", Tag=6, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="providerName", Tag=1, Type=str), + ClusterObjectFieldDescriptor(Label="background", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="logo", Tag=3, Type=uint), + ClusterObjectFieldDescriptor(Label="progressBar", Tag=4, Type=uint), + ClusterObjectFieldDescriptor(Label="splash", Tag=5, Type=uint), + ClusterObjectFieldDescriptor(Label="waterMark", Tag=6, Type=uint), ]) providerName: 'str' = "" @@ -24306,13 +23884,10 @@ class ContentLaunchDimension(ClusterObject): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="width", Tag=1, Type=str), - ClusterObjectFieldDescriptor( - Label="height", Tag=2, Type=str), - ClusterObjectFieldDescriptor( - Label="metric", Tag=3, Type=ContentLauncher.Enums.ContentLaunchMetricType), + Fields = [ + ClusterObjectFieldDescriptor(Label="width", Tag=1, Type=str), + ClusterObjectFieldDescriptor(Label="height", Tag=2, Type=str), + ClusterObjectFieldDescriptor(Label="metric", Tag=3, Type=ContentLauncher.Enums.ContentLaunchMetricType), ]) width: 'str' = "" @@ -24324,19 +23899,18 @@ class ContentLaunchStyleInformation(ClusterObject): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="imageUrl", Tag=1, Type=str), - ClusterObjectFieldDescriptor( - Label="color", Tag=2, Type=str), - ClusterObjectFieldDescriptor( - Label="size", Tag=3, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="imageUrl", Tag=1, Type=str), + ClusterObjectFieldDescriptor(Label="color", Tag=2, Type=str), + ClusterObjectFieldDescriptor(Label="size", Tag=3, Type=uint), ]) imageUrl: 'str' = "" color: 'str' = "" size: 'uint' = 0 + + class Commands: @dataclass class LaunchContent(ClusterCommand): @@ -24347,11 +23921,9 @@ class LaunchContent(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="autoPlay", Tag=0, Type=bool), - ClusterObjectFieldDescriptor( - Label="data", Tag=1, Type=str), + Fields = [ + ClusterObjectFieldDescriptor(Label="autoPlay", Tag=0, Type=bool), + ClusterObjectFieldDescriptor(Label="data", Tag=1, Type=str), ]) autoPlay: 'bool' = False @@ -24366,11 +23938,9 @@ class LaunchContentResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="data", Tag=0, Type=str), - ClusterObjectFieldDescriptor( - Label="contentLaunchStatus", Tag=1, Type=ContentLauncher.Enums.ContentLaunchStatus), + Fields = [ + ClusterObjectFieldDescriptor(Label="data", Tag=0, Type=str), + ClusterObjectFieldDescriptor(Label="contentLaunchStatus", Tag=1, Type=ContentLauncher.Enums.ContentLaunchStatus), ]) data: 'str' = "" @@ -24385,11 +23955,9 @@ class LaunchURL(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="contentURL", Tag=0, Type=str), - ClusterObjectFieldDescriptor( - Label="displayString", Tag=1, Type=str), + Fields = [ + ClusterObjectFieldDescriptor(Label="contentURL", Tag=0, Type=str), + ClusterObjectFieldDescriptor(Label="displayString", Tag=1, Type=str), ]) contentURL: 'str' = "" @@ -24404,16 +23972,15 @@ class LaunchURLResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="data", Tag=0, Type=str), - ClusterObjectFieldDescriptor( - Label="contentLaunchStatus", Tag=1, Type=ContentLauncher.Enums.ContentLaunchStatus), + Fields = [ + ClusterObjectFieldDescriptor(Label="data", Tag=0, Type=str), + ClusterObjectFieldDescriptor(Label="contentLaunchStatus", Tag=1, Type=ContentLauncher.Enums.ContentLaunchStatus), ]) data: 'str' = "" contentLaunchStatus: 'ContentLauncher.Enums.ContentLaunchStatus' = 0 + class Attributes: @dataclass class AcceptsHeaderList(ClusterAttributeDescriptor): @@ -24445,8 +24012,7 @@ def attribute_id(cls) -> int: def attribute_type(cls) -> ClusterObjectFieldDescriptor: return ClusterObjectFieldDescriptor(Type=typing.List[ContentLauncher.Enums.ContentLaunchStreamingType]) - value: 'typing.List[ContentLauncher.Enums.ContentLaunchStreamingType]' = field( - default_factory=lambda: []) + value: 'typing.List[ContentLauncher.Enums.ContentLaunchStreamingType]' = field(default_factory=lambda: []) @dataclass class FeatureMap(ClusterAttributeDescriptor): @@ -24481,6 +24047,7 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class AudioOutput(Cluster): id: typing.ClassVar[int] = 0x050B @@ -24494,25 +24061,25 @@ class AudioOutputType(IntEnum): kInternal = 0x04 kOther = 0x05 + class Structs: @dataclass class AudioOutputInfo(ClusterObject): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="index", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="outputType", Tag=2, Type=AudioOutput.Enums.AudioOutputType), - ClusterObjectFieldDescriptor( - Label="name", Tag=3, Type=str), + Fields = [ + ClusterObjectFieldDescriptor(Label="index", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="outputType", Tag=2, Type=AudioOutput.Enums.AudioOutputType), + ClusterObjectFieldDescriptor(Label="name", Tag=3, Type=str), ]) index: 'uint' = 0 outputType: 'AudioOutput.Enums.AudioOutputType' = 0 name: 'str' = "" + + class Commands: @dataclass class SelectOutput(ClusterCommand): @@ -24523,9 +24090,8 @@ class SelectOutput(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="index", Tag=0, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="index", Tag=0, Type=uint), ]) index: 'uint' = 0 @@ -24539,16 +24105,15 @@ class RenameOutput(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="index", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="name", Tag=1, Type=str), + Fields = [ + ClusterObjectFieldDescriptor(Label="index", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="name", Tag=1, Type=str), ]) index: 'uint' = 0 name: 'str' = "" + class Attributes: @dataclass class AudioOutputList(ClusterAttributeDescriptor): @@ -24564,8 +24129,7 @@ def attribute_id(cls) -> int: def attribute_type(cls) -> ClusterObjectFieldDescriptor: return ClusterObjectFieldDescriptor(Type=typing.List[AudioOutput.Structs.AudioOutputInfo]) - value: 'typing.List[AudioOutput.Structs.AudioOutputInfo]' = field( - default_factory=lambda: []) + value: 'typing.List[AudioOutput.Structs.AudioOutputInfo]' = field(default_factory=lambda: []) @dataclass class CurrentAudioOutput(ClusterAttributeDescriptor): @@ -24616,6 +24180,7 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class ApplicationLauncher(Cluster): id: typing.ClassVar[int] = 0x050C @@ -24626,22 +24191,23 @@ class ApplicationLauncherStatus(IntEnum): kAppNotAvailable = 0x01 kSystemBusy = 0x02 + class Structs: @dataclass class ApplicationLauncherApp(ClusterObject): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="catalogVendorId", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="applicationId", Tag=2, Type=str), + Fields = [ + ClusterObjectFieldDescriptor(Label="catalogVendorId", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="applicationId", Tag=2, Type=str), ]) catalogVendorId: 'uint' = 0 applicationId: 'str' = "" + + class Commands: @dataclass class LaunchApp(ClusterCommand): @@ -24652,13 +24218,10 @@ class LaunchApp(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="data", Tag=0, Type=str), - ClusterObjectFieldDescriptor( - Label="catalogVendorId", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="applicationId", Tag=2, Type=str), + Fields = [ + ClusterObjectFieldDescriptor(Label="data", Tag=0, Type=str), + ClusterObjectFieldDescriptor(Label="catalogVendorId", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="applicationId", Tag=2, Type=str), ]) data: 'str' = "" @@ -24674,16 +24237,15 @@ class LaunchAppResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="status", Tag=0, Type=ApplicationLauncher.Enums.ApplicationLauncherStatus), - ClusterObjectFieldDescriptor( - Label="data", Tag=1, Type=str), + Fields = [ + ClusterObjectFieldDescriptor(Label="status", Tag=0, Type=ApplicationLauncher.Enums.ApplicationLauncherStatus), + ClusterObjectFieldDescriptor(Label="data", Tag=1, Type=str), ]) status: 'ApplicationLauncher.Enums.ApplicationLauncherStatus' = 0 data: 'str' = "" + class Attributes: @dataclass class ApplicationLauncherList(ClusterAttributeDescriptor): @@ -24766,6 +24328,7 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class ApplicationBasic(Cluster): id: typing.ClassVar[int] = 0x050D @@ -24777,6 +24340,8 @@ class ApplicationBasicStatus(IntEnum): kActiveHidden = 0x02 kActiveVisibleNotFocus = 0x03 + + class Commands: @dataclass class ChangeStatus(ClusterCommand): @@ -24787,13 +24352,13 @@ class ChangeStatus(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="status", Tag=0, Type=ApplicationBasic.Enums.ApplicationBasicStatus), + Fields = [ + ClusterObjectFieldDescriptor(Label="status", Tag=0, Type=ApplicationBasic.Enums.ApplicationBasicStatus), ]) status: 'ApplicationBasic.Enums.ApplicationBasicStatus' = 0 + class Attributes: @dataclass class VendorName(ClusterAttributeDescriptor): @@ -24940,10 +24505,13 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class AccountLogin(Cluster): id: typing.ClassVar[int] = 0x050E + + class Commands: @dataclass class GetSetupPIN(ClusterCommand): @@ -24954,9 +24522,8 @@ class GetSetupPIN(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="tempAccountIdentifier", Tag=0, Type=str), + Fields = [ + ClusterObjectFieldDescriptor(Label="tempAccountIdentifier", Tag=0, Type=str), ]) tempAccountIdentifier: 'str' = "" @@ -24970,9 +24537,8 @@ class GetSetupPINResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="setupPIN", Tag=0, Type=str), + Fields = [ + ClusterObjectFieldDescriptor(Label="setupPIN", Tag=0, Type=str), ]) setupPIN: 'str' = "" @@ -24986,16 +24552,15 @@ class Login(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="tempAccountIdentifier", Tag=0, Type=str), - ClusterObjectFieldDescriptor( - Label="setupPIN", Tag=1, Type=str), + Fields = [ + ClusterObjectFieldDescriptor(Label="tempAccountIdentifier", Tag=0, Type=str), + ClusterObjectFieldDescriptor(Label="setupPIN", Tag=1, Type=str), ]) tempAccountIdentifier: 'str' = "" setupPIN: 'str' = "" + class Attributes: @dataclass class FeatureMap(ClusterAttributeDescriptor): @@ -25030,6 +24595,7 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class TestCluster(Cluster): id: typing.ClassVar[int] = 0x050F @@ -25041,29 +24607,22 @@ class SimpleEnum(IntEnum): kValueB = 0x02 kValueC = 0x03 + class Structs: @dataclass class SimpleStruct(ClusterObject): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="a", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="b", Tag=2, Type=bool), - ClusterObjectFieldDescriptor( - Label="c", Tag=3, Type=TestCluster.Enums.SimpleEnum), - ClusterObjectFieldDescriptor( - Label="d", Tag=4, Type=bytes), - ClusterObjectFieldDescriptor( - Label="e", Tag=5, Type=str), - ClusterObjectFieldDescriptor( - Label="f", Tag=6, Type=uint), - ClusterObjectFieldDescriptor( - Label="g", Tag=7, Type=float), - ClusterObjectFieldDescriptor( - Label="h", Tag=8, Type=float), + Fields = [ + ClusterObjectFieldDescriptor(Label="a", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="b", Tag=2, Type=bool), + ClusterObjectFieldDescriptor(Label="c", Tag=3, Type=TestCluster.Enums.SimpleEnum), + ClusterObjectFieldDescriptor(Label="d", Tag=4, Type=bytes), + ClusterObjectFieldDescriptor(Label="e", Tag=5, Type=str), + ClusterObjectFieldDescriptor(Label="f", Tag=6, Type=uint), + ClusterObjectFieldDescriptor(Label="g", Tag=7, Type=float), + ClusterObjectFieldDescriptor(Label="h", Tag=8, Type=float), ]) a: 'uint' = 0 @@ -25080,31 +24639,19 @@ class NullablesAndOptionalsStruct(ClusterObject): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="nullableInt", Tag=1, Type=typing.Union[Nullable, uint]), - ClusterObjectFieldDescriptor( - Label="optionalInt", Tag=2, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor( - Label="nullableOptionalInt", Tag=3, Type=typing.Union[None, Nullable, uint]), - ClusterObjectFieldDescriptor( - Label="nullableString", Tag=4, Type=typing.Union[Nullable, str]), - ClusterObjectFieldDescriptor( - Label="optionalString", Tag=5, Type=typing.Optional[str]), - ClusterObjectFieldDescriptor( - Label="nullableOptionalString", Tag=6, Type=typing.Union[None, Nullable, str]), - ClusterObjectFieldDescriptor( - Label="nullableStruct", Tag=7, Type=typing.Union[Nullable, TestCluster.Structs.SimpleStruct]), - ClusterObjectFieldDescriptor( - Label="optionalStruct", Tag=8, Type=typing.Optional[TestCluster.Structs.SimpleStruct]), - ClusterObjectFieldDescriptor( - Label="nullableOptionalStruct", Tag=9, Type=typing.Union[None, Nullable, TestCluster.Structs.SimpleStruct]), - ClusterObjectFieldDescriptor( - Label="nullableList", Tag=10, Type=typing.Union[Nullable, typing.List[TestCluster.Enums.SimpleEnum]]), - ClusterObjectFieldDescriptor( - Label="optionalList", Tag=11, Type=typing.Optional[typing.List[TestCluster.Enums.SimpleEnum]]), - ClusterObjectFieldDescriptor( - Label="nullableOptionalList", Tag=12, Type=typing.Union[None, Nullable, typing.List[TestCluster.Enums.SimpleEnum]]), + Fields = [ + ClusterObjectFieldDescriptor(Label="nullableInt", Tag=1, Type=typing.Union[Nullable, uint]), + ClusterObjectFieldDescriptor(Label="optionalInt", Tag=2, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="nullableOptionalInt", Tag=3, Type=typing.Union[None, Nullable, uint]), + ClusterObjectFieldDescriptor(Label="nullableString", Tag=4, Type=typing.Union[Nullable, str]), + ClusterObjectFieldDescriptor(Label="optionalString", Tag=5, Type=typing.Optional[str]), + ClusterObjectFieldDescriptor(Label="nullableOptionalString", Tag=6, Type=typing.Union[None, Nullable, str]), + ClusterObjectFieldDescriptor(Label="nullableStruct", Tag=7, Type=typing.Union[Nullable, TestCluster.Structs.SimpleStruct]), + ClusterObjectFieldDescriptor(Label="optionalStruct", Tag=8, Type=typing.Optional[TestCluster.Structs.SimpleStruct]), + ClusterObjectFieldDescriptor(Label="nullableOptionalStruct", Tag=9, Type=typing.Union[None, Nullable, TestCluster.Structs.SimpleStruct]), + ClusterObjectFieldDescriptor(Label="nullableList", Tag=10, Type=typing.Union[Nullable, typing.List[TestCluster.Enums.SimpleEnum]]), + ClusterObjectFieldDescriptor(Label="optionalList", Tag=11, Type=typing.Optional[typing.List[TestCluster.Enums.SimpleEnum]]), + ClusterObjectFieldDescriptor(Label="nullableOptionalList", Tag=12, Type=typing.Union[None, Nullable, typing.List[TestCluster.Enums.SimpleEnum]]), ]) nullableInt: 'typing.Union[Nullable, uint]' = NullValue @@ -25125,48 +24672,35 @@ class NestedStruct(ClusterObject): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="a", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="b", Tag=2, Type=bool), - ClusterObjectFieldDescriptor( - Label="c", Tag=3, Type=TestCluster.Structs.SimpleStruct), + Fields = [ + ClusterObjectFieldDescriptor(Label="a", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="b", Tag=2, Type=bool), + ClusterObjectFieldDescriptor(Label="c", Tag=3, Type=TestCluster.Structs.SimpleStruct), ]) a: 'uint' = 0 b: 'bool' = False - c: 'TestCluster.Structs.SimpleStruct' = field( - default_factory=lambda: TestCluster.Structs.SimpleStruct()) + c: 'TestCluster.Structs.SimpleStruct' = field(default_factory=lambda: TestCluster.Structs.SimpleStruct()) @dataclass class NestedStructList(ClusterObject): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="a", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="b", Tag=2, Type=bool), - ClusterObjectFieldDescriptor( - Label="c", Tag=3, Type=TestCluster.Structs.SimpleStruct), - ClusterObjectFieldDescriptor( - Label="d", Tag=4, Type=typing.List[TestCluster.Structs.SimpleStruct]), - ClusterObjectFieldDescriptor( - Label="e", Tag=5, Type=typing.List[uint]), - ClusterObjectFieldDescriptor( - Label="f", Tag=6, Type=typing.List[bytes]), - ClusterObjectFieldDescriptor( - Label="g", Tag=7, Type=typing.List[uint]), + Fields = [ + ClusterObjectFieldDescriptor(Label="a", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="b", Tag=2, Type=bool), + ClusterObjectFieldDescriptor(Label="c", Tag=3, Type=TestCluster.Structs.SimpleStruct), + ClusterObjectFieldDescriptor(Label="d", Tag=4, Type=typing.List[TestCluster.Structs.SimpleStruct]), + ClusterObjectFieldDescriptor(Label="e", Tag=5, Type=typing.List[uint]), + ClusterObjectFieldDescriptor(Label="f", Tag=6, Type=typing.List[bytes]), + ClusterObjectFieldDescriptor(Label="g", Tag=7, Type=typing.List[uint]), ]) a: 'uint' = 0 b: 'bool' = False - c: 'TestCluster.Structs.SimpleStruct' = field( - default_factory=lambda: TestCluster.Structs.SimpleStruct()) - d: 'typing.List[TestCluster.Structs.SimpleStruct]' = field( - default_factory=lambda: []) + c: 'TestCluster.Structs.SimpleStruct' = field(default_factory=lambda: TestCluster.Structs.SimpleStruct()) + d: 'typing.List[TestCluster.Structs.SimpleStruct]' = field(default_factory=lambda: []) e: 'typing.List[uint]' = field(default_factory=lambda: []) f: 'typing.List[bytes]' = field(default_factory=lambda: []) g: 'typing.List[uint]' = field(default_factory=lambda: []) @@ -25176,29 +24710,27 @@ class DoubleNestedStructList(ClusterObject): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="a", Tag=1, Type=typing.List[TestCluster.Structs.NestedStructList]), + Fields = [ + ClusterObjectFieldDescriptor(Label="a", Tag=1, Type=typing.List[TestCluster.Structs.NestedStructList]), ]) - a: 'typing.List[TestCluster.Structs.NestedStructList]' = field( - default_factory=lambda: []) + a: 'typing.List[TestCluster.Structs.NestedStructList]' = field(default_factory=lambda: []) @dataclass class TestListStructOctet(ClusterObject): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="fabricIndex", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="operationalCert", Tag=2, Type=bytes), + Fields = [ + ClusterObjectFieldDescriptor(Label="fabricIndex", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="operationalCert", Tag=2, Type=bytes), ]) fabricIndex: 'uint' = 0 operationalCert: 'bytes' = b"" + + class Commands: @dataclass class Test(ClusterCommand): @@ -25209,9 +24741,10 @@ class Test(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class TestSpecificResponse(ClusterCommand): cluster_id: typing.ClassVar[int] = 0x050F @@ -25221,9 +24754,8 @@ class TestSpecificResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="returnValue", Tag=0, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="returnValue", Tag=0, Type=uint), ]) returnValue: 'uint' = 0 @@ -25237,9 +24769,10 @@ class TestNotHandled(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class TestAddArgumentsResponse(ClusterCommand): cluster_id: typing.ClassVar[int] = 0x050F @@ -25249,9 +24782,8 @@ class TestAddArgumentsResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="returnValue", Tag=0, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="returnValue", Tag=0, Type=uint), ]) returnValue: 'uint' = 0 @@ -25265,9 +24797,10 @@ class TestSpecific(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class TestSimpleArgumentResponse(ClusterCommand): cluster_id: typing.ClassVar[int] = 0x050F @@ -25277,9 +24810,8 @@ class TestSimpleArgumentResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="returnValue", Tag=0, Type=bool), + Fields = [ + ClusterObjectFieldDescriptor(Label="returnValue", Tag=0, Type=bool), ]) returnValue: 'bool' = False @@ -25293,9 +24825,10 @@ class TestUnknownCommand(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class TestStructArrayArgumentResponse(ClusterCommand): cluster_id: typing.ClassVar[int] = 0x050F @@ -25305,27 +24838,18 @@ class TestStructArrayArgumentResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="arg1", Tag=0, Type=typing.List[TestCluster.Structs.NestedStructList]), - ClusterObjectFieldDescriptor( - Label="arg2", Tag=1, Type=typing.List[TestCluster.Structs.SimpleStruct]), - ClusterObjectFieldDescriptor( - Label="arg3", Tag=2, Type=typing.List[TestCluster.Enums.SimpleEnum]), - ClusterObjectFieldDescriptor( - Label="arg4", Tag=3, Type=typing.List[bool]), - ClusterObjectFieldDescriptor( - Label="arg5", Tag=4, Type=TestCluster.Enums.SimpleEnum), - ClusterObjectFieldDescriptor( - Label="arg6", Tag=5, Type=bool), + Fields = [ + ClusterObjectFieldDescriptor(Label="arg1", Tag=0, Type=typing.List[TestCluster.Structs.NestedStructList]), + ClusterObjectFieldDescriptor(Label="arg2", Tag=1, Type=typing.List[TestCluster.Structs.SimpleStruct]), + ClusterObjectFieldDescriptor(Label="arg3", Tag=2, Type=typing.List[TestCluster.Enums.SimpleEnum]), + ClusterObjectFieldDescriptor(Label="arg4", Tag=3, Type=typing.List[bool]), + ClusterObjectFieldDescriptor(Label="arg5", Tag=4, Type=TestCluster.Enums.SimpleEnum), + ClusterObjectFieldDescriptor(Label="arg6", Tag=5, Type=bool), ]) - arg1: 'typing.List[TestCluster.Structs.NestedStructList]' = field( - default_factory=lambda: []) - arg2: 'typing.List[TestCluster.Structs.SimpleStruct]' = field( - default_factory=lambda: []) - arg3: 'typing.List[TestCluster.Enums.SimpleEnum]' = field( - default_factory=lambda: []) + arg1: 'typing.List[TestCluster.Structs.NestedStructList]' = field(default_factory=lambda: []) + arg2: 'typing.List[TestCluster.Structs.SimpleStruct]' = field(default_factory=lambda: []) + arg3: 'typing.List[TestCluster.Enums.SimpleEnum]' = field(default_factory=lambda: []) arg4: 'typing.List[bool]' = field(default_factory=lambda: []) arg5: 'TestCluster.Enums.SimpleEnum' = 0 arg6: 'bool' = False @@ -25339,11 +24863,9 @@ class TestAddArguments(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="arg1", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="arg2", Tag=1, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="arg1", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="arg2", Tag=1, Type=uint), ]) arg1: 'uint' = 0 @@ -25358,9 +24880,8 @@ class TestListInt8UReverseResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="arg1", Tag=0, Type=typing.List[uint]), + Fields = [ + ClusterObjectFieldDescriptor(Label="arg1", Tag=0, Type=typing.List[uint]), ]) arg1: 'typing.List[uint]' = field(default_factory=lambda: []) @@ -25374,9 +24895,8 @@ class TestSimpleArgumentRequest(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="arg1", Tag=0, Type=bool), + Fields = [ + ClusterObjectFieldDescriptor(Label="arg1", Tag=0, Type=bool), ]) arg1: 'bool' = False @@ -25390,11 +24910,9 @@ class TestEnumsResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="arg1", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="arg2", Tag=1, Type=TestCluster.Enums.SimpleEnum), + Fields = [ + ClusterObjectFieldDescriptor(Label="arg1", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="arg2", Tag=1, Type=TestCluster.Enums.SimpleEnum), ]) arg1: 'uint' = 0 @@ -25409,27 +24927,18 @@ class TestStructArrayArgumentRequest(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="arg1", Tag=0, Type=typing.List[TestCluster.Structs.NestedStructList]), - ClusterObjectFieldDescriptor( - Label="arg2", Tag=1, Type=typing.List[TestCluster.Structs.SimpleStruct]), - ClusterObjectFieldDescriptor( - Label="arg3", Tag=2, Type=typing.List[TestCluster.Enums.SimpleEnum]), - ClusterObjectFieldDescriptor( - Label="arg4", Tag=3, Type=typing.List[bool]), - ClusterObjectFieldDescriptor( - Label="arg5", Tag=4, Type=TestCluster.Enums.SimpleEnum), - ClusterObjectFieldDescriptor( - Label="arg6", Tag=5, Type=bool), + Fields = [ + ClusterObjectFieldDescriptor(Label="arg1", Tag=0, Type=typing.List[TestCluster.Structs.NestedStructList]), + ClusterObjectFieldDescriptor(Label="arg2", Tag=1, Type=typing.List[TestCluster.Structs.SimpleStruct]), + ClusterObjectFieldDescriptor(Label="arg3", Tag=2, Type=typing.List[TestCluster.Enums.SimpleEnum]), + ClusterObjectFieldDescriptor(Label="arg4", Tag=3, Type=typing.List[bool]), + ClusterObjectFieldDescriptor(Label="arg5", Tag=4, Type=TestCluster.Enums.SimpleEnum), + ClusterObjectFieldDescriptor(Label="arg6", Tag=5, Type=bool), ]) - arg1: 'typing.List[TestCluster.Structs.NestedStructList]' = field( - default_factory=lambda: []) - arg2: 'typing.List[TestCluster.Structs.SimpleStruct]' = field( - default_factory=lambda: []) - arg3: 'typing.List[TestCluster.Enums.SimpleEnum]' = field( - default_factory=lambda: []) + arg1: 'typing.List[TestCluster.Structs.NestedStructList]' = field(default_factory=lambda: []) + arg2: 'typing.List[TestCluster.Structs.SimpleStruct]' = field(default_factory=lambda: []) + arg3: 'typing.List[TestCluster.Enums.SimpleEnum]' = field(default_factory=lambda: []) arg4: 'typing.List[bool]' = field(default_factory=lambda: []) arg5: 'TestCluster.Enums.SimpleEnum' = 0 arg6: 'bool' = False @@ -25443,15 +24952,11 @@ class TestNullableOptionalResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="wasPresent", Tag=0, Type=bool), - ClusterObjectFieldDescriptor( - Label="wasNull", Tag=1, Type=typing.Optional[bool]), - ClusterObjectFieldDescriptor( - Label="value", Tag=2, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor( - Label="originalValue", Tag=3, Type=typing.Union[None, Nullable, uint]), + Fields = [ + ClusterObjectFieldDescriptor(Label="wasPresent", Tag=0, Type=bool), + ClusterObjectFieldDescriptor(Label="wasNull", Tag=1, Type=typing.Optional[bool]), + ClusterObjectFieldDescriptor(Label="value", Tag=2, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="originalValue", Tag=3, Type=typing.Union[None, Nullable, uint]), ]) wasPresent: 'bool' = False @@ -25468,13 +24973,11 @@ class TestStructArgumentRequest(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="arg1", Tag=0, Type=TestCluster.Structs.SimpleStruct), + Fields = [ + ClusterObjectFieldDescriptor(Label="arg1", Tag=0, Type=TestCluster.Structs.SimpleStruct), ]) - arg1: 'TestCluster.Structs.SimpleStruct' = field( - default_factory=lambda: TestCluster.Structs.SimpleStruct()) + arg1: 'TestCluster.Structs.SimpleStruct' = field(default_factory=lambda: TestCluster.Structs.SimpleStruct()) @dataclass class TestComplexNullableOptionalResponse(ClusterCommand): @@ -25485,63 +24988,35 @@ class TestComplexNullableOptionalResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="nullableIntWasNull", Tag=0, Type=bool), - ClusterObjectFieldDescriptor( - Label="nullableIntValue", Tag=1, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor( - Label="optionalIntWasPresent", Tag=2, Type=bool), - ClusterObjectFieldDescriptor( - Label="optionalIntValue", Tag=3, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor( - Label="nullableOptionalIntWasPresent", Tag=4, Type=bool), - ClusterObjectFieldDescriptor( - Label="nullableOptionalIntWasNull", Tag=5, Type=typing.Optional[bool]), - ClusterObjectFieldDescriptor( - Label="nullableOptionalIntValue", Tag=6, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor( - Label="nullableStringWasNull", Tag=7, Type=bool), - ClusterObjectFieldDescriptor( - Label="nullableStringValue", Tag=8, Type=typing.Optional[str]), - ClusterObjectFieldDescriptor( - Label="optionalStringWasPresent", Tag=9, Type=bool), - ClusterObjectFieldDescriptor( - Label="optionalStringValue", Tag=10, Type=typing.Optional[str]), - ClusterObjectFieldDescriptor( - Label="nullableOptionalStringWasPresent", Tag=11, Type=bool), - ClusterObjectFieldDescriptor( - Label="nullableOptionalStringWasNull", Tag=12, Type=typing.Optional[bool]), - ClusterObjectFieldDescriptor( - Label="nullableOptionalStringValue", Tag=13, Type=typing.Optional[str]), - ClusterObjectFieldDescriptor( - Label="nullableStructWasNull", Tag=14, Type=bool), - ClusterObjectFieldDescriptor( - Label="nullableStructValue", Tag=15, Type=typing.Optional[TestCluster.Structs.SimpleStruct]), - ClusterObjectFieldDescriptor( - Label="optionalStructWasPresent", Tag=16, Type=bool), - ClusterObjectFieldDescriptor( - Label="optionalStructValue", Tag=17, Type=typing.Optional[TestCluster.Structs.SimpleStruct]), - ClusterObjectFieldDescriptor( - Label="nullableOptionalStructWasPresent", Tag=18, Type=bool), - ClusterObjectFieldDescriptor( - Label="nullableOptionalStructWasNull", Tag=19, Type=typing.Optional[bool]), - ClusterObjectFieldDescriptor( - Label="nullableOptionalStructValue", Tag=20, Type=typing.Optional[TestCluster.Structs.SimpleStruct]), - ClusterObjectFieldDescriptor( - Label="nullableListWasNull", Tag=21, Type=bool), - ClusterObjectFieldDescriptor( - Label="nullableListValue", Tag=22, Type=typing.Optional[typing.List[TestCluster.Enums.SimpleEnum]]), - ClusterObjectFieldDescriptor( - Label="optionalListWasPresent", Tag=23, Type=bool), - ClusterObjectFieldDescriptor( - Label="optionalListValue", Tag=24, Type=typing.Optional[typing.List[TestCluster.Enums.SimpleEnum]]), - ClusterObjectFieldDescriptor( - Label="nullableOptionalListWasPresent", Tag=25, Type=bool), - ClusterObjectFieldDescriptor( - Label="nullableOptionalListWasNull", Tag=26, Type=typing.Optional[bool]), - ClusterObjectFieldDescriptor( - Label="nullableOptionalListValue", Tag=27, Type=typing.Optional[typing.List[TestCluster.Enums.SimpleEnum]]), + Fields = [ + ClusterObjectFieldDescriptor(Label="nullableIntWasNull", Tag=0, Type=bool), + ClusterObjectFieldDescriptor(Label="nullableIntValue", Tag=1, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="optionalIntWasPresent", Tag=2, Type=bool), + ClusterObjectFieldDescriptor(Label="optionalIntValue", Tag=3, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="nullableOptionalIntWasPresent", Tag=4, Type=bool), + ClusterObjectFieldDescriptor(Label="nullableOptionalIntWasNull", Tag=5, Type=typing.Optional[bool]), + ClusterObjectFieldDescriptor(Label="nullableOptionalIntValue", Tag=6, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="nullableStringWasNull", Tag=7, Type=bool), + ClusterObjectFieldDescriptor(Label="nullableStringValue", Tag=8, Type=typing.Optional[str]), + ClusterObjectFieldDescriptor(Label="optionalStringWasPresent", Tag=9, Type=bool), + ClusterObjectFieldDescriptor(Label="optionalStringValue", Tag=10, Type=typing.Optional[str]), + ClusterObjectFieldDescriptor(Label="nullableOptionalStringWasPresent", Tag=11, Type=bool), + ClusterObjectFieldDescriptor(Label="nullableOptionalStringWasNull", Tag=12, Type=typing.Optional[bool]), + ClusterObjectFieldDescriptor(Label="nullableOptionalStringValue", Tag=13, Type=typing.Optional[str]), + ClusterObjectFieldDescriptor(Label="nullableStructWasNull", Tag=14, Type=bool), + ClusterObjectFieldDescriptor(Label="nullableStructValue", Tag=15, Type=typing.Optional[TestCluster.Structs.SimpleStruct]), + ClusterObjectFieldDescriptor(Label="optionalStructWasPresent", Tag=16, Type=bool), + ClusterObjectFieldDescriptor(Label="optionalStructValue", Tag=17, Type=typing.Optional[TestCluster.Structs.SimpleStruct]), + ClusterObjectFieldDescriptor(Label="nullableOptionalStructWasPresent", Tag=18, Type=bool), + ClusterObjectFieldDescriptor(Label="nullableOptionalStructWasNull", Tag=19, Type=typing.Optional[bool]), + ClusterObjectFieldDescriptor(Label="nullableOptionalStructValue", Tag=20, Type=typing.Optional[TestCluster.Structs.SimpleStruct]), + ClusterObjectFieldDescriptor(Label="nullableListWasNull", Tag=21, Type=bool), + ClusterObjectFieldDescriptor(Label="nullableListValue", Tag=22, Type=typing.Optional[typing.List[TestCluster.Enums.SimpleEnum]]), + ClusterObjectFieldDescriptor(Label="optionalListWasPresent", Tag=23, Type=bool), + ClusterObjectFieldDescriptor(Label="optionalListValue", Tag=24, Type=typing.Optional[typing.List[TestCluster.Enums.SimpleEnum]]), + ClusterObjectFieldDescriptor(Label="nullableOptionalListWasPresent", Tag=25, Type=bool), + ClusterObjectFieldDescriptor(Label="nullableOptionalListWasNull", Tag=26, Type=typing.Optional[bool]), + ClusterObjectFieldDescriptor(Label="nullableOptionalListValue", Tag=27, Type=typing.Optional[typing.List[TestCluster.Enums.SimpleEnum]]), ]) nullableIntWasNull: 'bool' = False @@ -25582,13 +25057,11 @@ class TestNestedStructArgumentRequest(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="arg1", Tag=0, Type=TestCluster.Structs.NestedStruct), + Fields = [ + ClusterObjectFieldDescriptor(Label="arg1", Tag=0, Type=TestCluster.Structs.NestedStruct), ]) - arg1: 'TestCluster.Structs.NestedStruct' = field( - default_factory=lambda: TestCluster.Structs.NestedStruct()) + arg1: 'TestCluster.Structs.NestedStruct' = field(default_factory=lambda: TestCluster.Structs.NestedStruct()) @dataclass class BooleanResponse(ClusterCommand): @@ -25599,9 +25072,8 @@ class BooleanResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="value", Tag=0, Type=bool), + Fields = [ + ClusterObjectFieldDescriptor(Label="value", Tag=0, Type=bool), ]) value: 'bool' = False @@ -25615,13 +25087,11 @@ class TestListStructArgumentRequest(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="arg1", Tag=0, Type=typing.List[TestCluster.Structs.SimpleStruct]), + Fields = [ + ClusterObjectFieldDescriptor(Label="arg1", Tag=0, Type=typing.List[TestCluster.Structs.SimpleStruct]), ]) - arg1: 'typing.List[TestCluster.Structs.SimpleStruct]' = field( - default_factory=lambda: []) + arg1: 'typing.List[TestCluster.Structs.SimpleStruct]' = field(default_factory=lambda: []) @dataclass class SimpleStructResponse(ClusterCommand): @@ -25632,13 +25102,11 @@ class SimpleStructResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="arg1", Tag=0, Type=TestCluster.Structs.SimpleStruct), + Fields = [ + ClusterObjectFieldDescriptor(Label="arg1", Tag=0, Type=TestCluster.Structs.SimpleStruct), ]) - arg1: 'TestCluster.Structs.SimpleStruct' = field( - default_factory=lambda: TestCluster.Structs.SimpleStruct()) + arg1: 'TestCluster.Structs.SimpleStruct' = field(default_factory=lambda: TestCluster.Structs.SimpleStruct()) @dataclass class TestListInt8UArgumentRequest(ClusterCommand): @@ -25649,9 +25117,8 @@ class TestListInt8UArgumentRequest(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="arg1", Tag=0, Type=typing.List[uint]), + Fields = [ + ClusterObjectFieldDescriptor(Label="arg1", Tag=0, Type=typing.List[uint]), ]) arg1: 'typing.List[uint]' = field(default_factory=lambda: []) @@ -25665,13 +25132,11 @@ class TestNestedStructListArgumentRequest(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="arg1", Tag=0, Type=TestCluster.Structs.NestedStructList), + Fields = [ + ClusterObjectFieldDescriptor(Label="arg1", Tag=0, Type=TestCluster.Structs.NestedStructList), ]) - arg1: 'TestCluster.Structs.NestedStructList' = field( - default_factory=lambda: TestCluster.Structs.NestedStructList()) + arg1: 'TestCluster.Structs.NestedStructList' = field(default_factory=lambda: TestCluster.Structs.NestedStructList()) @dataclass class TestListNestedStructListArgumentRequest(ClusterCommand): @@ -25682,13 +25147,11 @@ class TestListNestedStructListArgumentRequest(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="arg1", Tag=0, Type=typing.List[TestCluster.Structs.NestedStructList]), + Fields = [ + ClusterObjectFieldDescriptor(Label="arg1", Tag=0, Type=typing.List[TestCluster.Structs.NestedStructList]), ]) - arg1: 'typing.List[TestCluster.Structs.NestedStructList]' = field( - default_factory=lambda: []) + arg1: 'typing.List[TestCluster.Structs.NestedStructList]' = field(default_factory=lambda: []) @dataclass class TestListInt8UReverseRequest(ClusterCommand): @@ -25699,9 +25162,8 @@ class TestListInt8UReverseRequest(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="arg1", Tag=0, Type=typing.List[uint]), + Fields = [ + ClusterObjectFieldDescriptor(Label="arg1", Tag=0, Type=typing.List[uint]), ]) arg1: 'typing.List[uint]' = field(default_factory=lambda: []) @@ -25715,11 +25177,9 @@ class TestEnumsRequest(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="arg1", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="arg2", Tag=1, Type=TestCluster.Enums.SimpleEnum), + Fields = [ + ClusterObjectFieldDescriptor(Label="arg1", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="arg2", Tag=1, Type=TestCluster.Enums.SimpleEnum), ]) arg1: 'uint' = 0 @@ -25734,9 +25194,8 @@ class TestNullableOptionalRequest(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="arg1", Tag=0, Type=typing.Union[None, Nullable, uint]), + Fields = [ + ClusterObjectFieldDescriptor(Label="arg1", Tag=0, Type=typing.Union[None, Nullable, uint]), ]) arg1: 'typing.Union[None, Nullable, uint]' = None @@ -25750,31 +25209,19 @@ class TestComplexNullableOptionalRequest(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="nullableInt", Tag=0, Type=typing.Union[Nullable, uint]), - ClusterObjectFieldDescriptor( - Label="optionalInt", Tag=1, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor( - Label="nullableOptionalInt", Tag=2, Type=typing.Union[None, Nullable, uint]), - ClusterObjectFieldDescriptor( - Label="nullableString", Tag=3, Type=typing.Union[Nullable, str]), - ClusterObjectFieldDescriptor( - Label="optionalString", Tag=4, Type=typing.Optional[str]), - ClusterObjectFieldDescriptor( - Label="nullableOptionalString", Tag=5, Type=typing.Union[None, Nullable, str]), - ClusterObjectFieldDescriptor( - Label="nullableStruct", Tag=6, Type=typing.Union[Nullable, TestCluster.Structs.SimpleStruct]), - ClusterObjectFieldDescriptor( - Label="optionalStruct", Tag=7, Type=typing.Optional[TestCluster.Structs.SimpleStruct]), - ClusterObjectFieldDescriptor( - Label="nullableOptionalStruct", Tag=8, Type=typing.Union[None, Nullable, TestCluster.Structs.SimpleStruct]), - ClusterObjectFieldDescriptor( - Label="nullableList", Tag=9, Type=typing.Union[Nullable, typing.List[TestCluster.Enums.SimpleEnum]]), - ClusterObjectFieldDescriptor( - Label="optionalList", Tag=10, Type=typing.Optional[typing.List[TestCluster.Enums.SimpleEnum]]), - ClusterObjectFieldDescriptor( - Label="nullableOptionalList", Tag=11, Type=typing.Union[None, Nullable, typing.List[TestCluster.Enums.SimpleEnum]]), + Fields = [ + ClusterObjectFieldDescriptor(Label="nullableInt", Tag=0, Type=typing.Union[Nullable, uint]), + ClusterObjectFieldDescriptor(Label="optionalInt", Tag=1, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="nullableOptionalInt", Tag=2, Type=typing.Union[None, Nullable, uint]), + ClusterObjectFieldDescriptor(Label="nullableString", Tag=3, Type=typing.Union[Nullable, str]), + ClusterObjectFieldDescriptor(Label="optionalString", Tag=4, Type=typing.Optional[str]), + ClusterObjectFieldDescriptor(Label="nullableOptionalString", Tag=5, Type=typing.Union[None, Nullable, str]), + ClusterObjectFieldDescriptor(Label="nullableStruct", Tag=6, Type=typing.Union[Nullable, TestCluster.Structs.SimpleStruct]), + ClusterObjectFieldDescriptor(Label="optionalStruct", Tag=7, Type=typing.Optional[TestCluster.Structs.SimpleStruct]), + ClusterObjectFieldDescriptor(Label="nullableOptionalStruct", Tag=8, Type=typing.Union[None, Nullable, TestCluster.Structs.SimpleStruct]), + ClusterObjectFieldDescriptor(Label="nullableList", Tag=9, Type=typing.Union[Nullable, typing.List[TestCluster.Enums.SimpleEnum]]), + ClusterObjectFieldDescriptor(Label="optionalList", Tag=10, Type=typing.Optional[typing.List[TestCluster.Enums.SimpleEnum]]), + ClusterObjectFieldDescriptor(Label="nullableOptionalList", Tag=11, Type=typing.Union[None, Nullable, typing.List[TestCluster.Enums.SimpleEnum]]), ]) nullableInt: 'typing.Union[Nullable, uint]' = NullValue @@ -25799,13 +25246,11 @@ class SimpleStructEchoRequest(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="arg1", Tag=0, Type=TestCluster.Structs.SimpleStruct), + Fields = [ + ClusterObjectFieldDescriptor(Label="arg1", Tag=0, Type=TestCluster.Structs.SimpleStruct), ]) - arg1: 'TestCluster.Structs.SimpleStruct' = field( - default_factory=lambda: TestCluster.Structs.SimpleStruct()) + arg1: 'TestCluster.Structs.SimpleStruct' = field(default_factory=lambda: TestCluster.Structs.SimpleStruct()) @dataclass class TimedInvokeRequest(ClusterCommand): @@ -25816,9 +25261,10 @@ class TimedInvokeRequest(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class TestSimpleOptionalArgumentRequest(ClusterCommand): cluster_id: typing.ClassVar[int] = 0x050F @@ -25828,13 +25274,13 @@ class TestSimpleOptionalArgumentRequest(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="arg1", Tag=0, Type=typing.Optional[bool]), + Fields = [ + ClusterObjectFieldDescriptor(Label="arg1", Tag=0, Type=typing.Optional[bool]), ]) arg1: 'typing.Optional[bool]' = None + class Attributes: @dataclass class Boolean(ClusterAttributeDescriptor): @@ -26298,8 +25744,7 @@ def attribute_id(cls) -> int: def attribute_type(cls) -> ClusterObjectFieldDescriptor: return ClusterObjectFieldDescriptor(Type=typing.List[TestCluster.Structs.TestListStructOctet]) - value: 'typing.List[TestCluster.Structs.TestListStructOctet]' = field( - default_factory=lambda: []) + value: 'typing.List[TestCluster.Structs.TestListStructOctet]' = field(default_factory=lambda: []) @dataclass class LongOctetString(ClusterAttributeDescriptor): @@ -26411,8 +25856,7 @@ def attribute_id(cls) -> int: def attribute_type(cls) -> ClusterObjectFieldDescriptor: return ClusterObjectFieldDescriptor(Type=typing.List[TestCluster.Structs.NullablesAndOptionalsStruct]) - value: 'typing.List[TestCluster.Structs.NullablesAndOptionalsStruct]' = field( - default_factory=lambda: []) + value: 'typing.List[TestCluster.Structs.NullablesAndOptionalsStruct]' = field(default_factory=lambda: []) @dataclass class EnumAttr(ClusterAttributeDescriptor): @@ -26444,8 +25888,7 @@ def attribute_id(cls) -> int: def attribute_type(cls) -> ClusterObjectFieldDescriptor: return ClusterObjectFieldDescriptor(Type=TestCluster.Structs.SimpleStruct) - value: 'TestCluster.Structs.SimpleStruct' = field( - default_factory=lambda: TestCluster.Structs.SimpleStruct()) + value: 'TestCluster.Structs.SimpleStruct' = field(default_factory=lambda: TestCluster.Structs.SimpleStruct()) @dataclass class RangeRestrictedInt8u(ClusterAttributeDescriptor): @@ -27119,6 +26562,7 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + class Events: @dataclass class TestEvent(ClusterEventDescriptor): @@ -27128,30 +26572,21 @@ class TestEvent(ClusterEventDescriptor): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="arg1", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="arg2", Tag=2, Type=TestCluster.Enums.SimpleEnum), - ClusterObjectFieldDescriptor( - Label="arg3", Tag=3, Type=bool), - ClusterObjectFieldDescriptor( - Label="arg4", Tag=4, Type=TestCluster.Structs.SimpleStruct), - ClusterObjectFieldDescriptor( - Label="arg5", Tag=5, Type=typing.List[TestCluster.Structs.SimpleStruct], IsArray=True), - ClusterObjectFieldDescriptor( - Label="arg6", Tag=6, Type=typing.List[TestCluster.Enums.SimpleEnum], IsArray=True), + Fields = [ + ClusterObjectFieldDescriptor(Label="arg1", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="arg2", Tag=2, Type=TestCluster.Enums.SimpleEnum), + ClusterObjectFieldDescriptor(Label="arg3", Tag=3, Type=bool), + ClusterObjectFieldDescriptor(Label="arg4", Tag=4, Type=TestCluster.Structs.SimpleStruct), + ClusterObjectFieldDescriptor(Label="arg5", Tag=5, Type=typing.List[TestCluster.Structs.SimpleStruct], IsArray=True), + ClusterObjectFieldDescriptor(Label="arg6", Tag=6, Type=typing.List[TestCluster.Enums.SimpleEnum], IsArray=True), ]) arg1: 'uint' = 0 arg2: 'TestCluster.Enums.SimpleEnum' = 0 arg3: 'bool' = False - arg4: 'TestCluster.Structs.SimpleStruct' = field( - default_factory=lambda: TestCluster.Structs.SimpleStruct()) - arg5: typing.List['typing.List[TestCluster.Structs.SimpleStruct]'] = field( - default_factory=lambda: []) - arg6: typing.List['typing.List[TestCluster.Enums.SimpleEnum]'] = field( - default_factory=lambda: []) + arg4: 'TestCluster.Structs.SimpleStruct' = field(default_factory=lambda: TestCluster.Structs.SimpleStruct()) + arg5: typing.List['typing.List[TestCluster.Structs.SimpleStruct]'] = field(default_factory=lambda: []) + arg6: typing.List['typing.List[TestCluster.Enums.SimpleEnum]'] = field(default_factory=lambda: []) @dataclass @@ -27262,6 +26697,8 @@ class MessagingControlTransmission(IntEnum): kAnonymous = 0x02 kReserved = 0x03 + + class Commands: @dataclass class DisplayMessage(ClusterCommand): @@ -27272,19 +26709,13 @@ class DisplayMessage(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="messageId", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="messageControl", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="startTime", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="durationInMinutes", Tag=3, Type=uint), - ClusterObjectFieldDescriptor( - Label="message", Tag=4, Type=str), - ClusterObjectFieldDescriptor( - Label="optionalExtendedMessageControl", Tag=5, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="messageId", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="messageControl", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="startTime", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="durationInMinutes", Tag=3, Type=uint), + ClusterObjectFieldDescriptor(Label="message", Tag=4, Type=str), + ClusterObjectFieldDescriptor(Label="optionalExtendedMessageControl", Tag=5, Type=uint), ]) messageId: 'uint' = 0 @@ -27303,9 +26734,10 @@ class GetLastMessage(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class CancelMessage(ClusterCommand): cluster_id: typing.ClassVar[int] = 0x0703 @@ -27315,11 +26747,9 @@ class CancelMessage(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="messageId", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="messageControl", Tag=1, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="messageId", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="messageControl", Tag=1, Type=uint), ]) messageId: 'uint' = 0 @@ -27334,15 +26764,11 @@ class MessageConfirmation(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="messageId", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="confirmationTime", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="messageConfirmationControl", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="messageResponse", Tag=3, Type=bytes), + Fields = [ + ClusterObjectFieldDescriptor(Label="messageId", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="confirmationTime", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="messageConfirmationControl", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="messageResponse", Tag=3, Type=bytes), ]) messageId: 'uint' = 0 @@ -27359,19 +26785,13 @@ class DisplayProtectedMessage(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="messageId", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="messageControl", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="startTime", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="durationInMinutes", Tag=3, Type=uint), - ClusterObjectFieldDescriptor( - Label="message", Tag=4, Type=str), - ClusterObjectFieldDescriptor( - Label="optionalExtendedMessageControl", Tag=5, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="messageId", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="messageControl", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="startTime", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="durationInMinutes", Tag=3, Type=uint), + ClusterObjectFieldDescriptor(Label="message", Tag=4, Type=str), + ClusterObjectFieldDescriptor(Label="optionalExtendedMessageControl", Tag=5, Type=uint), ]) messageId: 'uint' = 0 @@ -27390,9 +26810,8 @@ class GetMessageCancellation(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="earliestImplementationTime", Tag=0, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="earliestImplementationTime", Tag=0, Type=uint), ]) earliestImplementationTime: 'uint' = 0 @@ -27406,13 +26825,13 @@ class CancelAllMessages(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="implementationDateTime", Tag=0, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="implementationDateTime", Tag=0, Type=uint), ]) implementationDateTime: 'uint' = 0 + class Attributes: @dataclass class FeatureMap(ClusterAttributeDescriptor): @@ -27447,10 +26866,14 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class ApplianceIdentification(Cluster): id: typing.ClassVar[int] = 0x0B00 + + + class Attributes: @dataclass class BasicIdentification(ClusterAttributeDescriptor): @@ -27677,10 +27100,14 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class MeterIdentification(Cluster): id: typing.ClassVar[int] = 0x0B01 + + + class Attributes: @dataclass class CompanyName(ClusterAttributeDescriptor): @@ -27907,6 +27334,7 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class ApplianceEventsAndAlert(Cluster): id: typing.ClassVar[int] = 0x0B02 @@ -27919,6 +27347,8 @@ class EventIdentification(IntEnum): kSwitchingOff = 0x06 kWrongData = 0x07 + + class Commands: @dataclass class GetAlerts(ClusterCommand): @@ -27929,9 +27359,10 @@ class GetAlerts(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class GetAlertsResponse(ClusterCommand): cluster_id: typing.ClassVar[int] = 0x0B02 @@ -27941,16 +27372,13 @@ class GetAlertsResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="alertsCount", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="alertStructures", Tag=1, Type=typing.List[uint]), + Fields = [ + ClusterObjectFieldDescriptor(Label="alertsCount", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="alertStructures", Tag=1, Type=typing.List[uint]), ]) alertsCount: 'uint' = 0 - alertStructures: 'typing.List[uint]' = field( - default_factory=lambda: []) + alertStructures: 'typing.List[uint]' = field(default_factory=lambda: []) @dataclass class AlertsNotification(ClusterCommand): @@ -27961,16 +27389,13 @@ class AlertsNotification(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="alertsCount", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="alertStructures", Tag=1, Type=typing.List[uint]), + Fields = [ + ClusterObjectFieldDescriptor(Label="alertsCount", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="alertStructures", Tag=1, Type=typing.List[uint]), ]) alertsCount: 'uint' = 0 - alertStructures: 'typing.List[uint]' = field( - default_factory=lambda: []) + alertStructures: 'typing.List[uint]' = field(default_factory=lambda: []) @dataclass class EventsNotification(ClusterCommand): @@ -27981,16 +27406,15 @@ class EventsNotification(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="eventHeader", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="eventId", Tag=1, Type=ApplianceEventsAndAlert.Enums.EventIdentification), + Fields = [ + ClusterObjectFieldDescriptor(Label="eventHeader", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="eventId", Tag=1, Type=ApplianceEventsAndAlert.Enums.EventIdentification), ]) eventHeader: 'uint' = 0 eventId: 'ApplianceEventsAndAlert.Enums.EventIdentification' = 0 + class Attributes: @dataclass class FeatureMap(ClusterAttributeDescriptor): @@ -28025,10 +27449,13 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class ApplianceStatistics(Cluster): id: typing.ClassVar[int] = 0x0B03 + + class Commands: @dataclass class LogNotification(ClusterCommand): @@ -28039,15 +27466,11 @@ class LogNotification(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="timeStamp", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="logId", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="logLength", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="logPayload", Tag=3, Type=typing.List[uint]), + Fields = [ + ClusterObjectFieldDescriptor(Label="timeStamp", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="logId", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="logLength", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="logPayload", Tag=3, Type=typing.List[uint]), ]) timeStamp: 'uint' = 0 @@ -28064,9 +27487,8 @@ class LogRequest(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="logId", Tag=0, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="logId", Tag=0, Type=uint), ]) logId: 'uint' = 0 @@ -28080,15 +27502,11 @@ class LogResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="timeStamp", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="logId", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="logLength", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="logPayload", Tag=3, Type=typing.List[uint]), + Fields = [ + ClusterObjectFieldDescriptor(Label="timeStamp", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="logId", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="logLength", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="logPayload", Tag=3, Type=typing.List[uint]), ]) timeStamp: 'uint' = 0 @@ -28105,9 +27523,10 @@ class LogQueueRequest(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class LogQueueResponse(ClusterCommand): cluster_id: typing.ClassVar[int] = 0x0B03 @@ -28117,11 +27536,9 @@ class LogQueueResponse(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="logQueueSize", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="logIds", Tag=1, Type=typing.List[uint]), + Fields = [ + ClusterObjectFieldDescriptor(Label="logQueueSize", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="logIds", Tag=1, Type=typing.List[uint]), ]) logQueueSize: 'uint' = 0 @@ -28136,16 +27553,15 @@ class StatisticsAvailable(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="logQueueSize", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="logIds", Tag=1, Type=typing.List[uint]), + Fields = [ + ClusterObjectFieldDescriptor(Label="logQueueSize", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="logIds", Tag=1, Type=typing.List[uint]), ]) logQueueSize: 'uint' = 0 logIds: 'typing.List[uint]' = field(default_factory=lambda: []) + class Attributes: @dataclass class LogMaxSize(ClusterAttributeDescriptor): @@ -28212,10 +27628,13 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 + @dataclass class ElectricalMeasurement(Cluster): id: typing.ClassVar[int] = 0x0B04 + + class Commands: @dataclass class GetProfileInfoResponseCommand(ClusterCommand): @@ -28226,22 +27645,17 @@ class GetProfileInfoResponseCommand(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="profileCount", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="profileIntervalPeriod", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="maxNumberOfIntervals", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="listOfAttributes", Tag=3, Type=typing.List[uint]), + Fields = [ + ClusterObjectFieldDescriptor(Label="profileCount", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="profileIntervalPeriod", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="maxNumberOfIntervals", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="listOfAttributes", Tag=3, Type=typing.List[uint]), ]) profileCount: 'uint' = 0 profileIntervalPeriod: 'uint' = 0 maxNumberOfIntervals: 'uint' = 0 - listOfAttributes: 'typing.List[uint]' = field( - default_factory=lambda: []) + listOfAttributes: 'typing.List[uint]' = field(default_factory=lambda: []) @dataclass class GetProfileInfoCommand(ClusterCommand): @@ -28252,9 +27666,10 @@ class GetProfileInfoCommand(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ + Fields = [ ]) + @dataclass class GetMeasurementProfileResponseCommand(ClusterCommand): cluster_id: typing.ClassVar[int] = 0x0B04 @@ -28264,19 +27679,13 @@ class GetMeasurementProfileResponseCommand(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="startTime", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="status", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="profileIntervalPeriod", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="numberOfIntervalsDelivered", Tag=3, Type=uint), - ClusterObjectFieldDescriptor( - Label="attributeId", Tag=4, Type=uint), - ClusterObjectFieldDescriptor( - Label="intervals", Tag=5, Type=typing.List[uint]), + Fields = [ + ClusterObjectFieldDescriptor(Label="startTime", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="status", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="profileIntervalPeriod", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="numberOfIntervalsDelivered", Tag=3, Type=uint), + ClusterObjectFieldDescriptor(Label="attributeId", Tag=4, Type=uint), + ClusterObjectFieldDescriptor(Label="intervals", Tag=5, Type=typing.List[uint]), ]) startTime: 'uint' = 0 @@ -28295,19 +27704,17 @@ class GetMeasurementProfileCommand(ClusterCommand): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( - Fields=[ - ClusterObjectFieldDescriptor( - Label="attributeId", Tag=0, Type=uint), - ClusterObjectFieldDescriptor( - Label="startTime", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="numberOfIntervals", Tag=2, Type=uint), + Fields = [ + ClusterObjectFieldDescriptor(Label="attributeId", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="startTime", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="numberOfIntervals", Tag=2, Type=uint), ]) attributeId: 'uint' = 0 startTime: 'uint' = 0 numberOfIntervals: 'uint' = 0 + class Attributes: @dataclass class MeasurementType(ClusterAttributeDescriptor): @@ -30388,3 +29795,6 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: return ClusterObjectFieldDescriptor(Type=uint) value: 'uint' = 0 + + +