From f7eb94eafc0027b5d1219332e3c7b60c4e9e3c3d Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Wed, 6 Jul 2022 10:09:25 +0200 Subject: [PATCH 1/2] Bump to CHIP version 5b603f3874 (2022-07-05 21:21:19 -0700) --- matter_server/vendor/chip/clusters/Objects.py | 1245 ++--------------- .../vendor/chip/clusters/ObjectsVersion.py | 2 +- 2 files changed, 83 insertions(+), 1164 deletions(-) diff --git a/matter_server/vendor/chip/clusters/Objects.py b/matter_server/vendor/chip/clusters/Objects.py index b35179ba..5911fe97 100644 --- a/matter_server/vendor/chip/clusters/Objects.py +++ b/matter_server/vendor/chip/clusters/Objects.py @@ -9306,9 +9306,11 @@ def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( Fields = [ ClusterObjectFieldDescriptor(Label="failSafeExpiryLengthSeconds", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="maxCumulativeFailsafeSeconds", Tag=1, Type=uint), ]) failSafeExpiryLengthSeconds: 'uint' = 0 + maxCumulativeFailsafeSeconds: 'uint' = 0 @@ -10716,21 +10718,6 @@ def descriptor(cls) -> ClusterObjectDescriptor: class Structs: - @dataclass - class SoftwareFaultStruct(ClusterObject): - @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="id", Tag=0, Type=uint), - ClusterObjectFieldDescriptor(Label="name", Tag=1, Type=str), - ClusterObjectFieldDescriptor(Label="faultRecording", Tag=2, Type=bytes), - ]) - - id: 'uint' = 0 - name: 'str' = "" - faultRecording: 'bytes' = b"" - @dataclass class ThreadMetrics(ClusterObject): @ChipUtility.classproperty @@ -10928,10 +10915,14 @@ def event_id(cls) -> int: def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( Fields = [ - ClusterObjectFieldDescriptor(Label="softwareFault", Tag=0, Type=SoftwareDiagnostics.Structs.SoftwareFaultStruct), + ClusterObjectFieldDescriptor(Label="id", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="name", Tag=1, Type=typing.Optional[str]), + ClusterObjectFieldDescriptor(Label="faultRecording", Tag=2, Type=typing.Optional[bytes]), ]) - softwareFault: 'SoftwareDiagnostics.Structs.SoftwareFaultStruct' = field(default_factory=lambda: SoftwareDiagnostics.Structs.SoftwareFaultStruct()) + id: 'uint' = 0 + name: 'typing.Optional[str]' = None + faultRecording: 'typing.Optional[bytes]' = None @dataclass @@ -30008,20 +29999,14 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: @dataclass -class IasZone(Cluster): - id: typing.ClassVar[int] = 0x0500 +class WakeOnLan(Cluster): + id: typing.ClassVar[int] = 0x0503 @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( Fields = [ - ClusterObjectFieldDescriptor(Label="zoneState", Tag=0x00000000, Type=uint), - ClusterObjectFieldDescriptor(Label="zoneType", Tag=0x00000001, Type=uint), - ClusterObjectFieldDescriptor(Label="zoneStatus", Tag=0x00000002, Type=uint), - ClusterObjectFieldDescriptor(Label="iasCieAddress", Tag=0x00000010, Type=uint), - ClusterObjectFieldDescriptor(Label="zoneId", Tag=0x00000011, Type=uint), - ClusterObjectFieldDescriptor(Label="numberOfZoneSensitivityLevelsSupported", Tag=0x00000012, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="currentZoneSensitivityLevel", Tag=0x00000013, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="MACAddress", Tag=0x00000000, Type=typing.Optional[str]), ClusterObjectFieldDescriptor(Label="generatedCommandList", Tag=0x0000FFF8, Type=typing.List[uint]), ClusterObjectFieldDescriptor(Label="acceptedCommandList", Tag=0x0000FFF9, Type=typing.List[uint]), ClusterObjectFieldDescriptor(Label="attributeList", Tag=0x0000FFFB, Type=typing.List[uint]), @@ -30029,165 +30014,22 @@ def descriptor(cls) -> ClusterObjectDescriptor: ClusterObjectFieldDescriptor(Label="clusterRevision", Tag=0x0000FFFD, Type=uint), ]) - zoneState: 'uint' = None - zoneType: 'uint' = None - zoneStatus: 'uint' = None - iasCieAddress: 'uint' = None - zoneId: 'uint' = None - numberOfZoneSensitivityLevelsSupported: 'typing.Optional[uint]' = None - currentZoneSensitivityLevel: 'typing.Optional[uint]' = None + MACAddress: 'typing.Optional[str]' = None generatedCommandList: 'typing.List[uint]' = None acceptedCommandList: 'typing.List[uint]' = None attributeList: 'typing.List[uint]' = None featureMap: 'uint' = None clusterRevision: 'uint' = None - class Enums: - class IasEnrollResponseCode(IntEnum): - kSuccess = 0x00 - kNotSupported = 0x01 - kNoEnrollPermit = 0x02 - kTooManyZones = 0x03 - - class IasZoneType(IntEnum): - kStandardCie = 0x00 - kMotionSensor = 0x0D - kContactSwitch = 0x15 - kFireSensor = 0x28 - kWaterSensor = 0x2A - kGasSensor = 0x2B - kPersonalEmergencyDevice = 0x2C - kVibrationMovementSensor = 0x2D - kRemoteControl = 0x10F - kKeyFob = 0x115 - kKeypad = 0x21D - kStandardWarningDevice = 0x225 - kGlassBreakSensor = 0x226 - kCarbonMonoxideSensor = 0x227 - kSecurityRepeater = 0x229 - kInvalidZoneType = 0xFFFF - - - - class Commands: - @dataclass - class ZoneEnrollResponse(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0500 - command_id: typing.ClassVar[int] = 0x0000 - is_client: typing.ClassVar[bool] = True - - @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), - ]) - - enrollResponseCode: 'IasZone.Enums.IasEnrollResponseCode' = 0 - zoneId: 'uint' = 0 - - @dataclass - class ZoneStatusChangeNotification(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0500 - command_id: typing.ClassVar[int] = 0x0000 - is_client: typing.ClassVar[bool] = False - - @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), - ]) - - zoneStatus: 'uint' = 0 - extendedStatus: 'uint' = 0 - zoneId: 'uint' = 0 - delay: 'uint' = 0 - - @dataclass - class InitiateNormalOperationMode(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0500 - command_id: typing.ClassVar[int] = 0x0001 - is_client: typing.ClassVar[bool] = True - - @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ]) - - - @dataclass - class ZoneEnrollRequest(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0500 - command_id: typing.ClassVar[int] = 0x0001 - is_client: typing.ClassVar[bool] = False - - @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), - ]) - - zoneType: 'IasZone.Enums.IasZoneType' = 0 - manufacturerCode: 'uint' = 0 - - @dataclass - class InitiateTestMode(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0500 - command_id: typing.ClassVar[int] = 0x0002 - is_client: typing.ClassVar[bool] = True - - @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="testModeDuration", Tag=0, Type=uint), - ClusterObjectFieldDescriptor(Label="currentZoneSensitivityLevel", Tag=1, Type=uint), - ]) - - testModeDuration: 'uint' = 0 - currentZoneSensitivityLevel: 'uint' = 0 - - @dataclass - class InitiateNormalOperationModeResponse(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0500 - command_id: typing.ClassVar[int] = 0x0002 - is_client: typing.ClassVar[bool] = False - - @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ]) - - - @dataclass - class InitiateTestModeResponse(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0500 - command_id: typing.ClassVar[int] = 0x0003 - is_client: typing.ClassVar[bool] = False - - @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ]) class Attributes: @dataclass - class ZoneState(ClusterAttributeDescriptor): + class MACAddress(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0500 + return 0x0503 @ChipUtility.classproperty def attribute_id(cls) -> int: @@ -30195,111 +30037,15 @@ def attribute_id(cls) -> int: @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=uint) - - value: 'uint' = 0 - - @dataclass - class ZoneType(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0500 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x00000001 - - @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=uint) - - value: 'uint' = 0 - - @dataclass - class ZoneStatus(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0500 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x00000002 - - @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=uint) - - value: 'uint' = 0 - - @dataclass - class IasCieAddress(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0500 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x00000010 - - @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=uint) - - value: 'uint' = 0 - - @dataclass - class ZoneId(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0500 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x00000011 - - @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=uint) - - value: 'uint' = 0 - - @dataclass - class NumberOfZoneSensitivityLevelsSupported(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0500 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x00000012 - - @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) - - value: 'typing.Optional[uint]' = None - - @dataclass - class CurrentZoneSensitivityLevel(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0500 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x00000013 - - @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[str]) - value: 'typing.Optional[uint]' = None + value: 'typing.Optional[str]' = None @dataclass class GeneratedCommandList(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0500 + return 0x0503 @ChipUtility.classproperty def attribute_id(cls) -> int: @@ -30315,7 +30061,7 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: class AcceptedCommandList(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0500 + return 0x0503 @ChipUtility.classproperty def attribute_id(cls) -> int: @@ -30331,7 +30077,7 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: class AttributeList(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0500 + return 0x0503 @ChipUtility.classproperty def attribute_id(cls) -> int: @@ -30347,7 +30093,7 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: class FeatureMap(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0500 + return 0x0503 @ChipUtility.classproperty def attribute_id(cls) -> int: @@ -30363,7 +30109,7 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: class ClusterRevision(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: - return 0x0500 + return 0x0503 @ChipUtility.classproperty def attribute_id(cls) -> int: @@ -30378,13 +30124,16 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: @dataclass -class IasAce(Cluster): - id: typing.ClassVar[int] = 0x0501 +class Channel(Cluster): + id: typing.ClassVar[int] = 0x0504 @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( Fields = [ + ClusterObjectFieldDescriptor(Label="channelList", Tag=0x00000000, Type=typing.Optional[typing.List[Channel.Structs.ChannelInfo]]), + ClusterObjectFieldDescriptor(Label="lineup", Tag=0x00000001, Type=typing.Union[None, Nullable, Channel.Structs.LineupInfo]), + ClusterObjectFieldDescriptor(Label="currentChannel", Tag=0x00000002, Type=typing.Union[None, Nullable, Channel.Structs.ChannelInfo]), ClusterObjectFieldDescriptor(Label="generatedCommandList", Tag=0x0000FFF8, Type=typing.List[uint]), ClusterObjectFieldDescriptor(Label="acceptedCommandList", Tag=0x0000FFF9, Type=typing.List[uint]), ClusterObjectFieldDescriptor(Label="attributeList", Tag=0x0000FFFB, Type=typing.List[uint]), @@ -30392,6 +30141,9 @@ def descriptor(cls) -> ClusterObjectDescriptor: ClusterObjectFieldDescriptor(Label="clusterRevision", Tag=0x0000FFFD, Type=uint), ]) + channelList: 'typing.Optional[typing.List[Channel.Structs.ChannelInfo]]' = None + lineup: 'typing.Union[None, Nullable, Channel.Structs.LineupInfo]' = None + currentChannel: 'typing.Union[None, Nullable, Channel.Structs.ChannelInfo]' = None generatedCommandList: 'typing.List[uint]' = None acceptedCommandList: 'typing.List[uint]' = None attributeList: 'typing.List[uint]' = None @@ -30399,94 +30151,58 @@ def descriptor(cls) -> ClusterObjectDescriptor: clusterRevision: 'uint' = None class Enums: - class IasAceAlarmStatus(IntEnum): - kNoAlarm = 0x00 - kBurglar = 0x01 - kFire = 0x02 - kEmergency = 0x03 - kPolicePanic = 0x04 - kFirePanic = 0x05 - kEmergencyPanic = 0x06 - - class IasAceArmMode(IntEnum): - kDisarm = 0x00 - kArmDayHomeZonesOnly = 0x01 - kArmNightSleepZonesOnly = 0x02 - kArmAllZones = 0x03 - - class IasAceArmNotification(IntEnum): - kAllZonesDisarmed = 0x00 - kOnlyDayHomeZonesArmed = 0x01 - kOnlyNightSleepZonesArmed = 0x02 - kAllZonesArmed = 0x03 - kInvalidArmDisarmCode = 0x04 - kNotReadyToArm = 0x05 - kAlreadyDisarmed = 0x06 - - class IasAceAudibleNotification(IntEnum): - kMute = 0x00 - kDefaultSound = 0x01 - - class IasAceBypassResult(IntEnum): - kZoneBypassed = 0x00 - kZoneNotBypassed = 0x01 - kNotAllowed = 0x02 - kInvalidZoneId = 0x03 - kUnknownZoneId = 0x04 - kInvalidArmDisarmCode = 0x05 - - class IasAcePanelStatus(IntEnum): - kPanelDisarmed = 0x00 - kArmedStay = 0x01 - kArmedNight = 0x02 - kArmedAway = 0x03 - kExitDelay = 0x04 - kEntryDelay = 0x05 - kNotReadyToArm = 0x06 - kInAlarm = 0x07 - kArmingStay = 0x08 - kArmingNight = 0x09 - kArmingAway = 0x0A - - class IasZoneType(IntEnum): - kStandardCie = 0x00 - kMotionSensor = 0x0D - kContactSwitch = 0x15 - kFireSensor = 0x28 - kWaterSensor = 0x2A - kGasSensor = 0x2B - kPersonalEmergencyDevice = 0x2C - kVibrationMovementSensor = 0x2D - kRemoteControl = 0x10F - kKeyFob = 0x115 - kKeypad = 0x21D - kStandardWarningDevice = 0x225 - kGlassBreakSensor = 0x226 - kCarbonMonoxideSensor = 0x227 - kSecurityRepeater = 0x229 - kInvalidZoneType = 0xFFFF + class ChannelStatusEnum(IntEnum): + kSuccess = 0x00 + kMultipleMatches = 0x01 + kNoMatches = 0x02 + + class LineupInfoTypeEnum(IntEnum): + kMso = 0x00 class Structs: @dataclass - class IasAceZoneStatusResult(ClusterObject): + class ChannelInfo(ClusterObject): + @ChipUtility.classproperty + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields = [ + ClusterObjectFieldDescriptor(Label="majorNumber", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="minorNumber", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="name", Tag=2, Type=typing.Optional[str]), + ClusterObjectFieldDescriptor(Label="callSign", Tag=3, Type=typing.Optional[str]), + ClusterObjectFieldDescriptor(Label="affiliateCallSign", Tag=4, Type=typing.Optional[str]), + ]) + + majorNumber: 'uint' = 0 + minorNumber: 'uint' = 0 + name: 'typing.Optional[str]' = None + callSign: 'typing.Optional[str]' = None + affiliateCallSign: 'typing.Optional[str]' = None + + @dataclass + class LineupInfo(ClusterObject): @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="operatorName", Tag=0, Type=str), + ClusterObjectFieldDescriptor(Label="lineupName", Tag=1, Type=typing.Optional[str]), + ClusterObjectFieldDescriptor(Label="postalCode", Tag=2, Type=typing.Optional[str]), + ClusterObjectFieldDescriptor(Label="lineupInfoType", Tag=3, Type=Channel.Enums.LineupInfoTypeEnum), ]) - zoneId: 'uint' = 0 - zoneStatus: 'uint' = 0 + operatorName: 'str' = "" + lineupName: 'typing.Optional[str]' = None + postalCode: 'typing.Optional[str]' = None + lineupInfoType: 'Channel.Enums.LineupInfoTypeEnum' = 0 class Commands: @dataclass - class Arm(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0501 + class ChangeChannel(ClusterCommand): + cluster_id: typing.ClassVar[int] = 0x0504 command_id: typing.ClassVar[int] = 0x0000 is_client: typing.ClassVar[bool] = True @@ -30494,829 +30210,32 @@ class Arm(ClusterCommand): 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), + ClusterObjectFieldDescriptor(Label="match", Tag=0, Type=str), ]) - armMode: 'IasAce.Enums.IasAceArmMode' = 0 - armDisarmCode: 'str' = "" - zoneId: 'uint' = 0 + match: 'str' = "" @dataclass - class ArmResponse(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0501 - command_id: typing.ClassVar[int] = 0x0000 + class ChangeChannelResponse(ClusterCommand): + cluster_id: typing.ClassVar[int] = 0x0504 + command_id: typing.ClassVar[int] = 0x0001 is_client: typing.ClassVar[bool] = False @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( Fields = [ - ClusterObjectFieldDescriptor(Label="armNotification", Tag=0, Type=IasAce.Enums.IasAceArmNotification), + ClusterObjectFieldDescriptor(Label="status", Tag=0, Type=Channel.Enums.ChannelStatusEnum), + ClusterObjectFieldDescriptor(Label="data", Tag=1, Type=typing.Optional[str]), ]) - armNotification: 'IasAce.Enums.IasAceArmNotification' = 0 + status: 'Channel.Enums.ChannelStatusEnum' = 0 + data: 'typing.Optional[str]' = None @dataclass - class Bypass(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0501 - command_id: typing.ClassVar[int] = 0x0001 - is_client: typing.ClassVar[bool] = True - - @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), - ]) - - numberOfZones: 'uint' = 0 - zoneIds: 'typing.List[uint]' = field(default_factory=lambda: []) - armDisarmCode: 'str' = "" - - @dataclass - class GetZoneIdMapResponse(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0501 - command_id: typing.ClassVar[int] = 0x0001 - is_client: typing.ClassVar[bool] = False - - @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), - ]) - - section0: 'uint' = 0 - section1: 'uint' = 0 - section2: 'uint' = 0 - section3: 'uint' = 0 - section4: 'uint' = 0 - section5: 'uint' = 0 - section6: 'uint' = 0 - section7: 'uint' = 0 - section8: 'uint' = 0 - section9: 'uint' = 0 - section10: 'uint' = 0 - section11: 'uint' = 0 - section12: 'uint' = 0 - section13: 'uint' = 0 - section14: 'uint' = 0 - section15: 'uint' = 0 - - @dataclass - class Emergency(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0501 - command_id: typing.ClassVar[int] = 0x0002 - is_client: typing.ClassVar[bool] = True - - @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ]) - - - @dataclass - class GetZoneInformationResponse(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0501 - command_id: typing.ClassVar[int] = 0x0002 - is_client: typing.ClassVar[bool] = False - - @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), - ]) - - zoneId: 'uint' = 0 - zoneType: 'IasAce.Enums.IasZoneType' = 0 - ieeeAddress: 'uint' = 0 - zoneLabel: 'str' = "" - - @dataclass - class Fire(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0501 - command_id: typing.ClassVar[int] = 0x0003 - is_client: typing.ClassVar[bool] = True - - @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ]) - - - @dataclass - class ZoneStatusChanged(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0501 - command_id: typing.ClassVar[int] = 0x0003 - is_client: typing.ClassVar[bool] = False - - @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), - ]) - - zoneId: 'uint' = 0 - zoneStatus: 'uint' = 0 - audibleNotification: 'IasAce.Enums.IasAceAudibleNotification' = 0 - zoneLabel: 'str' = "" - - @dataclass - class Panic(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0501 - command_id: typing.ClassVar[int] = 0x0004 - is_client: typing.ClassVar[bool] = True - - @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ]) - - - @dataclass - class PanelStatusChanged(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0501 - command_id: typing.ClassVar[int] = 0x0004 - is_client: typing.ClassVar[bool] = False - - @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), - ]) - - panelStatus: 'IasAce.Enums.IasAcePanelStatus' = 0 - secondsRemaining: 'uint' = 0 - audibleNotification: 'IasAce.Enums.IasAceAudibleNotification' = 0 - alarmStatus: 'IasAce.Enums.IasAceAlarmStatus' = 0 - - @dataclass - class GetZoneIdMap(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0501 - command_id: typing.ClassVar[int] = 0x0005 - is_client: typing.ClassVar[bool] = True - - @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ]) - - - @dataclass - class GetPanelStatusResponse(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0501 - command_id: typing.ClassVar[int] = 0x0005 - is_client: typing.ClassVar[bool] = False - - @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), - ]) - - panelStatus: 'IasAce.Enums.IasAcePanelStatus' = 0 - secondsRemaining: 'uint' = 0 - audibleNotification: 'IasAce.Enums.IasAceAudibleNotification' = 0 - alarmStatus: 'IasAce.Enums.IasAceAlarmStatus' = 0 - - @dataclass - class GetZoneInformation(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0501 - command_id: typing.ClassVar[int] = 0x0006 - is_client: typing.ClassVar[bool] = True - - @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="zoneId", Tag=0, Type=uint), - ]) - - zoneId: 'uint' = 0 - - @dataclass - class SetBypassedZoneList(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0501 - command_id: typing.ClassVar[int] = 0x0006 - is_client: typing.ClassVar[bool] = False - - @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]), - ]) - - numberOfZones: 'uint' = 0 - zoneIds: 'typing.List[uint]' = field(default_factory=lambda: []) - - @dataclass - class GetPanelStatus(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0501 - command_id: typing.ClassVar[int] = 0x0007 - is_client: typing.ClassVar[bool] = True - - @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ]) - - - @dataclass - class BypassResponse(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0501 - command_id: typing.ClassVar[int] = 0x0007 - is_client: typing.ClassVar[bool] = False - - @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]), - ]) - - numberOfZones: 'uint' = 0 - bypassResult: 'typing.List[IasAce.Enums.IasAceBypassResult]' = field(default_factory=lambda: []) - - @dataclass - class GetBypassedZoneList(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0501 - command_id: typing.ClassVar[int] = 0x0008 - is_client: typing.ClassVar[bool] = True - - @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ]) - - - @dataclass - class GetZoneStatusResponse(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0501 - command_id: typing.ClassVar[int] = 0x0008 - is_client: typing.ClassVar[bool] = False - - @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]), - ]) - - zoneStatusComplete: 'bool' = False - numberOfZones: 'uint' = 0 - zoneStatusResult: 'typing.List[IasAce.Structs.IasAceZoneStatusResult]' = field(default_factory=lambda: []) - - @dataclass - class GetZoneStatus(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0501 - command_id: typing.ClassVar[int] = 0x0009 - is_client: typing.ClassVar[bool] = True - - @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), - ]) - - startingZoneId: 'uint' = 0 - maxNumberOfZoneIds: 'uint' = 0 - zoneStatusMaskFlag: 'bool' = False - zoneStatusMask: 'uint' = 0 - - - class Attributes: - @dataclass - class GeneratedCommandList(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0501 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x0000FFF8 - - @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.List[uint]) - - value: 'typing.List[uint]' = field(default_factory=lambda: []) - - @dataclass - class AcceptedCommandList(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0501 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x0000FFF9 - - @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.List[uint]) - - value: 'typing.List[uint]' = field(default_factory=lambda: []) - - @dataclass - class AttributeList(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0501 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x0000FFFB - - @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.List[uint]) - - value: 'typing.List[uint]' = field(default_factory=lambda: []) - - @dataclass - class FeatureMap(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0501 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x0000FFFC - - @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=uint) - - value: 'uint' = 0 - - @dataclass - class ClusterRevision(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0501 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x0000FFFD - - @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=uint) - - value: 'uint' = 0 - - - -@dataclass -class IasWd(Cluster): - id: typing.ClassVar[int] = 0x0502 - - @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="maxDuration", Tag=0x00000000, Type=uint), - ClusterObjectFieldDescriptor(Label="generatedCommandList", Tag=0x0000FFF8, Type=typing.List[uint]), - ClusterObjectFieldDescriptor(Label="acceptedCommandList", Tag=0x0000FFF9, Type=typing.List[uint]), - ClusterObjectFieldDescriptor(Label="attributeList", Tag=0x0000FFFB, Type=typing.List[uint]), - ClusterObjectFieldDescriptor(Label="featureMap", Tag=0x0000FFFC, Type=uint), - ClusterObjectFieldDescriptor(Label="clusterRevision", Tag=0x0000FFFD, Type=uint), - ]) - - maxDuration: 'uint' = None - generatedCommandList: 'typing.List[uint]' = None - acceptedCommandList: 'typing.List[uint]' = None - attributeList: 'typing.List[uint]' = None - featureMap: 'uint' = None - clusterRevision: 'uint' = None - - - - class Commands: - @dataclass - class StartWarning(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0502 - command_id: typing.ClassVar[int] = 0x0000 - is_client: typing.ClassVar[bool] = True - - @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), - ]) - - warningInfo: 'uint' = 0 - warningDuration: 'uint' = 0 - strobeDutyCycle: 'uint' = 0 - strobeLevel: 'uint' = 0 - - @dataclass - class Squawk(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0502 - command_id: typing.ClassVar[int] = 0x0001 - is_client: typing.ClassVar[bool] = True - - @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="squawkInfo", Tag=0, Type=uint), - ]) - - squawkInfo: 'uint' = 0 - - - class Attributes: - @dataclass - class MaxDuration(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0502 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x00000000 - - @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=uint) - - value: 'uint' = 0 - - @dataclass - class GeneratedCommandList(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0502 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x0000FFF8 - - @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.List[uint]) - - value: 'typing.List[uint]' = field(default_factory=lambda: []) - - @dataclass - class AcceptedCommandList(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0502 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x0000FFF9 - - @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.List[uint]) - - value: 'typing.List[uint]' = field(default_factory=lambda: []) - - @dataclass - class AttributeList(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0502 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x0000FFFB - - @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.List[uint]) - - value: 'typing.List[uint]' = field(default_factory=lambda: []) - - @dataclass - class FeatureMap(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0502 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x0000FFFC - - @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=uint) - - value: 'uint' = 0 - - @dataclass - class ClusterRevision(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0502 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x0000FFFD - - @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=uint) - - value: 'uint' = 0 - - - -@dataclass -class WakeOnLan(Cluster): - id: typing.ClassVar[int] = 0x0503 - - @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="MACAddress", Tag=0x00000000, Type=typing.Optional[str]), - ClusterObjectFieldDescriptor(Label="generatedCommandList", Tag=0x0000FFF8, Type=typing.List[uint]), - ClusterObjectFieldDescriptor(Label="acceptedCommandList", Tag=0x0000FFF9, Type=typing.List[uint]), - ClusterObjectFieldDescriptor(Label="attributeList", Tag=0x0000FFFB, Type=typing.List[uint]), - ClusterObjectFieldDescriptor(Label="featureMap", Tag=0x0000FFFC, Type=uint), - ClusterObjectFieldDescriptor(Label="clusterRevision", Tag=0x0000FFFD, Type=uint), - ]) - - MACAddress: 'typing.Optional[str]' = None - generatedCommandList: 'typing.List[uint]' = None - acceptedCommandList: 'typing.List[uint]' = None - attributeList: 'typing.List[uint]' = None - featureMap: 'uint' = None - clusterRevision: 'uint' = None - - - - - class Attributes: - @dataclass - class MACAddress(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0503 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x00000000 - - @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[str]) - - value: 'typing.Optional[str]' = None - - @dataclass - class GeneratedCommandList(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0503 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x0000FFF8 - - @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.List[uint]) - - value: 'typing.List[uint]' = field(default_factory=lambda: []) - - @dataclass - class AcceptedCommandList(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0503 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x0000FFF9 - - @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.List[uint]) - - value: 'typing.List[uint]' = field(default_factory=lambda: []) - - @dataclass - class AttributeList(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0503 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x0000FFFB - - @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.List[uint]) - - value: 'typing.List[uint]' = field(default_factory=lambda: []) - - @dataclass - class FeatureMap(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0503 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x0000FFFC - - @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=uint) - - value: 'uint' = 0 - - @dataclass - class ClusterRevision(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0503 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x0000FFFD - - @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=uint) - - value: 'uint' = 0 - - - -@dataclass -class Channel(Cluster): - id: typing.ClassVar[int] = 0x0504 - - @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="channelList", Tag=0x00000000, Type=typing.Optional[typing.List[Channel.Structs.ChannelInfo]]), - ClusterObjectFieldDescriptor(Label="lineup", Tag=0x00000001, Type=typing.Union[None, Nullable, Channel.Structs.LineupInfo]), - ClusterObjectFieldDescriptor(Label="currentChannel", Tag=0x00000002, Type=typing.Union[None, Nullable, Channel.Structs.ChannelInfo]), - ClusterObjectFieldDescriptor(Label="generatedCommandList", Tag=0x0000FFF8, Type=typing.List[uint]), - ClusterObjectFieldDescriptor(Label="acceptedCommandList", Tag=0x0000FFF9, Type=typing.List[uint]), - ClusterObjectFieldDescriptor(Label="attributeList", Tag=0x0000FFFB, Type=typing.List[uint]), - ClusterObjectFieldDescriptor(Label="featureMap", Tag=0x0000FFFC, Type=uint), - ClusterObjectFieldDescriptor(Label="clusterRevision", Tag=0x0000FFFD, Type=uint), - ]) - - channelList: 'typing.Optional[typing.List[Channel.Structs.ChannelInfo]]' = None - lineup: 'typing.Union[None, Nullable, Channel.Structs.LineupInfo]' = None - currentChannel: 'typing.Union[None, Nullable, Channel.Structs.ChannelInfo]' = None - generatedCommandList: 'typing.List[uint]' = None - acceptedCommandList: 'typing.List[uint]' = None - attributeList: 'typing.List[uint]' = None - featureMap: 'uint' = None - clusterRevision: 'uint' = None - - class Enums: - class ChannelStatusEnum(IntEnum): - kSuccess = 0x00 - kMultipleMatches = 0x01 - kNoMatches = 0x02 - - class LineupInfoTypeEnum(IntEnum): - kMso = 0x00 - - - class Structs: - @dataclass - class ChannelInfo(ClusterObject): - @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="majorNumber", Tag=0, Type=uint), - ClusterObjectFieldDescriptor(Label="minorNumber", Tag=1, Type=uint), - ClusterObjectFieldDescriptor(Label="name", Tag=2, Type=typing.Optional[str]), - ClusterObjectFieldDescriptor(Label="callSign", Tag=3, Type=typing.Optional[str]), - ClusterObjectFieldDescriptor(Label="affiliateCallSign", Tag=4, Type=typing.Optional[str]), - ]) - - majorNumber: 'uint' = 0 - minorNumber: 'uint' = 0 - name: 'typing.Optional[str]' = None - callSign: 'typing.Optional[str]' = None - affiliateCallSign: 'typing.Optional[str]' = None - - @dataclass - class LineupInfo(ClusterObject): - @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="operatorName", Tag=0, Type=str), - ClusterObjectFieldDescriptor(Label="lineupName", Tag=1, Type=typing.Optional[str]), - ClusterObjectFieldDescriptor(Label="postalCode", Tag=2, Type=typing.Optional[str]), - ClusterObjectFieldDescriptor(Label="lineupInfoType", Tag=3, Type=Channel.Enums.LineupInfoTypeEnum), - ]) - - operatorName: 'str' = "" - lineupName: 'typing.Optional[str]' = None - postalCode: 'typing.Optional[str]' = None - lineupInfoType: 'Channel.Enums.LineupInfoTypeEnum' = 0 - - - - class Commands: - @dataclass - class ChangeChannel(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0504 - command_id: typing.ClassVar[int] = 0x0000 - is_client: typing.ClassVar[bool] = True - - @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="match", Tag=0, Type=str), - ]) - - match: 'str' = "" - - @dataclass - class ChangeChannelResponse(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0504 - command_id: typing.ClassVar[int] = 0x0001 - is_client: typing.ClassVar[bool] = False - - @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="status", Tag=0, Type=Channel.Enums.ChannelStatusEnum), - ClusterObjectFieldDescriptor(Label="data", Tag=1, Type=typing.Optional[str]), - ]) - - status: 'Channel.Enums.ChannelStatusEnum' = 0 - data: 'typing.Optional[str]' = None - - @dataclass - class ChangeChannelByNumber(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0504 - command_id: typing.ClassVar[int] = 0x0002 + class ChangeChannelByNumber(ClusterCommand): + cluster_id: typing.ClassVar[int] = 0x0504 + command_id: typing.ClassVar[int] = 0x0002 is_client: typing.ClassVar[bool] = True @ChipUtility.classproperty @@ -38145,12 +37064,12 @@ class TestListStructOctet(ClusterObject): def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( Fields = [ - ClusterObjectFieldDescriptor(Label="fabricIndex", Tag=0, Type=uint), - ClusterObjectFieldDescriptor(Label="operationalCert", Tag=1, Type=bytes), + ClusterObjectFieldDescriptor(Label="member1", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="member2", Tag=1, Type=bytes), ]) - fabricIndex: 'uint' = 0 - operationalCert: 'bytes' = b"" + member1: 'uint' = 0 + member2: 'bytes' = b"" diff --git a/matter_server/vendor/chip/clusters/ObjectsVersion.py b/matter_server/vendor/chip/clusters/ObjectsVersion.py index 4f56761a..fb3abde1 100644 --- a/matter_server/vendor/chip/clusters/ObjectsVersion.py +++ b/matter_server/vendor/chip/clusters/ObjectsVersion.py @@ -1 +1 @@ -CLUSTER_OBJECT_VERSION = "5d8599d195a93dfe5473f64e4f888c322e5df1d2" \ No newline at end of file +CLUSTER_OBJECT_VERSION = "5b603f38746c7c360c60435271b7843f17b8d61a" \ No newline at end of file From 31f2b6c7b0a037bf6ae8efcbafeee6bec0f4eca2 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Wed, 6 Jul 2022 10:40:59 +0200 Subject: [PATCH 2/2] Drop IasZone as it has been dropped in Matter --- matter_server/vendor/device_types.py | 1 - 1 file changed, 1 deletion(-) diff --git a/matter_server/vendor/device_types.py b/matter_server/vendor/device_types.py index 46c682a2..f4705a41 100644 --- a/matter_server/vendor/device_types.py +++ b/matter_server/vendor/device_types.py @@ -524,7 +524,6 @@ class AllClustersAppServerExample(DeviceType, device_type=0x0000): all_clusters.ColorControl, all_clusters.DoorLock, all_clusters.Groups, - all_clusters.IasZone, all_clusters.LevelControl, all_clusters.OnOff, all_clusters.Scenes,